libulfius: update to 2.7.10
authorToni Uhlig <matzeton@googlemail.com>
Wed, 13 Jul 2022 23:54:13 +0000 (01:54 +0200)
committerRosen Penev <rosenp@gmail.com>
Wed, 20 Jul 2022 09:37:31 +0000 (02:37 -0700)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
libs/liborcania/Makefile
libs/libulfius/Makefile
libs/libulfius/patches/0001-cmake-pc-orcania-found.patch [new file with mode: 0644]

index 8ee31f1b531cb392ec5dae57c33f352edce6bab4..5dd3651ff8f41620fa0781477bc7c4eca1e519d1 100644 (file)
@@ -35,10 +35,4 @@ define Package/liborcania/description
   Potluck with different functions for different purposes that can be shared among C programs.
 endef
 
-define Package/liborcania/install
-       $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/liborcania.so.* \
-               $(1)/usr/lib/
-endef
-
 $(eval $(call BuildPackage,liborcania))
index 93c1ef81f86260a7b0b0f22680c394463bb30604..07ba49cc39f742075333213d5a216ec83a3708e0 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libulfius
-PKG_VERSION:=2.7.3
+PKG_VERSION:=2.7.10
 PKG_RELEASE:=$(AUTORELEASE)
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/babelouest/ulfius/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=a20f575b3e81924c4ddb72c4ccdced134b5756a86b017f4a38b51608610628c5
+PKG_HASH:=616c5df99584071461a1285dd7155883f7d2b94abf0931038feeebd3da3a6def
 
 PKG_MAINTAINER:=Toni Uhlig <matzeton@googlemail.com>
 PKG_LICENSE:=LGPL-2.1-or-later
@@ -42,13 +42,8 @@ $(call Package/libulfius/default)
   PROVIDES:=libulfius
 endef
 
-define Package/libulfius-$(BUILD_VARIANT)/install
-       $(INSTALL_DIR) $(1)/usr/lib/
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libulfius.so.* \
-               $(1)/usr/lib/
-endef
-
 CMAKE_OPTIONS += \
+       -D_GNU_SOURCE=ON \
        -DDOWNLOAD_DEPENDENCIES=OFF \
        -DBUILD_WEBSOCKET=OFF \
        -DSEARCH_ORCANIA_U=ON \
diff --git a/libs/libulfius/patches/0001-cmake-pc-orcania-found.patch b/libs/libulfius/patches/0001-cmake-pc-orcania-found.patch
new file mode 100644 (file)
index 0000000..b95b8c0
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -257,7 +257,7 @@ if (SEARCH_ORCANIA_U)
+     set(Orcania_FIND_QUIETLY ON) # force to find Orcania quietly
+     include(FindOrcania)
+     find_package(Orcania ${ORCANIA_VERSION_REQUIRED} QUIET) # try to find orcania
+-    if (NOT ORCANIA_FOUND)
++    if (NOT ORCANIA_FOUND AND NOT PC_ORCANIA_FOUND)
+         if (DOWNLOAD_DEPENDENCIES)
+             include(DownloadProject)
+             download_project(PROJ orcania # ... otherwise, download archive