fbzmq: Add fbzmq library 8950/head
authorAmol Bhave <ambhave@fb.com>
Sat, 11 May 2019 00:39:03 +0000 (17:39 -0700)
committerAmol Bhave <ambhave@fb.com>
Fri, 14 Jun 2019 10:24:09 +0000 (03:24 -0700)
fbzmq provides a framework for writing services in C++ while leveraging
the features of libzmq (message passing semantics).

Compile tested: nbg6817, master

Maintainer: me

Signed-off-by: Amol Bhave <ambhave@fb.com>
libs/fbzmq/Makefile [new file with mode: 0644]

diff --git a/libs/fbzmq/Makefile b/libs/fbzmq/Makefile
new file mode 100644 (file)
index 0000000..d74ef4f
--- /dev/null
@@ -0,0 +1,45 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fbzmq
+PKG_VERSION:=2019.06.10.00
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/facebook/fbzmq/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=9bb9b2bd42951fa3458b5d6d25f3364c14a7efa3b78bef68a6c00ee6fcba5813
+
+PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_PARALLEL:=1
+CMAKE_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/fbzmq
+       SECTION:=libs
+       CATEGORY:=Libraries
+       TITLE:=Facebook ZeroMQ wrappers.
+       DEPENDS:=+fbthrift +libzmq +libsigar
+endef
+
+define Package/fbzmq/description
+       Facebook ZeroMQ wrappers.
+endef
+
+CMAKE_SOURCE_SUBDIR:=fbzmq
+CMAKE_OPTIONS:= \
+       -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
+       -DBUILD_TESTS=OFF \
+       -DBUILD_SHARED_LIBS=ON \
+       -DTHRIFT1="$(STAGING_DIR_HOST)/bin/thrift1" \
+       -DTHRIFT_COMPILER_INCLUDE="$(STAGING_DIR_HOST)/include/"
+
+define Package/fbzmq/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfbzmq.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,fbzmq))