You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libfizz
  3. PKG_VERSION:=2019.10.07.00
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/facebookincubator/fizz/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=acf0184466b518dd58d02dc04211aac1c4504bb3ff6d9e8454af5ac2bc85fa6c
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/fizz-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  10. PKG_LICENSE:=BSD-3-Clause
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_CPE_ID:=cpe:/a:facebook:fizz
  13. PKG_BUILD_PARALLEL:=1
  14. CMAKE_SOURCE_SUBDIR:=fizz
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/libfizz
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. DEPENDS:=+libfolly
  22. TITLE:=C++14 implementation of the TLS-1.3 standard
  23. URL:=https://github.com/facebookincubator/fizz
  24. endef
  25. define Package/libfizz/description
  26. C++14 implementation of the TLS-1.3 standard.
  27. Fizz currently supports TLS 1.3 drafts 28, 26 (both wire-compatible with the final specification), and 23.
  28. endef
  29. CMAKE_OPTIONS += \
  30. -DBUILD_EXAMPLES=OFF \
  31. -DBUILD_SHARED_LIBS=ON
  32. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto
  33. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  34. define Package/libfizz/install
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfizz.so* $(1)/usr/lib/
  37. endef
  38. $(eval $(call BuildPackage,libfizz))