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-02-10 15:47:46 +01:00
|
|
|
ZEROMQ_VERSION = 4.1.4
|
2014-07-31 10:46:58 +02:00
|
|
|
ZEROMQ_SITE = http://download.zeromq.org
|
2012-03-14 17:38:16 +01:00
|
|
|
ZEROMQ_INSTALL_STAGING = YES
|
|
|
|
ZEROMQ_DEPENDENCIES = util-linux
|
2012-08-28 04:07:43 +02:00
|
|
|
ZEROMQ_LICENSE = LGPLv3+ with exceptions
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
ZEROMQ_CONF_OPTS += --with-system-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))
|