diff options
-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> |