Lines 5-34
Link Here
|
5 |
# $FreeBSD: ports/games/sampsvr/Makefile,v 1.6 2007/09/05 15:02:49 rafan Exp $ |
5 |
# $FreeBSD: ports/games/sampsvr/Makefile,v 1.6 2007/09/05 15:02:49 rafan Exp $ |
6 |
|
6 |
|
7 |
PORTNAME= sampsvr |
7 |
PORTNAME= sampsvr |
8 |
DISTVERSION= 0.2.2 |
8 |
PORTVERSION= 0.2.3 |
9 |
CATEGORIES= games linux |
9 |
CATEGORIES= games linux |
10 |
MASTER_SITES= http://www.sa-mp.com/files/ \ |
10 |
MASTER_SITES= http://files.sa-mp.com/ |
11 |
http://eu.littlewhitey.com/ \ |
11 |
DISTNAME= samp02Xsvr |
12 |
http://dedi.azer.nl/upload/ \ |
|
|
13 |
http://www.kfcgang.com/files/ \ |
14 |
http://files.gtanet.com/samp/ \ |
15 |
http://thegtaplanet.net/download/ \ |
16 |
http://sa-mp.popznet.com/files/ |
17 |
DISTNAME= samp022svr |
18 |
|
12 |
|
19 |
MAINTAINER= ports@logvinov.com |
13 |
MAINTAINER= ports@logvinov.com |
20 |
COMMENT= Rockstar's GTA: San Andreas multiplayer modification dedicated server |
14 |
COMMENT= Rockstar's GTA: San Andreas multiplayer modification dedicated server |
21 |
|
15 |
|
22 |
USE_LINUX= yes |
16 |
USE_LINUX= yes |
23 |
NO_BUILD= yes |
17 |
NO_BUILD= yes |
24 |
WRKSRC= ${WRKDIR}/samp022 |
18 |
WRKSRC= ${WRKDIR}/${DISTNAME:S,svr,,} |
25 |
USE_DOS2UNIX= server.cfg *.pwn |
19 |
USE_DOS2UNIX= *.txt *.pwn |
26 |
USE_RC_SUBR= sampd |
20 |
USE_RC_SUBR= sampd |
27 |
SAMPDIR= ${PREFIX}/lib/${PORTNAME} |
21 |
SAMPDIR= ${PREFIX}/libexec/${PORTNAME} |
28 |
PORTDOCS= README |
22 |
PORTDOCS= README |
29 |
PLIST_SUB= SAMPDIR="${SAMPDIR:S,^${PREFIX}/,,}" |
23 |
PLIST_SUB= SAMPDIR="${SAMPDIR:S,^${PREFIX}/,,}" SAMPBIN=${DISTNAME} |
30 |
SUB_FILES= pkg-message |
24 |
SUB_FILES= pkg-message |
31 |
SUB_LIST= SAMPDIR="${SAMPDIR}" |
25 |
SUB_LIST= SAMPDIR="${SAMPDIR}" SAMPBIN=${DISTNAME} |
32 |
.if !defined(NOPORTDOCS) |
26 |
.if !defined(NOPORTDOCS) |
33 |
SUB_LIST+= NOTEWORK="Read ${DOCSDIR}/README to configure SA-MP Server" |
27 |
SUB_LIST+= NOTEWORK="Read ${DOCSDIR}/README to configure SA-MP Server" |
34 |
.else |
28 |
.else |
Lines 39-58
Link Here
|
39 |
|
33 |
|
40 |
do-install: |
34 |
do-install: |
41 |
${MKDIR} ${SAMPDIR} |
35 |
${MKDIR} ${SAMPDIR} |
42 |
.for i in samp022svr announce |
36 |
.for i in ${DISTNAME} announce |
43 |
${BRANDELF} -t Linux ${WRKSRC}/${i} |
37 |
${BRANDELF} -t Linux ${WRKSRC}/${i} |
44 |
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${SAMPDIR} |
38 |
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${SAMPDIR} |
45 |
.endfor |
39 |
.endfor |
46 |
${MKDIR} ${DATADIR} |
40 |
${MKDIR} ${DATADIR} |
47 |
cd ${WRKSRC} && \ |
41 |
cd ${WRKSRC} && \ |
48 |
${FIND} . -type d ! -empty -exec \ |
42 |
${FIND} . -type d ! -empty -exec \ |
49 |
${MKDIR} "${DATADIR}/{}" \; && \ |
43 |
${MKDIR} "${DATADIR}/{}" \; |
50 |
${FIND} filterscripts -type f -exec \ |
44 |
.for i in filterscripts gamemodes scriptfiles |
51 |
${INSTALL_DATA} "{}" "${DATADIR}/{}" \; && \ |
45 |
cd ${WRKSRC} && \ |
52 |
${FIND} gamemodes -type f -exec \ |
46 |
${FIND} ${i} -type f -exec \ |
53 |
${INSTALL_DATA} "{}" "${DATADIR}/{}" \; |
47 |
${INSTALL_DATA} "{}" "${DATADIR}/{}" \; |
54 |
${LN} -sf ${DATADIR}/filterscripts/ ${SAMPDIR}/filterscripts |
48 |
${LN} -sf ${DATADIR}/${i}/ ${SAMPDIR}/${i} |
55 |
${LN} -sf ${DATADIR}/gamemodes/ ${SAMPDIR}/gamemodes |
49 |
.endfor |
56 |
.if !exists(${PREFIX}/etc/${PORTNAME}.cfg) |
50 |
.if !exists(${PREFIX}/etc/${PORTNAME}.cfg) |
57 |
${INSTALL_DATA} ${WRKSRC}/server.cfg ${PREFIX}/etc/${PORTNAME}.cfg |
51 |
${INSTALL_DATA} ${WRKSRC}/server.cfg ${PREFIX}/etc/${PORTNAME}.cfg |
58 |
.endif |
52 |
.endif |