ports/171300: games/linux-enemyterritory-jaymod: convert to OptionsNG
Barbara
barbara.xxx1975 at libero.it
Mon Sep 3 23:20:07 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list