diff options
author | Jan Pavlinec <jan.pavlinec@nic.cz> | 2019-01-22 14:28:22 +0100 |
---|---|---|
committer | Jan Pavlinec <jan.pavlinec@nic.cz> | 2019-01-30 20:52:43 +0100 |
commit | 936a48ad58322e015eef8040b21cb6aacb444f35 (patch) | |
tree | ae1ebc68e13690351711b33781cda262eaac48b5 /libs/czmq | |
parent | c7315a6acd0ba3ef5c3e6408d2728b2c59c81587 (diff) |
czmq: add new package
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
Diffstat (limited to 'libs/czmq')
-rw-r--r-- | libs/czmq/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libs/czmq/Makefile b/libs/czmq/Makefile new file mode 100644 index 000000000..c5f73037c --- /dev/null +++ b/libs/czmq/Makefile @@ -0,0 +1,57 @@ +# +# Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/) +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=czmq +PKG_VERSION:=4.1.1 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/zeromq/czmq/releases/download/v$(PKG_VERSION)/ +PKG_HASH:=f00ff419881dc2a05d0686c8467cd89b4882677fc56f31c0e2cc81c134cbb0c0 + +PKG_INSTALL:=1 +PKG_FIXUP:=autoreconf + +PKG_LICENSE:=MPLv2 +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz> + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/autotools.mk + +define Package/czmq + SECTION:=libs + CATEGORY:=Libraries + TITLE:=CZMQ + DEPENDS:=+libzmq +libuuid +libpcre +liblz4 +endef + +define Package/czmq/description + High-level C binding for ØMQ +endef + +TARGET_CFLAGS += --std=c99 +CONFIGURE_ARGS += --without-docs + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ +endef + +define Package/czmq/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/zmakecert $(1)/usr/bin/zmakecert + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libczmq.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,czmq)) |