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.

57 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=fbthrift
  3. PKG_VERSION:=2019.06.10.00
  4. PKG_RELEASE:=2
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/facebook/fbthrift/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=0897c66564a2742b24dd6ae77812b42987c3493944d1d5d40d4005d71deb7cb5
  8. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  9. PKG_LICENSE:=Apache-2.0
  10. PKG_LICENSE_FILES:=LICENSE
  11. HOST_BUILD_DEPENDS:=libmstch/host
  12. PKG_BUILD_DEPENDS:=fbthrift/host
  13. HOST_BUILD_PARALLEL:=1
  14. PKG_BUILD_PARALLEL:=1
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/host-build.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/fbthrift
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Facebook's branch of Apache Thrift, including a new C++ server.
  23. DEPENDS:=+libwangle +libfmt +librsocket-cpp
  24. endef
  25. define Package/fbthrift/description
  26. Facebook's branch of Apache Thrift, including a new C++ server.
  27. endef
  28. CMAKE_HOST_OPTIONS += \
  29. -DBoost_NO_BOOST_CMAKE=ON \
  30. -DCMAKE_SKIP_RPATH=FALSE \
  31. -DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOSTPKG}/lib" \
  32. -Dcompiler_only=ON
  33. CMAKE_OPTIONS += \
  34. -DBoost_NO_BOOST_CMAKE=ON \
  35. -DBUILD_SHARED_LIBS=ON \
  36. -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
  37. -Dlib_only=ON \
  38. -DTHRIFT1="$(STAGING_DIR_HOSTPKG)/bin/thrift1" \
  39. -DTHRIFT_COMPILER_INCLUDE="$(STAGING_DIR_HOSTPKG)/include/"
  40. define Package/fbthrift/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,fbthrift))
  45. $(eval $(call HostBuild))