diff options
author | alepulver <alepulver@FreeBSD.org> | 2007-12-20 04:52:25 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2007-12-20 04:52:25 +0800 |
commit | bf4893b12ea64c43efff117f406e885150fa368e (patch) | |
tree | 03163dc602207958a8aa85c9ae19397e0904d372 /games | |
parent | 151fbf112cc9194fbf3cb3332d0afde74fa76c6f (diff) | |
download | freebsd-ports-gnome-bf4893b12ea64c43efff117f406e885150fa368e.tar.gz freebsd-ports-gnome-bf4893b12ea64c43efff117f406e885150fa368e.tar.zst freebsd-ports-gnome-bf4893b12ea64c43efff117f406e885150fa368e.zip |
- Use ECHO_CMD instead of ECHO to create wrapper script.
- Bump PORTREVISION.
- Add Omni-Bot support and OPTIONS entry.
Diffstat (limited to 'games')
-rw-r--r-- | games/linux-enemyterritory-etpub/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/games/linux-enemyterritory-etpub/Makefile b/games/linux-enemyterritory-etpub/Makefile index 0e77be09d002..8750e8ff5fef 100644 --- a/games/linux-enemyterritory-etpub/Makefile +++ b/games/linux-enemyterritory-etpub/Makefile @@ -7,6 +7,7 @@ PORTNAME= etpub PORTVERSION= 0.8.1 +PORTREVISION= 1 CATEGORIES= games linux MASTER_SITES= http://et.tjw.org/etpub/dist/ PKGNAMEPREFIX= linux-enemyterritory- @@ -22,12 +23,20 @@ RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory USE_ZIP= yes USE_LINUX= yes +OPTIONS= OMNIBOT "Install Omni-Bot for bot support" off + DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME} CLIENT_PK3= ${PORTNAME}_client-20070801.pk3 PLIST_SUB= CLIENT_PK3="${CLIENT_PK3}" +.include <bsd.port.pre.mk> + +.if defined(WITH_OMNIBOT) +RUN_DEPENDS+= et-omni-bot:${PORTSDIR}/games/linux-enemyterritory-omni-bot +.endif + pre-patch: @${FIND} ${WRKSRC} -type f -exec ${SH} -c \ '${FILE} "$$0" | ${GREP} -q text && \ @@ -35,8 +44,8 @@ pre-patch: do-build: .for f in et etded - @(${ECHO} "#!/bin/sh"; \ - ${ECHO} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME} "$$@"') > \ + @(${ECHO_CMD} "#!/bin/sh"; \ + ${ECHO_CMD} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME} +set omnibot_path "${DATADIR}/omni-bot" "$$@"') > \ ${WRKSRC}/${f}-${PORTNAME} .endfor @@ -59,4 +68,4 @@ do-install: ${CP} -R ${WRKSRC}/docs ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |