Date: Sun, 11 May 2014 21:23:09 +0000 (UTC) From: Barbara Guida <bar@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r353737 - head/games/linux-enemyterritory-jaymod Message-ID: <201405112123.s4BLN9wA001405@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bar Date: Sun May 11 21:23:09 2014 New Revision: 353737 URL: http://svnweb.freebsd.org/changeset/ports/353737 QAT: https://qat.redports.org/buildarchive/r353737/ Log: - Support STAGEDIR - Use options helpers Modified: head/games/linux-enemyterritory-jaymod/Makefile head/games/linux-enemyterritory-jaymod/pkg-plist Modified: head/games/linux-enemyterritory-jaymod/Makefile ============================================================================== --- head/games/linux-enemyterritory-jaymod/Makefile Sun May 11 21:22:47 2014 (r353736) +++ head/games/linux-enemyterritory-jaymod/Makefile Sun May 11 21:23:09 2014 (r353737) @@ -24,12 +24,9 @@ DOCSDIR= ${PREFIX}/share/doc/enemyterrit 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> Modified: head/games/linux-enemyterritory-jaymod/pkg-plist ============================================================================== --- head/games/linux-enemyterritory-jaymod/pkg-plist Sun May 11 21:22:47 2014 (r353736) +++ head/games/linux-enemyterritory-jaymod/pkg-plist Sun May 11 21:23:09 2014 (r353737) @@ -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%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405112123.s4BLN9wA001405>