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.

54 lines
1.8 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libfolly
  3. PKG_VERSION:=2019.05.06.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:=59e88d792e4c917e2f37ac22c230af0056bce8aa7bacf2d9e94ceb177a7c1079
  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:=+libstdcpp +boost +boost-context +boost-system +boost-thread \
  30. +boost-date_time +boost-filesystem +boost-program_options +boost-regex \
  31. +libbz2 +libopenssl +libdouble-conversion +libevent2 +glog +zlib +libzstd \
  32. +gflags +libsodium +liblzma +libaio +liblz4 +libunwind +libatomic
  33. endef
  34. define Package/libfolly/description
  35. An open-source C++ library developed and used at Facebook.
  36. Folly (acronymed loosely after Facebook Open Source Library) is a library of
  37. C++14 components designed with practicality and efficiency in mind.
  38. Folly contains a variety of core library components used extensively at Facebook.
  39. This package includes the shared library.
  40. endef
  41. define Package/libfolly/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfolly*.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libfolly))