libfizz: Update to 2019.10.07.00
authorRosen Penev <rosenp@gmail.com>
Mon, 7 Oct 2019 17:38:28 +0000 (10:38 -0700)
committerRosen Penev <rosenp@gmail.com>
Mon, 7 Oct 2019 17:59:58 +0000 (10:59 -0700)
Add patch removing boost-thread dependency.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libfizz/Makefile
libs/libfizz/patches/010-no-boost-thread.patch [new file with mode: 0644]

index 49f0eecc0b9e4edd2e40ac382cb0af2c44f48738..2b62e3c2faeda145b7bed9100df5d41243942c23 100644 (file)
@@ -1,14 +1,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libfizz
-PKG_VERSION:=2019.09.22.00
+PKG_VERSION:=2019.10.07.00
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_VERSION:=0ccff0813dea8d3f730d9c3a1b80e6936522d3f3
-PKG_SOURCE_URL:=https://codeload.github.com/facebookincubator/fizz/tar.gz/$(PKG_SOURCE_VERSION)?
-PKG_HASH:=32a8de32e7a83e53ad44931ac637f6e17ce7f81bd65bc835f14d59442041e7f6
-PKG_BUILD_DIR:=$(BUILD_DIR)/fizz-$(PKG_SOURCE_VERSION)
+PKG_SOURCE_URL:=https://codeload.github.com/facebookincubator/fizz/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=acf0184466b518dd58d02dc04211aac1c4504bb3ff6d9e8454af5ac2bc85fa6c
+PKG_BUILD_DIR:=$(BUILD_DIR)/fizz-$(PKG_VERSION)
 
 PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
 PKG_LICENSE:=BSD-3-Clause
@@ -36,9 +35,15 @@ define Package/libfizz/description
 endef
 
 CMAKE_OPTIONS += \
-       -DBUILD_EXAMPLES=OFF
+       -DBUILD_EXAMPLES=OFF \
+       -DBUILD_SHARED_LIBS=ON
 
 TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto
 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
 
+define Package/libfizz/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfizz.so* $(1)/usr/lib/
+endef
+
 $(eval $(call BuildPackage,libfizz))
diff --git a/libs/libfizz/patches/010-no-boost-thread.patch b/libs/libfizz/patches/010-no-boost-thread.patch
new file mode 100644 (file)
index 0000000..3a503d0
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/fizz/CMakeLists.txt
++++ b/fizz/CMakeLists.txt
+@@ -52,7 +52,7 @@ if (NOT folly_FOUND)
+   find_package(Folly MODULE REQUIRED)
+ endif()
+-find_package(Boost REQUIRED COMPONENTS system thread filesystem regex context
++find_package(Boost REQUIRED COMPONENTS system filesystem regex context
+                                        program_options)
+ find_package(OpenSSL REQUIRED)
+ find_package(Glog REQUIRED)