Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= jaymod |
8 |
PORTNAME= jaymod |
9 |
PORTVERSION= 2.1.7 |
9 |
PORTVERSION= 2.1.7 |
10 |
PORTREVISION= 2 |
10 |
PORTREVISION= 3 |
11 |
CATEGORIES= games linux |
11 |
CATEGORIES= games linux |
12 |
MASTER_SITES= http://etmod.googlecode.com/files/ \ |
12 |
MASTER_SITES= http://etmod.googlecode.com/files/ \ |
13 |
http://www.zenenterprises.biz/bud/jaymod/ \ |
13 |
http://www.zenenterprises.biz/bud/jaymod/ \ |
Lines 20-51
Link Here
|
20 |
|
20 |
|
21 |
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory |
21 |
RUN_DEPENDS= et:${PORTSDIR}/games/linux-enemyterritory |
22 |
|
22 |
|
|
|
23 |
VERSTR= ${PORTVERSION:C/([0-9])\.([0-9])\.([0-9]+)/\1\2\3/} |
24 |
PKGNAMESUFFIX= -${VERSTR} |
25 |
PLIST_SUB= VERSTR="${VERSTR}" |
26 |
|
23 |
USE_LINUX= yes |
27 |
USE_LINUX= yes |
24 |
|
28 |
|
25 |
OPTIONS= OMNIBOT "Install Omni-Bot for bot support" off |
29 |
OPTIONS= OMNIBOT "Install Omni-Bot for bot support" off |
26 |
|
30 |
|
27 |
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME} |
31 |
DATADIR= ${PREFIX}/lib/enemyterritory/${PORTNAME}-${VERSTR} |
28 |
DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME} |
32 |
DOCSDIR= ${PREFIX}/share/doc/enemyterritory-${PORTNAME}-${VERSTR} |
29 |
|
33 |
|
30 |
CLIENT_PK3= ${PORTNAME}-${PORTVERSION}.pk3 |
34 |
CLIENT_PK3= ${PORTNAME}-${PORTVERSION}.pk3 |
31 |
PLIST_SUB= CLIENT_PK3="${CLIENT_PK3}" |
35 |
PLIST_SUB+= CLIENT_PK3="${CLIENT_PK3}" |
32 |
|
36 |
|
33 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
34 |
|
38 |
|
35 |
.if defined(WITH_OMNIBOT) |
39 |
.if defined(WITH_OMNIBOT) |
36 |
RUN_DEPENDS+= et-omni-bot:${PORTSDIR}/games/linux-enemyterritory-omni-bot-0660 |
40 |
OB_VERSTR= 0660 |
|
|
41 |
RUN_DEPENDS+= et-omni-bot-${OB_VERSTR}:${PORTSDIR}/games/linux-enemyterritory-omni-bot-${OB_VERSTR} |
37 |
.endif |
42 |
.endif |
38 |
|
43 |
|
39 |
do-build: |
44 |
do-build: |
40 |
.for f in et etded |
45 |
.for f in et etded |
41 |
@(${ECHO_CMD} "#!/bin/sh"; \ |
46 |
@(${ECHO_CMD} "#!/bin/sh"; \ |
42 |
${ECHO_CMD} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME} +set omnibot_path "${DATADIR}/../omni-bot" "$$@"') > \ |
47 |
${ECHO_CMD} 'exec ${PREFIX}/bin/${f} +set fs_game ${PORTNAME}-${VERSTR} +set omnibot_path "${DATADIR}/../omni-bot-${OB_VERSTR}" "$$@"') > \ |
43 |
${WRKSRC}/${f}-${PORTNAME} |
48 |
${WRKSRC}/${f}-${PORTNAME}-${VERSTR} |
44 |
.endfor |
49 |
.endfor |
45 |
|
50 |
|
46 |
do-install: |
51 |
do-install: |
47 |
.for f in et etded |
52 |
.for f in et etded |
48 |
${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME} ${PREFIX}/bin |
53 |
${INSTALL_SCRIPT} ${WRKSRC}/${f}-${PORTNAME}-${VERSTR} ${PREFIX}/bin |
49 |
.endfor |
54 |
.endfor |
50 |
${MKDIR} ${DATADIR} |
55 |
${MKDIR} ${DATADIR} |
51 |
${INSTALL_PROGRAM} ${WRKSRC}/qagame.mp.i386.so ${DATADIR} |
56 |
${INSTALL_PROGRAM} ${WRKSRC}/qagame.mp.i386.so ${DATADIR} |