2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-14 17:38:16 +01:00
|
|
|
#
|
|
|
|
# zeromq
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-14 17:38:16 +01:00
|
|
|
|
2016-07-23 19:30:00 +02:00
|
|
|
ZEROMQ_VERSION = 4.1.5
|
|
|
|
ZEROMQ_SITE = https://github.com/zeromq/zeromq4-1/releases/download/v$(ZEROMQ_VERSION)
|
2012-03-14 17:38:16 +01:00
|
|
|
ZEROMQ_INSTALL_STAGING = YES
|
|
|
|
ZEROMQ_DEPENDENCIES = util-linux
|
2016-07-23 19:30:01 +02:00
|
|
|
ZEROMQ_CONF_OPTS = --without-documentation
|
2017-03-30 15:43:35 +02:00
|
|
|
ZEROMQ_LICENSE = LGPL-3.0+ with exceptions
|
2012-08-28 04:07:43 +02:00
|
|
|
ZEROMQ_LICENSE_FILES = COPYING COPYING.LESSER
|
2015-08-03 17:51:12 +02:00
|
|
|
# For 0001-acinclude.m4-make-kernel-specific-flags-cacheable.patch
|
2014-05-03 18:33:02 +02:00
|
|
|
ZEROMQ_AUTORECONF = YES
|
2012-03-14 17:38:16 +01:00
|
|
|
|
2015-04-22 09:58:56 +02:00
|
|
|
# Assume these flags are always available. It is true, at least for
|
|
|
|
# SOCK_CLOEXEC, since linux v2.6.27.
|
|
|
|
# Note: the flag TCP_KEEPALIVE is NOT available so we do not include it.
|
|
|
|
ZEROMQ_CONF_ENV = libzmq_cv_sock_cloexec=yes \
|
|
|
|
libzmq_cv_so_keepalive=yes \
|
|
|
|
libzmq_cv_tcp_keepcnt=yes \
|
|
|
|
libzmq_cv_tcp_keepidle=yes \
|
|
|
|
libzmq_cv_tcp_keepintvl=yes
|
|
|
|
|
2014-05-09 01:24:27 +02:00
|
|
|
# Only tools/curve_keygen.c needs this, but it doesn't hurt to pass it
|
|
|
|
# for the rest of the build as well (which automatically includes stdc++).
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
ZEROMQ_CONF_OPTS += LIBS=-lstdc++
|
2014-05-09 01:24:27 +02:00
|
|
|
endif
|
|
|
|
|
2016-03-09 10:35:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZEROMQ_NORM),y)
|
|
|
|
ZEROMQ_CONF_OPTS += --with-norm
|
|
|
|
ZEROMQ_DEPENDENCIES += norm
|
|
|
|
else
|
|
|
|
ZEROMQ_CONF_OPTS += --without-norm
|
|
|
|
endif
|
|
|
|
|
2013-03-04 00:48:12 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZEROMQ_PGM),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
ZEROMQ_DEPENDENCIES += host-pkgconf openpgm
|
2016-03-08 20:43:53 +01:00
|
|
|
ZEROMQ_CONF_OPTS += --with-pgm
|
2016-03-20 23:05:37 +01:00
|
|
|
else
|
|
|
|
ZEROMQ_CONF_OPTS += --without-pgm
|
2013-03-04 00:48:12 +01:00
|
|
|
endif
|
|
|
|
|
2015-05-19 14:01:11 +02:00
|
|
|
# ZeroMQ uses libsodium if it's available.
|
2015-07-13 21:12:25 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
|
2015-05-19 14:01:11 +02:00
|
|
|
ZEROMQ_DEPENDENCIES += libsodium
|
|
|
|
ZEROMQ_CONF_OPTS += --with-libsodium="$(STAGING_DIR)/usr"
|
|
|
|
else
|
|
|
|
ZEROMQ_CONF_OPTS += --without-libsodium
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|