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.4 KiB

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