|
@ -22,11 +22,11 @@ PKG_LICENSE:=GPL-3.0-or-later |
|
|
PKG_LICENSE_FILES:=LICENCE.txt |
|
|
PKG_LICENSE_FILES:=LICENCE.txt |
|
|
PKG_CPE_ID:=cpe:/a:zeromq:libzmq |
|
|
PKG_CPE_ID:=cpe:/a:zeromq:libzmq |
|
|
|
|
|
|
|
|
PKG_INSTALL:=1 |
|
|
|
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
PKG_REMOVE_FILES:=autogen.sh acinclude.m4 aclocal.m4 |
|
|
|
|
|
|
|
|
CMAKE_BINARY_SUBDIR:=openwrt-build |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk |
|
|
|
|
|
|
|
|
define Package/libzmq/default |
|
|
define Package/libzmq/default |
|
|
TITLE:=ZeroMQ - Message Queue engine |
|
|
TITLE:=ZeroMQ - Message Queue engine |
|
@ -58,35 +58,43 @@ define Package/libzmq-curve/description |
|
|
Includes CurveZMQ security by libsodium. |
|
|
Includes CurveZMQ security by libsodium. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
# add extra configure flags here
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
|
|
--enable-static \
|
|
|
|
|
|
--enable-shared \
|
|
|
|
|
|
--with-pic \
|
|
|
|
|
|
--with-relaxed \
|
|
|
|
|
|
--without-documentation |
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
|
|
-DA2X_EXECUTABLE=OFF \
|
|
|
|
|
|
-DASCIIDOC_EXECUTABLE=OFF \
|
|
|
|
|
|
-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 \
|
|
|
|
|
|
-DPYTHON_EXECUTABLE=OFF \
|
|
|
|
|
|
-DRT_LIBRARY=OFF \
|
|
|
|
|
|
-DWITH_OPENPGM=OFF \
|
|
|
|
|
|
-DZMQ_BUILD_TESTS=OFF |
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),curve) |
|
|
ifeq ($(BUILD_VARIANT),curve) |
|
|
CONFIGURE_ARGS+= --with-libsodium |
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += -DWITH_LIBSODIUM=ON |
|
|
else |
|
|
else |
|
|
CONFIGURE_ARGS+= --without-libsodium |
|
|
|
|
|
|
|
|
CMAKE_OPTIONS += -DWITH_LIBSODIUM=OFF |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
TARGET_CXXFLAGS += -Wno-error=cpp |
|
|
|
|
|
|
|
|
|
|
|
define Build/InstallDev |
|
|
define Build/InstallDev |
|
|
$(INSTALL_DIR) $(1)/usr/include |
|
|
$(INSTALL_DIR) $(1)/usr/include |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/zmq.h $(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 |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/zmq_utils.h $(1)/usr/include |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.{a,so*} $(1)/usr/lib/ |
|
|
|
|
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so* $(1)/usr/lib/ |
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/libzmq-nc/install |
|
|
define Package/libzmq-nc/install |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so.* $(1)/usr/lib/ |
|
|
|
|
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so $(1)/usr/lib/ |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
Package/libzmq-curve/install=$(Package/libzmq-nc/install) |
|
|
Package/libzmq-curve/install=$(Package/libzmq-nc/install) |
|
|