aboutsummaryrefslogtreecommitdiffstats
path: root/net/libzmq4/Makefile
blob: eee2b45051261ccbf976bb5d194b5f052495d206 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $FreeBSD$

PORTNAME=   libzmq4
PORTVERSION=    4.0.4
PORTREVISION=   3
CATEGORIES= net
MASTER_SITES=   http://download.zeromq.org/
DISTNAME=   zeromq-${DISTVERSION}

MAINTAINER= koobs@FreeBSD.org
COMMENT=    ZeroMQ core library (Version 4)

LICENSE=    LGPL3

USES=       libtool pathfix
USE_LDCONFIG=   yes
INSTALL_TARGET= install-strip

OPTIONS_DEFINE= CURVE DEBUG PGM
OPTIONS_DEFAULT=    CURVE PGM
CURVE_DESC= CURVE security mechanism via libsodium
PGM_DESC=   Reliable multicast transport using PGM via OpenPGM

CURVE_CONFIGURE_ON= --with-libsodium=${LOCALBASE}
CURVE_LIB_DEPENDS=  libsodium.so:${PORTSDIR}/security/libsodium
DEBUG_CONFIGURE_ON= --enable-debug
PGM_CONFIGURE_ON=   --with-system-pgm
PGM_LIB_DEPENDS=    libpgm.so:${PORTSDIR}/net/openpgm
PGM_USES=       pkgconfig

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDEBUG}
WITH_DEBUG= yes
.endif

GNU_CONFIGURE=  yes
CFLAGS+=    -Wno-long-long

CONFLICTS=  zmq-[0-9]* libzmq[^4]-[0-9]*

regression-test: build
    cd ${WRKSRC} && ${MAKE} check

.include <bsd.port.mk>