Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2012 19:04:33 GMT
From:      Geoff Garside <freebsd@geoffgarside.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/169244: [maintainer update] net/rabbitmq-c convert to optionsng
Message-ID:  <201206191904.q5JJ4Xvc009511@red.freebsd.org>
Resent-Message-ID: <201206191910.q5JJADAT085227@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         169244
>Category:       ports
>Synopsis:       [maintainer update] net/rabbitmq-c convert to optionsng
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 19 19:10:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Geoff Garside
>Release:        
>Organization:
>Environment:
>Description:
Update Makefile to OptionsNG
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- /usr/ports/net/rabbitmq-c/Makefile	2012-02-19 07:02:57.000000000 +0000
+++ Makefile	2012-06-04 09:40:44.000000000 +0100
@@ -37,18 +37,19 @@
 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


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206191904.q5JJ4Xvc009511>