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.

47 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=fbzmq
  3. PKG_VERSION:=2019.06.10.00
  4. PKG_RELEASE:=3
  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_PARALLEL:=1
  13. CMAKE_INSTALL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/fbzmq
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=Facebook ZeroMQ wrappers.
  20. DEPENDS:=+fbthrift +libzmq +libsigar
  21. endef
  22. define Package/fbzmq/description
  23. Facebook ZeroMQ wrappers.
  24. endef
  25. CMAKE_OPTIONS += \
  26. -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
  27. -DBUILD_TESTS=OFF \
  28. -DBUILD_SHARED_LIBS=ON \
  29. -DTHRIFT1="$(STAGING_DIR_HOSTPKG)/bin/thrift1" \
  30. -DTHRIFT_COMPILER_INCLUDE="$(STAGING_DIR_HOSTPKG)/include/"
  31. TARGET_CXXFLAGS += -faligned-new
  32. define Package/fbzmq/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfbzmq.so* $(1)/usr/lib/
  35. endef
  36. $(eval $(call BuildPackage,fbzmq))