2019-07-25 18:31:22 +00:00
|
|
|
#
|
2016-06-11 15:08:20 +00: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 12:34:27 +00: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 22:21:36 +00:00
|
|
|
PKG_VERSION:=4.3.4
|
2023-05-19 18:14:59 +00:00
|
|
|
PKG_RELEASE:=4
|
2019-07-10 13:18:16 +00: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 12:34:27 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2020-07-28 05:00:42 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/zeromq/libzmq/releases/download/v$(PKG_VERSION)
|
2021-01-17 22:21:36 +00: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 12:34:27 +00:00
|
|
|
|
2019-07-25 18:31:22 +00: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 12:34:27 +00:00
|
|
|
|
2020-07-18 22:20:07 +00: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 12:34:27 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/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 12:34:27 +00:00
|
|
|
|
2015-07-04 14:46:53 +00:00
|
|
|
define Package/libzmq/default
|
2015-05-14 18:28:23 +00: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 12:34:27 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2022-07-26 01:24:01 +00:00
|
|
|
DEPENDS:=+libuuid +libstdcpp
|
2015-07-04 14:46:53 +00:00
|
|
|
PROVIDES:=libzmq
|
2015-05-14 18:28:23 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-17 12:52:31 +00: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 14:46:53 +00:00
|
|
|
define Package/libzmq-nc
|
|
|
|
$(call Package/libzmq/default)
|
|
|
|
VARIANT:=nc
|
2021-02-17 12:52:31 +00: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 12:34:27 +00:00
|
|
|
endef
|
|
|
|
|
2015-07-04 14:46:53 +00:00
|
|
|
define Package/libzmq-curve
|
|
|
|
$(call Package/libzmq/default)
|
|
|
|
VARIANT:=curve
|
|
|
|
TITLE+= (CurveZMQ)
|
2021-02-17 12:52:31 +00:00
|
|
|
DEPENDS+=+libsodium +LIBZMQ_CURVE_WITH_OPENPGM:openpgm
|
2015-07-04 14:46:53 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libzmq-nc/description
|
2015-05-14 18:28:23 +00:00
|
|
|
This package contains the ZeroMQ messaging engine shared library.
|
2015-07-04 14:46:53 +00: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 12:34:27 +00:00
|
|
|
endef
|
|
|
|
|
2021-02-17 12:52:31 +00: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-18 22:20:07 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DA2X_EXECUTABLE=OFF \
|
|
|
|
-DASCIIDOC_EXECUTABLE=OFF \
|
2020-07-28 05:00:42 +00:00
|
|
|
-DBUILD_STATIC=OFF \
|
2020-07-18 22:20:07 +00:00
|
|
|
-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 \
|
2022-07-26 01:24:01 +00:00
|
|
|
-DZMQ_BUILD_TESTS=OFF
|
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 12:34:27 +00:00
|
|
|
|
2015-07-04 14:46:53 +00:00
|
|
|
ifeq ($(BUILD_VARIANT),curve)
|
2020-07-18 22:20:07 +00:00
|
|
|
CMAKE_OPTIONS += -DWITH_LIBSODIUM=ON
|
2015-06-17 14:56:26 +00:00
|
|
|
else
|
2020-07-18 22:20:07 +00:00
|
|
|
CMAKE_OPTIONS += -DWITH_LIBSODIUM=OFF
|
2015-06-17 14:56:26 +00:00
|
|
|
endif
|
|
|
|
|
2021-02-17 12:52:31 +00: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 12:34:27 +00: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-18 22:20:07 +00: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 12:34:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/
|
2020-07-29 03:47:22 +00: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 12:34:27 +00:00
|
|
|
endef
|
|
|
|
|
2015-07-04 14:46:53 +00: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 12:34:27 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-07-30 01:10:09 +00: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 12:34:27 +00:00
|
|
|
endef
|
|
|
|
|
2015-07-04 14:46:53 +00:00
|
|
|
Package/libzmq-curve/install=$(Package/libzmq-nc/install)
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libzmq-nc))
|
|
|
|
$(eval $(call BuildPackage,libzmq-curve))
|