2019-12-09 01:47:05 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libwslay
|
2020-07-09 23:17:43 +00:00
|
|
|
PKG_VERSION:=1.1.1
|
treewide: remove AUTORELEASE
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>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=5
|
2019-12-09 01:47:05 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=release-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/tatsuhiro-t/wslay/tar.gz/release-$(PKG_VERSION)?
|
2020-07-09 23:17:43 +00:00
|
|
|
PKG_HASH:=7b9f4b9df09adaa6e07ec309b68ab376c0db2cfd916613023b52a47adfda224a
|
2019-12-09 01:47:05 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/wslay-release-$(PKG_VERSION)
|
|
|
|
|
2021-06-02 12:19:42 +00:00
|
|
|
PKG_MAINTAINER:=Peter van Dijk <peter.van.dijk@powerdns.com>
|
2019-12-09 01:47:05 +00:00
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
|
2020-07-09 23:17:43 +00:00
|
|
|
CMAKE_INSTALL:=1
|
2019-12-09 01:47:05 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2019-12-09 01:47:05 +00:00
|
|
|
|
|
|
|
define Package/libwslay
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Wslay is a WebSocket library written in C
|
|
|
|
URL:=https://tatsuhiro-t.github.io/wslay/
|
2020-07-09 23:17:43 +00:00
|
|
|
BUILDONLY:=1
|
2019-12-09 01:47:05 +00:00
|
|
|
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
|
|
|
|
|
2020-07-09 23:17:43 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
|
2019-12-09 01:47:05 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libwslay))
|