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.

55 lines
1.5 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=fbthrift
  3. PKG_VERSION:=2019.05.06.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:=563ad2cacbd29cd22da3a608da52a2ab831942592c0f47dbeeab7131d9291995
  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:=+libstdcpp +boost +boost-filesystem +libfolly +glog +libsodium \
  32. +libwangle +libfmt +libyarpl +libmstch +librsocket-cpp \
  33. +@boost-host-build-filesystem +@boost-host-build-system \
  34. +@boost-host-build-thread
  35. endef
  36. define Package/fbthrift/description
  37. Facebook's branch of Apache Thrift, including a new C++ server.
  38. endef
  39. define Package/fbthrift/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,fbthrift))
  44. $(eval $(call HostBuild))