1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- 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
This commit is contained in:
Alexey Dokuchaev 2013-03-17 11:58:23 +00:00
parent 251601d2ef
commit 6c51ce84b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=314423
3 changed files with 12 additions and 16 deletions

View File

@ -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

View File

@ -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.

View File

@ -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