Lines 6-16
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= sauerbraten |
8 |
PORTNAME= sauerbraten |
9 |
PORTVERSION= 20090504 |
9 |
PORTVERSION= 20100728 |
10 |
PORTREVISION= 4 |
|
|
11 |
CATEGORIES= games |
10 |
CATEGORIES= games |
12 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2009_05_04 |
11 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/2010_07_19 |
13 |
DISTNAME= ${PORTNAME}_2009_05_04_trooper_edition_linux |
12 |
DISTNAME= ${PORTNAME}_2010_07_28_justice_edition_linux |
14 |
|
13 |
|
15 |
MAINTAINER= acm@FreeBSD.org |
14 |
MAINTAINER= acm@FreeBSD.org |
16 |
COMMENT= First person shooter based on Cube |
15 |
COMMENT= First person shooter based on Cube |
Lines 20-59
Link Here
|
20 |
USE_BZIP2= yes |
19 |
USE_BZIP2= yes |
21 |
CONFIGURE_ENV= ACLOCAL=true AUTOCONF=true AUTOMAKE=true |
20 |
CONFIGURE_ENV= ACLOCAL=true AUTOCONF=true AUTOMAKE=true |
22 |
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet |
21 |
CONFIGURE_WRKSRC= ${WRKSRC}/src/enet |
|
|
22 |
CONFIGURE_ARGS= --enable-shared=no --enable-static=yes |
23 |
BUILD_WRKSRC= ${WRKSRC}/src |
23 |
BUILD_WRKSRC= ${WRKSRC}/src |
24 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
24 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
25 |
ALL_TARGET= libenet |
25 |
ALL_TARGET= libenet |
26 |
MAKE_JOBS_SAFE= yes |
26 |
MAKE_JOBS_SAFE= yes |
27 |
|
27 |
|
|
|
28 |
PORTDATA= data packages |
28 |
PORTDOCS= * |
29 |
PORTDOCS= * |
29 |
|
30 |
|
30 |
OPTIONS= CLIENT "Build client" on \ |
31 |
OPTIONS= CLIENT "Build client" on \ |
31 |
DEDICATED "Build dedicated server" on |
32 |
DEDICATED "Build dedicated server" on \ |
|
|
33 |
MASTER "Build master server" off |
32 |
|
34 |
|
33 |
SUB_FILES= sauer_client sauer_server pkg-message |
35 |
SUB_FILES= sauer_client sauer_master sauer_server pkg-message |
34 |
|
36 |
|
35 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
36 |
|
38 |
|
37 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) |
39 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && defined(WITHOUT_MASTER) |
38 |
IGNORE= needs at least one executable (CLIENT or DEDICATED) |
40 |
IGNORE= needs at least one executable (CLIENT, DEDICATED or MASTER) |
39 |
.endif |
41 |
.endif |
40 |
|
42 |
|
41 |
.if !defined(WITHOUT_CLIENT) |
43 |
.if !defined(WITHOUT_CLIENT) |
42 |
USE_GL= yes |
44 |
USE_GL= yes |
43 |
USE_SDL= image mixer sdl |
45 |
USE_SDL= image mixer sdl |
44 |
ALL_TARGET+= client |
46 |
ALL_TARGET+= client |
45 |
PLIST_SUB+= CLIENT="" |
|
|
46 |
SAUER_BIN+= client |
47 |
SAUER_BIN+= client |
47 |
.else |
|
|
48 |
PLIST_SUB+= CLIENT="@comment " |
49 |
.endif |
48 |
.endif |
50 |
|
49 |
|
51 |
.if !defined(WITHOUT_DEDICATED) |
50 |
.if !defined(WITHOUT_DEDICATED) |
52 |
ALL_TARGET+= server |
51 |
ALL_TARGET+= server |
53 |
PLIST_SUB+= DEDICATED="" |
|
|
54 |
SAUER_BIN+= server |
52 |
SAUER_BIN+= server |
55 |
.else |
53 |
.endif |
56 |
PLIST_SUB+= DEDICATED="@comment " |
54 |
|
|
|
55 |
.if !defined(WITHOUT_MASTER) |
56 |
ALL_TARGET+= master |
57 |
SAUER_BIN+= master |
57 |
.endif |
58 |
.endif |
58 |
|
59 |
|
59 |
post-extract: |
60 |
post-extract: |
Lines 69-82
Link Here
|
69 |
${INSTALL_SCRIPT} ${WRKDIR}/sauer_${f} ${PREFIX}/bin |
70 |
${INSTALL_SCRIPT} ${WRKDIR}/sauer_${f} ${PREFIX}/bin |
70 |
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/sauer_${f} ${PREFIX}/libexec |
71 |
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/sauer_${f} ${PREFIX}/libexec |
71 |
.endfor |
72 |
.endfor |
|
|
73 |
.if !defined(NOPORTDATA) |
72 |
${MKDIR} ${DATADIR} |
74 |
${MKDIR} ${DATADIR} |
73 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "packages data" ${DATADIR}/ |
75 |
cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${DATADIR} |
|
|
76 |
.endif |
74 |
.if !defined(NOPORTDOCS) |
77 |
.if !defined(NOPORTDOCS) |
75 |
${MKDIR} ${DOCSDIR} |
78 |
${MKDIR} ${DOCSDIR} |
76 |
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} |
79 |
cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${DOCSDIR} |
77 |
.endif |
80 |
.endif |
78 |
|
81 |
|
79 |
post-install: |
82 |
post-install: |
|
|
83 |
.for f in ${SAUER_BIN} |
84 |
@${ECHO_CMD} bin/sauer_${f} >> ${TMPPLIST} |
85 |
@${ECHO_CMD} libexec/sauer_${f} >> ${TMPPLIST} |
86 |
.endfor |
80 |
@${ECHO_CMD} |
87 |
@${ECHO_CMD} |
81 |
@${CAT} ${PKGMESSAGE} |
88 |
@${CAT} ${PKGMESSAGE} |
82 |
@${ECHO_CMD} |
89 |
@${ECHO_CMD} |