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.

48 lines
1.2 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=fbzmq
  3. PKG_VERSION:=2019.10.07.00
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/facebook/fbzmq/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=41b6c671dd1cd16eeffa94f146c8a6841c8a05e0517d8affc96dde8324af11af
  8. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_BUILD_PARALLEL:=1
  12. CMAKE_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/fbzmq
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=Facebook ZeroMQ wrappers.
  19. URL:=https://github.com/facebook/fbzmq
  20. DEPENDS:=+libfolly +libzmq +libsigar +fbthrift
  21. endef
  22. define Package/fbzmq/description
  23. Facebook ZeroMQ wrappers.
  24. endef
  25. CMAKE_OPTIONS += \
  26. -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
  27. -DBUILD_SHARED_LIBS=ON \
  28. -DBUILD_TESTS=OFF \
  29. -DFBTHRIFT_COMPILER="$(STAGING_DIR_HOSTPKG)/bin/thrift1"
  30. TARGET_CXXFLAGS += -faligned-new
  31. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto
  32. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  33. define Package/fbzmq/install
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfbzmq.so* $(1)/usr/lib/
  36. endef
  37. $(eval $(call BuildPackage,fbzmq))