2019-07-25 20:31:22 +02:00
|
|
|
#
|
2016-06-11 17:08:20 +02:00
|
|
|
# Copyright (C) 2016 OpenWrt.org
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# This Makefile for ZeroMQ
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=zeromq
|
2021-01-17 23:21:36 +01:00
|
|
|
PKG_VERSION:=4.3.4
|
2021-02-17 13:52:31 +01:00
|
|
|
PKG_RELEASE:=2
|
2019-07-10 15:18:16 +02:00
|
|
|
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2020-07-28 07:00:42 +02:00
|
|
|
PKG_SOURCE_URL:=https://github.com/zeromq/libzmq/releases/download/v$(PKG_VERSION)
|
2021-01-17 23:21:36 +01:00
|
|
|
PKG_HASH:=c593001a89f5a85dd2ddf564805deb860e02471171b3f204944857336295c3e5
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
|
2019-07-25 20:31:22 +02:00
|
|
|
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=LICENCE.txt
|
|
|
|
PKG_CPE_ID:=cpe:/a:zeromq:libzmq
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
|
2020-07-19 00:20:07 +02:00
|
|
|
CMAKE_BINARY_SUBDIR:=openwrt-build
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-03-04 23:45:01 +01:00
|
|
|
include ../../devel/ninja/ninja-cmake.mk
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
|
2015-07-04 16:46:53 +02:00
|
|
|
define Package/libzmq/default
|
2015-05-14 20:28:23 +02:00
|
|
|
TITLE:=ZeroMQ - Message Queue engine
|
|
|
|
URL:=http://www.zeromq.org/
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2020-09-16 09:16:07 +02:00
|
|
|
DEPENDS:=+libuuid +libpthread +librt +libstdcpp +USE_GLIBC:libbsd
|
2015-07-04 16:46:53 +02:00
|
|
|
PROVIDES:=libzmq
|
2015-05-14 20:28:23 +02:00
|
|
|
endef
|
|
|
|
|
2021-02-17 13:52:31 +01:00
|
|
|
define Package/libzmq/default-config
|
|
|
|
config LIBZMQ_$(2)_WITH_OPENPGM
|
|
|
|
depends on PACKAGE_libzmq-$(1)
|
|
|
|
bool "enable openpgm support for libzmq-$(1)"
|
|
|
|
default n
|
|
|
|
endef
|
|
|
|
|
2015-07-04 16:46:53 +02:00
|
|
|
define Package/libzmq-nc
|
|
|
|
$(call Package/libzmq/default)
|
|
|
|
VARIANT:=nc
|
2021-02-17 13:52:31 +01:00
|
|
|
DEPENDS+=+LIBZMQ_NC_WITH_OPENPGM:openpgm
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
endef
|
|
|
|
|
2015-07-04 16:46:53 +02:00
|
|
|
define Package/libzmq-curve
|
|
|
|
$(call Package/libzmq/default)
|
|
|
|
VARIANT:=curve
|
|
|
|
TITLE+= (CurveZMQ)
|
2021-02-17 13:52:31 +01:00
|
|
|
DEPENDS+=+libsodium +LIBZMQ_CURVE_WITH_OPENPGM:openpgm
|
2015-07-04 16:46:53 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libzmq-nc/description
|
2015-05-14 20:28:23 +02:00
|
|
|
This package contains the ZeroMQ messaging engine shared library.
|
2015-07-04 16:46:53 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libzmq-curve/description
|
|
|
|
$(call Package/libzmq-nc/description)
|
|
|
|
Includes CurveZMQ security by libsodium.
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
endef
|
|
|
|
|
2021-02-17 13:52:31 +01:00
|
|
|
define Package/libzmq-nc/config
|
|
|
|
$(call Package/libzmq/default-config,nc,NC)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libzmq-curve/config
|
|
|
|
$(call Package/libzmq/default-config,curve,CURVE)
|
|
|
|
endef
|
|
|
|
|
2020-07-19 00:20:07 +02:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DA2X_EXECUTABLE=OFF \
|
|
|
|
-DASCIIDOC_EXECUTABLE=OFF \
|
2020-07-28 07:00:42 +02:00
|
|
|
-DBUILD_STATIC=OFF \
|
2020-07-19 00:20:07 +02:00
|
|
|
-DCMAKE_SKIP_INSTALL_RPATH=ON \
|
|
|
|
-DZMQ_HAVE_SOCK_CLOEXEC=ON \
|
|
|
|
-DZMQ_HAVE_SO_KEEPALIVE=ON \
|
|
|
|
-DZMQ_HAVE_TCP_KEEPCNT=ON \
|
|
|
|
-DZMQ_HAVE_TCP_KEEPIDLE=ON \
|
|
|
|
-DZMQ_HAVE_TCP_KEEPINTVL=ON \
|
|
|
|
-DZMQ_HAVE_TCP_KEEPALIVE=ON \
|
|
|
|
-DENABLE_CURVE=ON \
|
|
|
|
-DENABLE_EVENTFD=ON \
|
|
|
|
-DPOLLER=epoll \
|
|
|
|
-DRT_LIBRARY=OFF \
|
2020-09-16 09:16:07 +02:00
|
|
|
-DZMQ_BUILD_TESTS=OFF \
|
|
|
|
-DWITH_LIBBSD=O$(if $(CONFIG_USE_GLIBC),N,FF)
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
|
2015-07-04 16:46:53 +02:00
|
|
|
ifeq ($(BUILD_VARIANT),curve)
|
2020-07-19 00:20:07 +02:00
|
|
|
CMAKE_OPTIONS += -DWITH_LIBSODIUM=ON
|
2015-06-17 16:56:26 +02:00
|
|
|
else
|
2020-07-19 00:20:07 +02:00
|
|
|
CMAKE_OPTIONS += -DWITH_LIBSODIUM=OFF
|
2015-06-17 16:56:26 +02:00
|
|
|
endif
|
|
|
|
|
2021-02-17 13:52:31 +01:00
|
|
|
ifeq ($(CONFIG_LIBZMQ_NC_WITH_OPENPGM),y)
|
|
|
|
CMAKE_OPTIONS += -DWITH_OPENPGM=ON
|
|
|
|
else ifeq ($(CONFIG_LIBZMQ_CURVE_WITH_OPENPGM),y)
|
|
|
|
CMAKE_OPTIONS += -DWITH_OPENPGM=ON
|
|
|
|
else
|
|
|
|
CMAKE_OPTIONS += -DWITH_OPENPGM=OFF
|
|
|
|
endif
|
|
|
|
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/zmq.h $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/zmq_utils.h $(1)/usr/include
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-07-19 00:20:07 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so* $(1)/usr/lib/
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/
|
2020-07-29 05:47:22 +02:00
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libzmq.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libzmq.pc
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
endef
|
|
|
|
|
2015-07-04 16:46:53 +02:00
|
|
|
define Package/libzmq-nc/install
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-07-30 03:10:09 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so.* $(1)/usr/lib/
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 14:34:27 +02:00
|
|
|
endef
|
|
|
|
|
2015-07-04 16:46:53 +02:00
|
|
|
Package/libzmq-curve/install=$(Package/libzmq-nc/install)
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libzmq-nc))
|
|
|
|
$(eval $(call BuildPackage,libzmq-curve))
|