|
|
@ -18,9 +18,9 @@ PKG_LICENSE_FILES:=LICENCE.txt |
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
|
|
PKG_SOURCE_URL:= http://download.zeromq.org |
|
|
|
PKG_MD5SUM:=73c39f5eb01b9d7eaf74a5d899f1d03d |
|
|
|
PKG_MD5SUM:=0a4b44aa085644f25c177f79dc13f253 |
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
PKG_BUILD_DEPENDS:=libuuid |
|
|
|
|
|
|
|
PKG_FIXUP:=autoreconf |
|
|
@ -31,26 +31,34 @@ PKG_INSTALL:=1 |
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk |
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
define Package/libzmq |
|
|
|
define Package/libzmq/default |
|
|
|
TITLE:=ZeroMQ - Message Queue engine |
|
|
|
URL:=http://www.zeromq.org/ |
|
|
|
SECTION:=libs |
|
|
|
CATEGORY:=Libraries |
|
|
|
DEPENDS:=+libuuid +libpthread +librt +PACKAGE_libsodium:libsodium $(CXX_DEPENDS) |
|
|
|
MENU:=1 |
|
|
|
DEPENDS:=+libuuid +libpthread +librt $(CXX_DEPENDS) |
|
|
|
PROVIDES:=libzmq |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/libzmq/config |
|
|
|
config LIBZMQ_CURVEZMQ |
|
|
|
bool "Include support for CurveZMQ security" |
|
|
|
depends on PACKAGE_libzmq |
|
|
|
default y |
|
|
|
select PACKAGE_libsodium |
|
|
|
define Package/libzmq-nc |
|
|
|
$(call Package/libzmq/default) |
|
|
|
VARIANT:=nc |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/libzmq/description |
|
|
|
define Package/libzmq-curve |
|
|
|
$(call Package/libzmq/default) |
|
|
|
VARIANT:=curve |
|
|
|
TITLE+= (CurveZMQ) |
|
|
|
DEPENDS+=+libsodium |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/libzmq-nc/description |
|
|
|
This package contains the ZeroMQ messaging engine shared library. |
|
|
|
CurveZMQ security protocols are optional using libsodium. |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/libzmq-curve/description |
|
|
|
$(call Package/libzmq-nc/description) |
|
|
|
Includes CurveZMQ security by libsodium. |
|
|
|
endef |
|
|
|
|
|
|
|
# add extra configure flags here
|
|
|
@ -58,15 +66,12 @@ CONFIGURE_ARGS += \ |
|
|
|
--enable-static \
|
|
|
|
--enable-shared |
|
|
|
|
|
|
|
ifneq ($(CONFIG_PACKAGE_libsodium),) |
|
|
|
ifeq ($(BUILD_VARIANT),curve) |
|
|
|
CONFIGURE_ARGS+= --with-libsodium |
|
|
|
else |
|
|
|
CONFIGURE_ARGS+= --without-libsodium |
|
|
|
endif |
|
|
|
|
|
|
|
# add make variable overrides here
|
|
|
|
MAKE_FLAGS += |
|
|
|
|
|
|
|
define Build/InstallDev |
|
|
|
$(INSTALL_DIR) $(1)/usr/include |
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/zmq.h $(1)/usr/include |
|
|
@ -77,9 +82,12 @@ define Build/InstallDev |
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libzmq.pc $(1)/usr/lib/pkgconfig/ |
|
|
|
endef |
|
|
|
|
|
|
|
define Package/libzmq/install |
|
|
|
define Package/libzmq-nc/install |
|
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzmq.so.* $(1)/usr/lib/ |
|
|
|
endef |
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libzmq)) |
|
|
|
Package/libzmq-curve/install=$(Package/libzmq-nc/install) |
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libzmq-nc)) |
|
|
|
$(eval $(call BuildPackage,libzmq-curve)) |