1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Install versioned binaries to remove conflict with

games/linux-enemyterritory-omni-bot
- Add version to package name
- Remove NO_LATEST_LINK
- Bump PORTREVISION
PR:		ports/164085
Submitted by:	Barbara
This commit is contained in:
Rene Ladan 2012-01-24 21:29:35 +00:00
parent 743a5b1728
commit 952549b0ea
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289754
2 changed files with 10 additions and 7 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= omni-bot
PORTVERSION= 0.660
PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= alepulver
@ -18,15 +19,16 @@ COMMENT= Omni-Bot is a bot for Enemy Territory
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory
CONFLICTS= linux-enemyterritory-omni-bot-0.[7-9]*
NO_LATEST_LINK= yes
VERSTR= ${PORTVERSION:C/([0-9])\.([0-9]+)/\1\2/}
PKGNAMESUFFIX= -${VERSTR}
PLIST_SUB= VERSTR="${VERSTR}"
USE_ZIP= yes
USE_LINUX= yes
NO_WRKSUBDIR= yes
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME}
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME}-${VERSTR}
DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME}-${VERSTR}
do-build:
.for f in et etded
@ -37,7 +39,8 @@ do-build:
do-install:
.for f in et etded
${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME} ${PREFIX}/bin
${MV} ${WRKSRC}/${f}-${PORTNAME} ${WRKSRC}/${f}-${PORTNAME}-${VERSTR}
${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME}-${VERSTR} ${PREFIX}/bin
.endfor
${MKDIR} ${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/omni-bot/omnibot_et.so ${DATADIR}

View File

@ -1,5 +1,5 @@
bin/et-omni-bot
bin/etded-omni-bot
bin/et-omni-bot-%%VERSTR%%
bin/etded-omni-bot-%%VERSTR%%
%%DATADIR%%/et/nav/et_custom.zip
%%DATADIR%%/et/nav/et_official.zip
%%DATADIR%%/et/scripts/ammo_goal.gm