0
0
mirror of https://github.com/openwrt/packages.git synced 2025-09-24 05:02:53 +00:00
Files
packages/libs/libulfius/Makefile
Austin Lane d0deac49ff libulfius: Update to v2.7.15
This library is tightly coupled with liborcania and libyder, they must be updated together.

* Update libulfius to v2.7.15

* Patch libulfius to fix FTBFS on 32-bit architectures with 64-bit time_t
  - Backported from upstream commit: 9457809a5321ca4a87f19fdc3f7f4af68e72afa8

* Remove obsolete CMAKE options for libulfius

Signed-off-by: Austin Lane <vidplace7@gmail.com>
2025-08-23 19:50:49 +03:00

74 lines
1.9 KiB
Makefile

#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libulfius
PKG_VERSION:=2.7.15
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/babelouest/ulfius/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=19cf789b2af1919b69f77c7701237bfc318a9781ec657b68fd4b6ffa9d53f111
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
include $(INCLUDE_DIR)/cmake.mk
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
DEPENDS:=+libmicrohttpd +libcurl +liborcania +libgnutls +zlib
PROVIDES:=libulfius
endef
CMAKE_OPTIONS += \
-D_GNU_SOURCE=ON \
-DBUILD_WEBSOCKET=OFF \
-DWITH_CURL=ON \
-DWITH_JANSSON=OFF \
-DWITH_YDER=OFF \
-DCMAKE_BUILD_TYPE=Release
ifeq ($(BUILD_VARIANT),gnutls)
CMAKE_OPTIONS += -DWITH_GNUTLS=ON
else
CMAKE_OPTIONS += -DWITH_GNUTLS=OFF
endif
define Package/libulfius/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libulfius.so* $(1)/usr/lib/
endef
Package/libulfius-nossl/install = $(Package/libulfius/install)
Package/libulfius-gnutls/install = $(Package/libulfius/install)
$(eval $(call BuildPackage,libulfius-gnutls))
$(eval $(call BuildPackage,libulfius-nossl))