Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
41 lines
1.3 KiB
Makefile
41 lines
1.3 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libwslay
|
|
PKG_VERSION:=1.1.1
|
|
PKG_RELEASE:=5
|
|
|
|
PKG_SOURCE:=release-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/tatsuhiro-t/wslay/tar.gz/release-$(PKG_VERSION)?
|
|
PKG_HASH:=7b9f4b9df09adaa6e07ec309b68ab376c0db2cfd916613023b52a47adfda224a
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/wslay-release-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
|
|
PKG_LICENSE:=MIT
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libwslay
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=Wslay is a WebSocket library written in C
|
|
URL:=https://tatsuhiro-t.github.io/wslay/
|
|
BUILDONLY:=1
|
|
endef
|
|
|
|
define Package/libwslay/description
|
|
Wslay is a WebSocket library written in C. It implements the protocol version 13 described
|
|
in RFC 6455. This library offers 2 levels of API: event-based API and frame-based low-level
|
|
API. For event-based API, it is suitable for non-blocking reactor pattern style. You can set
|
|
callbacks in various events. For frame-based API, you can send WebSocket frame directly.
|
|
Wslay only supports data transfer part of WebSocket protocol and does not perform opening
|
|
handshake in HTTP.
|
|
endef
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
|
|
|
$(eval $(call BuildPackage,libwslay))
|