aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-03-17 19:58:23 +0800
committerdanfe <danfe@FreeBSD.org>2013-03-17 19:58:23 +0800
commit366c7bb953485d117f2e94ac61e21fe0c3daec8c (patch)
treecdf019f89e4ab8eaf8f79894c712271040f3ce97
parentf537dcb60742a200b5df2506edaa7b12eabc4f06 (diff)
downloadfreebsd-ports-gnome-366c7bb953485d117f2e94ac61e21fe0c3daec8c.tar.gz
freebsd-ports-gnome-366c7bb953485d117f2e94ac61e21fe0c3daec8c.tar.zst
freebsd-ports-gnome-366c7bb953485d117f2e94ac61e21fe0c3daec8c.zip
- Rename FULL option to more specific FULLGAME
- Mention that Makefile.include must be included before bsd.port.options.mk - ${DISTDIR}/${DIST_SUBDIR} -> ${_DISTDIR} to make things shorter - Minor corrections in pkg-descr and pkg-plist
-rw-r--r--games/quake-data/Makefile22
-rw-r--r--games/quake-data/pkg-descr5
-rw-r--r--games/quake-data/pkg-plist1
3 files changed, 12 insertions, 16 deletions
diff --git a/games/quake-data/Makefile b/games/quake-data/Makefile
index 1ed953f93b6b..c743a92d56b2 100644
--- a/games/quake-data/Makefile
+++ b/games/quake-data/Makefile
@@ -24,21 +24,19 @@ NO_WRKSUBDIR= yes
PROGFILE= qwsv-2.30-glibc-i386-unknown-linux2.0.tar.gz
SKINFILES= skinbase.zip qw_skins.zip
-OPTIONS_DEFINE= FULL QW_DATA QW_SKINS
+OPTIONS_DEFINE= FULLGAME QW_DATA QW_SKINS
OPTIONS_DEFAULT= QW_DATA QW_SKINS
-FULL_DESC= Install full game version
+FULLGAME_DESC= Install full game version
QW_DATA_DESC= Install QuakeWorld data
QW_SKINS_DESC= Install QuakeWorld skins
-.include "Makefile.include"
+.include "Makefile.include" # must be included before bsd.port.options.mk
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MFULL}
+.if ${PORT_OPTIONS:MFULLGAME}
DISTFILES+= pak1.pak
-PLIST_SUB+= FULL=""
-.else
-PLIST_SUB+= FULL="@comment "
+PLIST_FILES+= %%DATADIR%%/id1/pak1.pak
.endif
.if ${PORT_OPTIONS:MQW_DATA}
@@ -59,9 +57,9 @@ PLIST_SUB+= QUAKEWORLD="@comment "
.endif
pre-fetch:
-.if ${PORT_OPTIONS:MFULL} && !exists(${DISTDIR}/${DIST_SUBDIR}/pak1.pak)
+.if ${PORT_OPTIONS:MFULLGAME} && !exists(${_DISTDIR}/pak1.pak)
@${ECHO_CMD}
- @${ECHO_CMD} You need to copy the file pak1.pak from the original Quake CDROM to ${DISTDIR}/${DIST_SUBDIR} in order to install this port. | ${FMT}
+ @${ECHO_CMD} You need to copy the file pak1.pak from the original Quake CDROM to ${_DISTDIR} in order to install this port. | ${FMT}
@${ECHO_CMD}
@${FALSE}
.endif
@@ -69,8 +67,8 @@ pre-fetch:
do-install:
@${MKDIR} ${DATADIR}/id1
${INSTALL_DATA} ${WRKSRC}/id1/pak0.pak ${DATADIR}/id1
-.if ${PORT_OPTIONS:MFULL}
- ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/pak1.pak ${DATADIR}/id1
+.if ${PORT_OPTIONS:MFULLGAME}
+ ${INSTALL_DATA} ${_DISTDIR}/pak1.pak ${DATADIR}/id1
.endif
.if ${PORT_OPTIONS:MQW_DATA}
@${MKDIR} ${DATADIR}/qw
@@ -79,7 +77,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/qw/skins/fixskins.sh ${DATADIR}/qw/skins
. if ${PORT_OPTIONS:MQW_SKINS}
. for f in ${SKINFILES}
- @${UNZIP_CMD} -nq ${DISTDIR}/${DIST_SUBDIR}/${f} -d ${DATADIR}/qw/skins
+ @${UNZIP_CMD} -nq ${_DISTDIR}/${f} -d ${DATADIR}/qw/skins
. endfor
@(cd ${DATADIR}/qw/skins && LANG=C ./fixskins.sh *)
. endif
diff --git a/games/quake-data/pkg-descr b/games/quake-data/pkg-descr
index ed8b9564d384..42fdabc246d3 100644
--- a/games/quake-data/pkg-descr
+++ b/games/quake-data/pkg-descr
@@ -1,6 +1,5 @@
-Quake data files.
-
-This port installs the data files needed to run Quake.
+This port installs the data files needed to run Quake (think of a family,
+not just original game).
You still need to have a legitimate copy of the game in order to obtain
the full game, otherwise you can use the shareware version.
diff --git a/games/quake-data/pkg-plist b/games/quake-data/pkg-plist
index 366a544bd43b..48704df2fa47 100644
--- a/games/quake-data/pkg-plist
+++ b/games/quake-data/pkg-plist
@@ -1,5 +1,4 @@
%%DATADIR%%/id1/pak0.pak
-%%FULL%%%%DATADIR%%/id1/pak1.pak
%%QUAKEWORLD%%%%QUAKEWORLD_SKINS%%%%DATADIR%%/qw/skins/311.pcx
%%QUAKEWORLD%%%%QUAKEWORLD_SKINS%%%%DATADIR%%/qw/skins/311.txt
%%QUAKEWORLD%%%%QUAKEWORLD_SKINS%%%%DATADIR%%/qw/skins/amish.pcx