Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Sep 2012 23:12:23 GMT
From:      Barbara <barbara.xxx1975@libero.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/171300: games/linux-enemyterritory-jaymod: convert to OptionsNG
Message-ID:  <201209032312.q83NCNfP024593@red.freebsd.org>
Resent-Message-ID: <201209032320.q83NK6Sm077486@freefall.freebsd.org>

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

>Number:         171300
>Category:       ports
>Synopsis:       games/linux-enemyterritory-jaymod: 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:   Mon Sep 03 23:20:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Barbara
>Release:        RELENG_9
>Organization:
>Environment:
FreeBSD satanasso.local.net 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Wed Aug  8 14:14:58 CEST 2012     root@satanasso.local.net:/usr/obj/usr/src/sys/SATANASSO  i386
>Description:
Convert jaymod port to OptionsNG

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2012-01-24 22:34:49.000000000 +0100
+++ Makefile	2012-09-04 00:45:22.000000000 +0200
@@ -19,7 +19,9 @@
 
 USE_LINUX=	yes
 
-OPTIONS=	OMNIBOT "Install Omni-Bot for bot support" off
+OPTIONS_DEFINE=	OMNIBOT
+OMNIBOT_DESC=	"Install Omni-Bot for bot support"
+OPTIONS_DEFAULT=
 
 DATADIR=	${PREFIX}/lib/enemyterritory/${PORTNAME}
 DOCSDIR=	${PREFIX}/share/doc/enemyterritory-${PORTNAME}
@@ -27,9 +29,9 @@
 CLIENT_PK3=	${PORTNAME}-${PORTVERSION}.pk3
 PLIST_SUB=	CLIENT_PK3="${CLIENT_PK3}"
 
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITH_OMNIBOT)
+.if empty(PORT_OPTIONS:MOMNIBOT)
 RUN_DEPENDS+=	et-omni-bot:${PORTSDIR}/games/linux-enemyterritory-omni-bot
 .endif
 
@@ -64,4 +66,4 @@
 		${CP} -p ${DATADIR}/server.cfg.sample ${DATADIR}/server.cfg ; \
 	fi
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


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



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