aboutsummaryrefslogtreecommitdiff
path: root/net/rabbitmq-c-devel
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2012-06-20 00:16:23 +0000
committerJason Helfman <jgh@FreeBSD.org>2012-06-20 00:16:23 +0000
commite61325dc13a2230bbee8a7404f484bebd08c11c4 (patch)
treef62a074dba9b0bdaac3ccf316e755636afb1b722 /net/rabbitmq-c-devel
parentb0e2a2e6832e34ad31eccc36ba17b7eae0fd5394 (diff)
downloadports-e61325dc13a2230bbee8a7404f484bebd08c11c4.tar.gz
ports-e61325dc13a2230bbee8a7404f484bebd08c11c4.zip
- adopt optionsNG
- while here shift license section (portlint), and use stardard licenses PR: ports/169245 Submitted by: maintainer, rabbitmq@geoffgarside.co.uk
Notes
Notes: svn path=/head/; revision=299666
Diffstat (limited to 'net/rabbitmq-c-devel')
-rw-r--r--net/rabbitmq-c-devel/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/net/rabbitmq-c-devel/Makefile b/net/rabbitmq-c-devel/Makefile
index 14268d729577..3b3b44ff7b02 100644
--- a/net/rabbitmq-c-devel/Makefile
+++ b/net/rabbitmq-c-devel/Makefile
@@ -20,6 +20,9 @@ DIST_SUBDIR= rabbitmq
MAINTAINER= rabbitmq@geoffgarside.co.uk
COMMENT= RabbitMQ C AMQP client library
+LICENSE= GPLv2 MPL
+LICENSE_COMB= dual
+
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:${PORTSDIR}/devel/py-simplejson
CONFLICTS= rabbitmq-c-[0-9]*
@@ -33,23 +36,19 @@ USE_AUTOTOOLS= aclocal autoconf automake autoheader libtool
AUTOMAKE_ARGS= -i --add-missing
ACLOCAL_ARGS= -I . -I ${LOCALBASE}/share/aclocal
-LICENSE= GPLv2 MPL
-LICENSE_COMB= dual
-LICENSE_FILE_MPL= ${WRKSRC}/LICENSE-GPL-2.0
-LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE-MPL-RabbitMQ
-
-OPTIONS= 64BIT "Produce 64-bit library" Off \
- POPT "Popt support in tools" Off
+OPTIONS_DEFINE= 64BIT POPT
+64BIT_DESC= Produce 64-bit library
+POPT_DESC= Popt support in tools
.include <bsd.port.options.mk>
-.if defined(WITH_64BIT)
+.if ${PORT_OPTIONS:M64BIT}
ONLY_FOR_ARCHS= amd64 sparc64 powerpc
-ONLY_FOR_ARCHS_REASON= WITH_64BIT is set
+ONLY_FOR_ARCHS_REASON= 64BIT option is set
CONFIGURE_ARGS+= --enable-64-bit
.endif
-.if defined(WITH_POPT)
+.if ${PORT_OPTIONS:MPOPT}
LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib