aboutsummaryrefslogtreecommitdiff
path: root/games/linux-enemyterritory-jaymod-21
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-09-18 17:45:57 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-09-18 17:45:57 +0000
commit09167b9231a8c1f2e7012485ea033c7c9cb2d7f7 (patch)
treecd5ff34a6909b28670eae978fcd7109dde9362d1 /games/linux-enemyterritory-jaymod-21
parent0ddfa588a940012393588a8451447be4745d46f9 (diff)
downloadports-09167b9231a8c1f2e7012485ea033c7c9cb2d7f7.tar.gz
ports-09167b9231a8c1f2e7012485ea033c7c9cb2d7f7.zip
Notes
Diffstat (limited to 'games/linux-enemyterritory-jaymod-21')
-rw-r--r--games/linux-enemyterritory-jaymod-21/Makefile9
-rw-r--r--games/linux-enemyterritory-jaymod-21/pkg-plist12
2 files changed, 8 insertions, 13 deletions
diff --git a/games/linux-enemyterritory-jaymod-21/Makefile b/games/linux-enemyterritory-jaymod-21/Makefile
index ac7f7cba888c..7ea6ffe8bd7f 100644
--- a/games/linux-enemyterritory-jaymod-21/Makefile
+++ b/games/linux-enemyterritory-jaymod-21/Makefile
@@ -3,7 +3,7 @@
PORTNAME= jaymod
PORTVERSION= 2.1.7
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= games linux
MASTER_SITES= http://etmod.googlecode.com/files/ \
http://www.zenenterprises.biz/bud/jaymod/ \
@@ -20,6 +20,9 @@ VERSTR= ${PORTVERSION:C/([0-9])\.([0-9])\.([0-9]+)/\1\2\3/}
PKGNAMESUFFIX= -${VERSTR}
PLIST_SUB= VERSTR="${VERSTR}"
+USES= shebangfix
+SHEBANG_FILES= linux/convert_shrub
+perl_OLD_CMD= /bin/env perl
USE_LINUX= yes
PORTSCOUT= limit:^2\.1\.7
@@ -36,8 +39,6 @@ PLIST_SUB+= CLIENT_PK3="${CLIENT_PK3}"
OB_VERSTR= 0660
OMNIBOT_RUN_DEPENDS= et-omni-bot-${OB_VERSTR}:${PORTSDIR}/games/linux-enemyterritory-omni-bot-${OB_VERSTR}
-.include <bsd.port.options.mk>
-
do-build:
.for f in et etded
@(${ECHO_CMD} "#!/bin/sh"; \
@@ -56,6 +57,8 @@ do-install:
@${CP} -p ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}/${f}.sample
.endfor
@${CP} -r ${WRKSRC}/linux ${WRKSRC}/mapscripts ${STAGEDIR}${DATADIR}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in README.txt doc/jaymod.pdf
@cd ${WRKSRC} && ${INSTALL_DATA} ${f} ${STAGEDIR}${DOCSDIR}
diff --git a/games/linux-enemyterritory-jaymod-21/pkg-plist b/games/linux-enemyterritory-jaymod-21/pkg-plist
index a596cb9564dd..f760dd25eced 100644
--- a/games/linux-enemyterritory-jaymod-21/pkg-plist
+++ b/games/linux-enemyterritory-jaymod-21/pkg-plist
@@ -1,8 +1,6 @@
bin/et-jaymod-%%VERSTR%%
bin/etded-jaymod-%%VERSTR%%
-@unexec if cmp %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg; fi
-%%DATADIR%%/jaymod.cfg.sample
-@exec if [ ! -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/jaymod.cfg ] ; then cp -p %D/%F %B/jaymod.cfg; fi
+@sample %%DATADIR%%/jaymod.cfg.sample
%%DATADIR%%/%%CLIENT_PK3%%
%%DATADIR%%/linux/convert_shrub
%%DATADIR%%/linux/serverctl
@@ -16,12 +14,6 @@ bin/etded-jaymod-%%VERSTR%%
%%DATADIR%%/mapscripts/railgun.script
%%DATADIR%%/mapscripts/railgun_lms.script
%%DATADIR%%/qagame.mp.i386.so
-@unexec if cmp %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg.sample; then rm -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg; fi
-%%DATADIR%%/server.cfg.sample
-@exec if [ ! -f %D/lib/enemyterritory/jaymod-%%VERSTR%%/server.cfg ] ; then cp -p %D/%F %B/server.cfg; fi
+@sample %%DATADIR%%/server.cfg.sample
%%PORTDOCS%%%%DOCSDIR%%/README.txt
%%PORTDOCS%%%%DOCSDIR%%/jaymod.pdf
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm %%DATADIR%%/mapscripts
-@dirrm %%DATADIR%%/linux
-@dirrmtry %%DATADIR%%