2013-11-28 12:41:56 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libzmq4
|
2017-08-20 13:58:39 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2018-02-11 18:53:33 +01:00
|
|
|
DISTVERSION= 4.2.3
|
2013-11-28 12:41:56 +01:00
|
|
|
CATEGORIES= net
|
2017-08-20 13:58:39 +02:00
|
|
|
MASTER_SITES= https://github.com/zeromq/libzmq/releases/download/${DISTVERSIONFULL}/
|
2013-11-28 12:41:56 +01:00
|
|
|
DISTNAME= zeromq-${DISTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
|
|
COMMENT= ZeroMQ core library (Version 4)
|
|
|
|
|
|
|
|
LICENSE= LGPL3
|
2015-02-09 04:23:49 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
|
|
|
CONFLICTS= zmq-[0-9]* libzmq[^4]-[0-9]*
|
2013-11-28 12:41:56 +01:00
|
|
|
|
2018-02-11 18:53:33 +01:00
|
|
|
USES= gmake libtool pkgconfig
|
2013-11-28 12:41:56 +01:00
|
|
|
USE_LDCONFIG= yes
|
2015-02-09 04:23:49 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2018-02-11 18:53:33 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
|
|
|
TEST_TARGET= check
|
2013-11-28 12:41:56 +01:00
|
|
|
|
2018-02-11 18:53:33 +01:00
|
|
|
OPTIONS_DEFINE= DEBUG LIBUNWIND MANPAGES
|
2017-08-20 13:58:39 +02:00
|
|
|
OPTIONS_RADIO= CURVE
|
|
|
|
OPTIONS_RADIO_CURVE= SODIUM TWEETNACL
|
|
|
|
OPTIONS_GROUP= MULTICAST
|
|
|
|
OPTIONS_GROUP_MULTICAST= NORM PGM
|
|
|
|
OPTIONS_DEFAULT= MANPAGES NORM PGM TWEETNACL
|
2016-08-11 14:15:20 +02:00
|
|
|
OPTIONS_SUB= yes
|
2015-02-09 04:23:49 +01:00
|
|
|
|
2018-02-11 18:53:33 +01:00
|
|
|
LIBUNWIND_DESC= Use libunwind to print stack trace in case of error
|
2017-08-20 13:58:39 +02:00
|
|
|
CURVE_DESC= CURVE security backend
|
|
|
|
MULTICAST_DESC= Reliable Multicast Transports
|
|
|
|
TWEETNACL_DESC= Use tweetnacl
|
|
|
|
SODIUM_DESC= Use libsodium
|
|
|
|
PGM_DESC= Enable PGM transport via OpenPGM
|
|
|
|
NORM_DESC= Enable NORM via NRL
|
2015-02-09 04:23:49 +01:00
|
|
|
|
2015-06-15 13:06:49 +02:00
|
|
|
DEBUG_CONFIGURE_ENABLE= debug
|
2016-02-02 14:10:54 +01:00
|
|
|
DEBUG_VARS= WITH_DEBUG=yes
|
2015-06-15 13:06:49 +02:00
|
|
|
|
|
|
|
PGM_CONFIGURE_WITH= pgm
|
2016-04-01 16:16:16 +02:00
|
|
|
PGM_LIB_DEPENDS= libpgm.so:net/openpgm
|
2015-06-15 13:06:49 +02:00
|
|
|
|
2018-02-11 18:53:33 +01:00
|
|
|
LIBUNWIND_LIB_DEPENDS= libunwind.so:devel/libunwind
|
|
|
|
LIBUNWIND_CONFIGURE_ENABLE= libunwind
|
|
|
|
|
2016-08-11 14:15:20 +02:00
|
|
|
MANPAGES_BUILD_DEPENDS= xmlto:textproc/xmlto \
|
|
|
|
asciidoc:textproc/asciidoc
|
2017-08-20 13:58:39 +02:00
|
|
|
MANPAGES_CONFIGURE_WITH= docs
|
2016-08-11 14:15:20 +02:00
|
|
|
|
2016-08-11 12:27:27 +02:00
|
|
|
NORM_CONFIGURE_WITH= norm=${PREFIX}
|
|
|
|
NORM_LIB_DEPENDS= libnorm.so:net/norm
|
|
|
|
|
2017-08-20 13:58:39 +02:00
|
|
|
SODIUM_CONFIGURE_WITH= libsodium
|
|
|
|
SODIUM_LIB_DEPENDS= libsodium.so:security/libsodium
|
|
|
|
SODIUM_PLIST_FILES= bin/curve_keygen
|
|
|
|
|
|
|
|
TWEETNACL_PLIST_FILES= bin/curve_keygen
|
|
|
|
|
2018-02-11 18:53:33 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig --disable-static
|
|
|
|
CFLAGS+= -Wno-long-long
|
|
|
|
CPPFLAGS+= -Wno-error
|
|
|
|
MAKE_ENV= V=1
|
2013-11-28 12:41:56 +01:00
|
|
|
|
2017-08-20 13:58:39 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if !${PORT_OPTIONS:MSODIUM} && !${PORT_OPTIONS:MTWEETNACL}
|
|
|
|
CONFIGURE_ARGS+= --disable-curve
|
|
|
|
.endif
|
|
|
|
|
2013-11-28 12:41:56 +01:00
|
|
|
.include <bsd.port.mk>
|