mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Support STAGEDIR
- Use options helpers
This commit is contained in:
parent
5df7030d8f
commit
8b5d001bf7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353737
@ -24,12 +24,9 @@ DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME}
|
||||
CLIENT_PK3= ${PORTNAME}-${PORTVERSION}.pk3
|
||||
PLIST_SUB= CLIENT_PK3="${CLIENT_PK3}"
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
OMNIBOT_RUN_DEPENDS= et-omni-bot:${PORTSDIR}/games/linux-enemyterritory-omni-bot
|
||||
|
||||
.if ${PORT_OPTIONS:MOMNIBOT}
|
||||
RUN_DEPENDS+= et-omni-bot:${PORTSDIR}/games/linux-enemyterritory-omni-bot
|
||||
.endif
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-build:
|
||||
.for f in et etded
|
||||
@ -40,26 +37,18 @@ do-build:
|
||||
|
||||
do-install:
|
||||
.for f in et etded
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME} ${PREFIX}/bin
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
||||
.endfor
|
||||
${MKDIR} ${DATADIR}
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/qagame.mp.i386.so ${DATADIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${CLIENT_PK3} ${DATADIR}
|
||||
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/qagame.mp.i386.so ${STAGEDIR}${DATADIR}
|
||||
@cd ${WRKSRC} && ${INSTALL_DATA} ${CLIENT_PK3} ${STAGEDIR}${DATADIR}
|
||||
.for f in jaymod.cfg server.cfg
|
||||
${CP} -p ${WRKSRC}/${f} ${DATADIR}/${f}.sample
|
||||
@${CP} -p ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}/${f}.sample
|
||||
.endfor
|
||||
@${CP} -r ${WRKSRC}/linux ${WRKSRC}/mapscripts ${STAGEDIR}${DATADIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for f in README.txt doc/jaymod.pdf
|
||||
@cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
${CP} -r ${WRKSRC}/linux ${WRKSRC}/mapscripts ${DATADIR}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} README.txt doc/jaymod.pdf ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@if [ ! -f ${DATADIR}/jaymod.cfg ]; then \
|
||||
${CP} -p ${DATADIR}/jaymod.cfg.sample ${DATADIR}/jaymod.cfg ; \
|
||||
fi
|
||||
@if [ ! -f ${DATADIR}/server.cfg ]; then \
|
||||
${CP} -p ${DATADIR}/server.cfg.sample ${DATADIR}/server.cfg ; \
|
||||
fi
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -2,7 +2,7 @@ bin/et-jaymod
|
||||
bin/etded-jaymod
|
||||
@unexec if cmp %D/lib/enemyterritory/jaymod/jaymod.cfg %D/lib/enemyterritory/jaymod/jaymod.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod/jaymod.cfg; fi
|
||||
%%DATADIR%%/jaymod.cfg.sample
|
||||
@exec if [ ! -f %D/lib/enemyterritory/jaymod/jaymod.cfg ] ; then cp -p %D/lib/enemyterritory/jaymod/jaymod.cfg.sample %D/lib/enemyterritory/jaymod/jaymod.cfg; fi
|
||||
@exec if [ ! -f %D/lib/enemyterritory/jaymod/jaymod.cfg ] ; then cp -p %D/%F %B/jaymod.cfg; fi
|
||||
%%DATADIR%%/%%CLIENT_PK3%%
|
||||
%%DATADIR%%/linux/convert_shrub
|
||||
%%DATADIR%%/linux/serverctl
|
||||
@ -18,7 +18,7 @@ bin/etded-jaymod
|
||||
%%DATADIR%%/qagame.mp.i386.so
|
||||
@unexec if cmp %D/lib/enemyterritory/jaymod/server.cfg %D/lib/enemyterritory/jaymod/server.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod/server.cfg; fi
|
||||
%%DATADIR%%/server.cfg.sample
|
||||
@exec if [ ! -f %D/lib/enemyterritory/jaymod/server.cfg ] ; then cp -p %D/lib/enemyterritory/jaymod/server.cfg.sample %D/lib/enemyterritory/jaymod/server.cfg; fi
|
||||
@exec if [ ! -f %D/lib/enemyterritory/jaymod/server.cfg ] ; then cp -p %D/%F %B/server.cfg; fi
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.txt
|
||||
%%PORTDOCS%%%%DOCSDIR%%/jaymod.pdf
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user