- Add stage support
This commit is contained in:
parent
05e4be83fc
commit
940b23f994
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334704
1 changed files with 9 additions and 10 deletions
|
@ -31,7 +31,6 @@ FULLGAME_DESC= Install full game version
|
||||||
QW_DATA_DESC= Install QuakeWorld data
|
QW_DATA_DESC= Install QuakeWorld data
|
||||||
QW_SKINS_DESC= Install QuakeWorld skins
|
QW_SKINS_DESC= Install QuakeWorld skins
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include "Makefile.include" # must be included before bsd.port.options.mk
|
.include "Makefile.include" # must be included before bsd.port.options.mk
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
@ -66,21 +65,21 @@ pre-fetch:
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${DATADIR}/id1
|
@${MKDIR} ${STAGEDIR}${DATADIR}/id1
|
||||||
${INSTALL_DATA} ${WRKSRC}/id1/pak0.pak ${DATADIR}/id1
|
${INSTALL_DATA} ${WRKSRC}/id1/pak0.pak ${STAGEDIR}${DATADIR}/id1
|
||||||
.if ${PORT_OPTIONS:MFULLGAME}
|
.if ${PORT_OPTIONS:MFULLGAME}
|
||||||
${INSTALL_DATA} ${_DISTDIR}/pak1.pak ${DATADIR}/id1
|
${INSTALL_DATA} ${_DISTDIR}/pak1.pak ${STAGEDIR}${DATADIR}/id1
|
||||||
.endif
|
.endif
|
||||||
.if ${PORT_OPTIONS:MQW_DATA}
|
.if ${PORT_OPTIONS:MQW_DATA}
|
||||||
@${MKDIR} ${DATADIR}/qw
|
@${MKDIR} ${STAGEDIR}${DATADIR}/qw
|
||||||
${INSTALL_DATA} ${WRKSRC}/qw/qwprogs.dat ${DATADIR}/qw
|
${INSTALL_DATA} ${WRKSRC}/qw/qwprogs.dat ${STAGEDIR}${DATADIR}/qw
|
||||||
@${MKDIR} ${DATADIR}/qw/skins
|
@${MKDIR} ${STAGEDIR}${DATADIR}/qw/skins
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/qw/skins/fixskins.sh ${DATADIR}/qw/skins
|
${INSTALL_SCRIPT} ${WRKSRC}/qw/skins/fixskins.sh ${STAGEDIR}${DATADIR}/qw/skins
|
||||||
. if ${PORT_OPTIONS:MQW_SKINS}
|
. if ${PORT_OPTIONS:MQW_SKINS}
|
||||||
. for f in ${SKINFILES}
|
. for f in ${SKINFILES}
|
||||||
@${UNZIP_CMD} -nq ${_DISTDIR}/${f} -d ${DATADIR}/qw/skins
|
@${UNZIP_CMD} -nq ${_DISTDIR}/${f} -d ${STAGEDIR}${DATADIR}/qw/skins
|
||||||
. endfor
|
. endfor
|
||||||
@(cd ${DATADIR}/qw/skins && LANG=C ./fixskins.sh *)
|
@(cd ${STAGEDIR}${DATADIR}/qw/skins && LANG=C ./fixskins.sh *)
|
||||||
. endif
|
. endif
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue