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.

45 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=fbzmq
  3. PKG_VERSION:=2019.06.10.00
  4. PKG_RELEASE:=4
  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:=9bb9b2bd42951fa3458b5d6d25f3364c14a7efa3b78bef68a6c00ee6fcba5813
  8. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. CMAKE_SOURCE_SUBDIR:=fbzmq
  12. PKG_BUILD_DEPENDS:=fbthrift
  13. PKG_BUILD_PARALLEL:=1
  14. CMAKE_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/fbzmq
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Facebook ZeroMQ wrappers.
  21. URL:=https://github.com/facebook/fbzmq
  22. DEPENDS:=+libfolly +libzmq +libsigar
  23. endef
  24. define Package/fbzmq/description
  25. Facebook ZeroMQ wrappers.
  26. endef
  27. CMAKE_OPTIONS += \
  28. -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
  29. -DBUILD_TESTS=OFF \
  30. -DTHRIFT1="$(STAGING_DIR_HOSTPKG)/bin/thrift1" \
  31. -DTHRIFT_COMPILER_INCLUDE="$(STAGING_DIR_HOSTPKG)/include/"
  32. TARGET_CXXFLAGS += -faligned-new
  33. TARGET_CXXFLAGS += -ffunction-sections -fdata-sections -flto
  34. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  35. $(eval $(call BuildPackage,fbzmq))