ports/63012: [patch] games/uhexen: Unbreak, OPTIONS & PLISTify (bento)
Volker Stolz
stolz at i2.informatik.rwth-aachen.de
Wed Feb 18 13:30:13 UTC 2004
>Number: 63012
>Category: ports
>Synopsis: [patch] games/uhexen: Unbreak, OPTIONS & PLISTify (bento)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 18 05:30:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Volker Stolz
>Release: FreeBSD 4.9-STABLE i386
>Organization:
Lehrstuhl für Informatik II
>Environment:
System: FreeBSD menelaos.informatik.rwth-aachen.de 4.9-STABLE FreeBSD 4.9-STABLE #12: Mon Dec 8 15:14:27 CET 2003 root at menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS i386
>Description:
- Fix PLIST
- Use PLIST_* while here
- Use OPTIONS while here. The old option is kept for backwards
compatibility.
Noticed by: bento/kris
>How-To-Repeat:
http://bento.freebsd.org/errorlogs/i386-5-latest/uhexen-0.601_1.log
>Fix:
Removed file: pkg-plist
--- uhexen begins here ---
diff -urN /usr/ports/games/uhexen/Makefile uhexen/Makefile
--- /usr/ports/games/uhexen/Makefile Wed Feb 11 14:24:11 2004
+++ uhexen/Makefile Wed Feb 18 14:08:49 2004
@@ -19,29 +19,38 @@
MAINTAINER= ports at FreeBSD.org
COMMENT= Yet another port of Hexen, popular game from Raven Softrware
+OPTIONS= NOWAD "Don't install WAD file" off
+
+USE_SDL= mixer sdl
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_NOWAD)
+WITHOUT_WAD= yes
+.endif
+
.if !defined(WITHOUT_WAD)
EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
.endif
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PLIST_FILES= bin/uhexen %%DATADIR%%/.keep_me %%WAD%%%%DATADIR%%/hexen.wad
+PLIST_DIRS= %%DATADIR%%
-USE_SDL= mixer sdl
-USE_X_PREFIX= yes
-USE_GMAKE= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.if defined(WITHOUT_WAD)
-PLIST_SUB= WAD:="@comment "
+PLIST_SUB= WAD="@comment "
.else
-PLIST_SUB= WAD:=""
+PLIST_SUB= WAD=""
.endif
-BROKEN= "Broken pkg-plist"
-
pre-everything::
@${ECHO} ""
@${ECHO} "You may use the following build options:"
@${ECHO} ""
- @${ECHO} " WITHOUT_WAD=yes Don't install the wad file."
+ @${ECHO} " WITH_NOWAD=yes Don't install the wad file."
@${ECHO} ""
post-extract:
@@ -58,4 +67,4 @@
.endif
${TOUCH} ${DATADIR}/.keep_me
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
--- uhexen ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list