2020-06-04 20:23:34 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libulfius
|
2022-07-14 01:54:13 +02:00
|
|
|
PKG_VERSION:=2.7.10
|
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 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2020-06-04 20:23:34 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/babelouest/ulfius/tar.gz/v$(PKG_VERSION)?
|
2022-07-14 01:54:13 +02:00
|
|
|
PKG_HASH:=616c5df99584071461a1285dd7155883f7d2b94abf0931038feeebd3da3a6def
|
2020-06-04 20:23:34 +02:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Toni Uhlig <matzeton@googlemail.com>
|
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-$(BUILD_VARIANT)/ulfius-$(PKG_VERSION)
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2020-06-04 20:23:34 +02:00
|
|
|
|
|
|
|
define Package/libulfius/default
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
SUBMENU:=Networking
|
|
|
|
TITLE:=Web Framework to build REST APIs, Webservices or any HTTP endpoint in C language.
|
|
|
|
URL:=https://github.com/babelouest/ulfius
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libulfius-nossl
|
|
|
|
$(call Package/libulfius/default)
|
|
|
|
VARIANT:=nossl
|
|
|
|
DEFAULT_VARIANT:=1
|
|
|
|
DEPENDS:=+libmicrohttpd +libcurl +liborcania
|
|
|
|
PROVIDES:=libulfius
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libulfius-gnutls
|
|
|
|
$(call Package/libulfius/default)
|
|
|
|
TITLE+= with SSL support
|
|
|
|
VARIANT:=gnutls
|
2021-03-21 01:09:19 +01:00
|
|
|
DEPENDS:=+libmicrohttpd +libcurl +liborcania +libgnutls +zlib
|
2020-06-04 20:23:34 +02:00
|
|
|
PROVIDES:=libulfius
|
|
|
|
endef
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += \
|
2022-07-14 01:54:13 +02:00
|
|
|
-D_GNU_SOURCE=ON \
|
2020-06-04 20:23:34 +02:00
|
|
|
-DDOWNLOAD_DEPENDENCIES=OFF \
|
|
|
|
-DBUILD_WEBSOCKET=OFF \
|
|
|
|
-DSEARCH_ORCANIA_U=ON \
|
|
|
|
-DWITH_CURL=ON \
|
|
|
|
-DWITH_JANSSON=OFF \
|
|
|
|
-DWITH_STRSTR=ON \
|
|
|
|
-DWITH_YDER=OFF \
|
|
|
|
-DSEARCH_YDER=OFF \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),gnutls)
|
|
|
|
CMAKE_OPTIONS += -DWITH_GNUTLS=ON
|
|
|
|
else
|
|
|
|
CMAKE_OPTIONS += -DWITH_GNUTLS=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libulfius-gnutls))
|
|
|
|
$(eval $(call BuildPackage,libulfius-nossl))
|