diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-04-23 04:30:44 +0300 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-04-23 04:30:44 +0300 |
commit | dbb8fd6e87abe043a180a9cb59ce4c0e1a02e066 (patch) | |
tree | 857e91b2c486f80903356e77e67bfd4b2ab9eaa2 | |
parent | ace126351d3427f42301f82892e59559da0fed20 (diff) |
libfizz: import from packages
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r-- | libs/libfizz/Makefile | 49 | ||||
-rw-r--r-- | libs/libfizz/patches/010-no-boost-thread.patch | 11 |
2 files changed, 60 insertions, 0 deletions
diff --git a/libs/libfizz/Makefile b/libs/libfizz/Makefile new file mode 100644 index 0000000..2b62e3c --- /dev/null +++ b/libs/libfizz/Makefile @@ -0,0 +1,49 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=libfizz +PKG_VERSION:=2019.10.07.00 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +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 +PKG_LICENSE_FILES:=LICENSE +PKG_CPE_ID:=cpe:/a:facebook:fizz + +PKG_BUILD_PARALLEL:=1 +CMAKE_SOURCE_SUBDIR:=fizz +CMAKE_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/libfizz + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+libfolly + TITLE:=C++14 implementation of the TLS-1.3 standard + URL:=https://github.com/facebookincubator/fizz +endef + +define Package/libfizz/description + C++14 implementation of the TLS-1.3 standard. + Fizz currently supports TLS 1.3 drafts 28, 26 (both wire-compatible with the final specification), and 23. +endef + +CMAKE_OPTIONS += \ + -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 index 0000000..3a503d0 --- /dev/null +++ b/libs/libfizz/patches/010-no-boost-thread.patch @@ -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) |