aboutsummaryrefslogtreecommitdiff
path: root/package/zeromq
diff options
context:
space:
mode:
authorGravatar Lionel Flandrin <lionel@svkt.org>2019-02-05 11:28:13 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-02-06 17:19:53 +0100
commit964ec06018cc49480ddc2c3248b7c7330ccc40b3 (patch)
treed71db54e2262df1e3a68487b88cc603477d2b892 /package/zeromq
parent0dd0a583510f72ef14b73e4fa2d44ff65febd833 (diff)
downloadbuildroot-964ec06018cc49480ddc2c3248b7c7330ccc40b3.tar.gz
buildroot-964ec06018cc49480ddc2c3248b7c7330ccc40b3.tar.bz2
package/zeromq: allow building with draft APIs enabled
Signed-off-by: Lionel Flandrin <lionel@svkt.org> [Thomas: add explicit --disable-drafts] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/zeromq')
-rw-r--r--package/zeromq/Config.in7
-rw-r--r--package/zeromq/zeromq.mk6
2 files changed, 13 insertions, 0 deletions
diff --git a/package/zeromq/Config.in b/package/zeromq/Config.in
index 69be9f002c..aeedff17b8 100644
--- a/package/zeromq/Config.in
+++ b/package/zeromq/Config.in
@@ -52,4 +52,11 @@ config BR2_PACKAGE_ZEROMQ_PGM
3208) implemented either over raw IP packets or UDP
datagrams (encapsulated PGM).
+config BR2_PACKAGE_ZEROMQ_DRAFTS
+ bool "Draft APIs support"
+ help
+ Enable unstable draft ZeroMQ APIs
+
+ https://pyzmq.readthedocs.io/en/latest/draft.html
+
endif
diff --git a/package/zeromq/zeromq.mk b/package/zeromq/zeromq.mk
index da57f8745c..d799f863c4 100644
--- a/package/zeromq/zeromq.mk
+++ b/package/zeromq/zeromq.mk
@@ -47,6 +47,12 @@ else
ZEROMQ_CONF_OPTS += --without-pgm
endif
+ifeq ($(BR2_PACKAGE_ZEROMQ_DRAFTS),y)
+ZEROMQ_CONF_OPTS += --enable-drafts
+else
+ZEROMQ_CONF_OPTS += --disable-drafts
+endif
+
# ZeroMQ uses libsodium if it's available.
ifeq ($(BR2_PACKAGE_LIBSODIUM),y)
ZEROMQ_DEPENDENCIES += libsodium