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.

53 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libfolly
  3. PKG_VERSION:=2019.05.27.00
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/facebook/folly/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=7535937e4b4bde14e6c854dc55a5fe9f290ccf1918621f20678ebecd0c1239e1
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/folly-$(PKG_VERSION)
  9. PKG_LICENSE:=Apache-2.0
  10. PKG_LICENSE_FILES:=LICENSE
  11. include $(INCLUDE_DIR)/package.mk
  12. include $(INCLUDE_DIR)/cmake.mk
  13. PKG_BUILD_PARALLEL:=1
  14. CMAKE_OPTIONS:= \
  15. -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
  16. -DCXX_STD=gnu++14 \
  17. -DFOLLY_HAVE_UNALIGNED_ACCESS_EXITCODE=OFF \
  18. -DFOLLY_HAVE_LINUX_VDSO_EXITCODE=OFF \
  19. -DFOLLY_HAVE_WCHAR_SUPPORT_EXITCODE=OFF \
  20. -DHAVE_VSNPRINTF_ERRORS_EXITCODE=OFF \
  21. -DFOLLY_HAVE_XSI_STRERROR_R_EXITCODE=0 \
  22. -DBUILD_SHARED_LIBS=ON
  23. CMAKE_INSTALL:=1
  24. define Package/libfolly
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=An open-source C++ library developed and used at Facebook.
  28. URL:=https://github.com/facebook/folly
  29. DEPENDS:=+boost +boost-context +boost-date_time +boost-filesystem +boost-program_options +boost-regex \
  30. +libopenssl +libdouble-conversion +libevent2 +glog +libsodium +libaio +libunwind +libatomic \
  31. +libbz2 +zlib +libzstd +liblzma +liblz4
  32. endef
  33. define Package/libfolly/description
  34. An open-source C++ library developed and used at Facebook.
  35. Folly (acronymed loosely after Facebook Open Source Library) is a library of
  36. C++14 components designed with practicality and efficiency in mind.
  37. Folly contains a variety of core library components used extensively at Facebook.
  38. This package includes the shared library.
  39. endef
  40. define Package/libfolly/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfolly*.so* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libfolly))