Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME?= ioquake3 |
8 |
PORTNAME?= ioquake3 |
9 |
DISTVERSION?= 1.36 |
9 |
DISTVERSION?= 1.36 |
10 |
PORTREVISION?= 9 |
10 |
PORTREVISION?= 10 |
11 |
CATEGORIES= games |
11 |
CATEGORIES= games |
12 |
MASTER_SITES?= http://ioquake3.org/files/${DISTVERSION}/ |
12 |
MASTER_SITES?= http://ioquake3.org/files/${DISTVERSION}/ |
13 |
# Using zip this way enables slaves to override it. |
13 |
# Using zip this way enables slaves to override it. |
Lines 20-44
Link Here
|
20 |
|
20 |
|
21 |
USE_GMAKE= yes |
21 |
USE_GMAKE= yes |
22 |
|
22 |
|
23 |
OPTIONS+= CLIENT "Build client" on \ |
23 |
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX:M*-server} |
24 |
DEDICATED "Build dedicated server" on \ |
24 |
# Server config |
|
|
25 |
WITH_DEDICATED= yes |
26 |
WITHOUT_CLIENT= yes |
27 |
WITHOUT_SERVER= yes |
28 |
WITHOUT_CURL= yes |
29 |
WITHOUT_OPENAL= yes |
30 |
WITHOUT_MUMBLE= yes |
31 |
WITHOUT_VORBIS= yes |
32 |
WITHOUT_TOOLS= yes |
33 |
WITHOUT_DLRENDERER= yes |
34 |
.else |
35 |
# Client config |
36 |
WITH_CLIENT= yes |
37 |
WITHOUT_DEDICATED= yes |
38 |
OPTIONS+= SERVER "Install dedicated server" on \ |
25 |
CURL "Enable cURL for http/ftp download" on \ |
39 |
CURL "Enable cURL for http/ftp download" on \ |
26 |
OPENAL "Enable OpenAL audio output" on \ |
40 |
OPENAL "Enable OpenAL audio output" on \ |
27 |
MUMBLE "Enable Mumble support (no dependencies)" on \ |
41 |
MUMBLE "Enable Mumble support (no dependencies)" on \ |
28 |
VORBIS "Enable Ogg Vorbis support" on |
42 |
VORBIS "Enable Ogg Vorbis support" on |
29 |
.if !defined(NO_GAMELIBS) |
43 |
. if defined(NO_TOOLS) |
30 |
OPTIONS+= GAMELIBS "Build game libraries" off |
44 |
WITHOUT_TOOLS= yes |
31 |
.endif |
45 |
. else |
32 |
.if defined(HAS_DLRENDERER) |
46 |
OPTIONS+= TOOLS "Enable modding tools" on |
|
|
47 |
. endif |
48 |
. if defined(HAS_DLRENDERER) |
33 |
OPTIONS+= DLRENDERER "Build dynamically loaded renderer" on |
49 |
OPTIONS+= DLRENDERER "Build dynamically loaded renderer" on |
34 |
.else |
50 |
. else |
35 |
WITHOUT_DLRENDERER= yes |
51 |
WITHOUT_DLRENDERER= yes |
|
|
52 |
. endif |
53 |
.endif |
54 |
# Common config |
55 |
.if !defined(NO_GAMELIBS) |
56 |
OPTIONS+= GAMELIBS "Build game libraries" off |
36 |
.endif |
57 |
.endif |
37 |
|
58 |
|
38 |
MAKE_ARGS+= DEFAULT_BASEDIR="${Q3DIR}" \ |
59 |
MAKE_ARGS+= DEFAULT_BASEDIR="${Q3DIR}" \ |
39 |
DEFAULT_LIBDIR="${LIBDIR}" \ |
60 |
DEFAULT_LIBDIR="${LIBDIR}" \ |
40 |
HOMEPATH="${HOMEPATH}" \ |
61 |
HOMEPATH="${HOMEPATH}" \ |
41 |
VERSION="${DISTVERSION}" \ |
62 |
VERSION="${Q3ENGINEVER}" \ |
42 |
ARCH="${ARCH}" \ |
63 |
ARCH="${ARCH}" \ |
43 |
USE_LOCAL_HEADERS=0 |
64 |
USE_LOCAL_HEADERS=0 |
44 |
PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}" \ |
65 |
PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}" \ |
Lines 47-53
Link Here
|
47 |
ALL_TARGET= release |
68 |
ALL_TARGET= release |
48 |
MAKE_JOBS_SAFE= yes |
69 |
MAKE_JOBS_SAFE= yes |
49 |
|
70 |
|
50 |
LIBDIR= ${PREFIX}/lib/${PORTNAME} |
71 |
LIBDIR= ${PREFIX}/lib/${PORTNAME}${PKGNAMESUFFIX} |
|
|
72 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} |
51 |
BUILDDIR= ${WRKSRC}/build/${ALL_TARGET}-${OPSYS:L}-${ARCH} |
73 |
BUILDDIR= ${WRKSRC}/build/${ALL_TARGET}-${OPSYS:L}-${ARCH} |
52 |
BINSUFFIX?= |
74 |
BINSUFFIX?= |
53 |
HOMEPATH?= /.${PORTNAME} |
75 |
HOMEPATH?= /.${PORTNAME} |
Lines 62-74
Link Here
|
62 |
Q3ICON?= ${PREFIX}/share/pixmaps/quake3.xpm |
84 |
Q3ICON?= ${PREFIX}/share/pixmaps/quake3.xpm |
63 |
Q3RENDERER?= renderer_opengl1_${ARCH} |
85 |
Q3RENDERER?= renderer_opengl1_${ARCH} |
64 |
Q3INSTALL?= |
86 |
Q3INSTALL?= |
|
|
87 |
Q3ENGINEVER?= ${DISTVERSION} |
65 |
|
88 |
|
66 |
ONLY_FOR_ARCHS= amd64 i386 |
89 |
ONLY_FOR_ARCHS= amd64 i386 |
67 |
|
90 |
|
68 |
# Make sure TARGET and CFLAGS fit together for cross-compiling. |
|
|
69 |
MACHINE_ARCH= ${ARCH} |
70 |
.include <bsd.cpu.mk> |
71 |
|
72 |
.include <bsd.port.options.mk> |
91 |
.include <bsd.port.options.mk> |
73 |
|
92 |
|
74 |
.if defined(NO_GAMELIBS) && defined(WITH_GAMELIBS) |
93 |
.if defined(NO_GAMELIBS) && defined(WITH_GAMELIBS) |
Lines 82-95
Link Here
|
82 |
ALL_TARGET= debug |
101 |
ALL_TARGET= debug |
83 |
.endif |
102 |
.endif |
84 |
|
103 |
|
|
|
104 |
.if !defined(WITHOUT_SERVER) |
105 |
RUN_DEPENDS+= ${Q3SERVER}:${PORTSDIR}/games/${PORTNAME}-server |
106 |
.endif |
107 |
|
85 |
.if !defined(DESKTOP_ENTRIES) |
108 |
.if !defined(DESKTOP_ENTRIES) |
86 |
. if !defined(WITHOUT_CLIENT) |
109 |
. if !defined(WITHOUT_CLIENT) |
87 |
DESKTOP_ENTRIES+= "${Q3CLIENT} ${DISTVERSION}" "${COMMENT}" \ |
110 |
DESKTOP_ENTRIES+= "${Q3CLIENT} ${Q3ENGINEVER}" "${COMMENT}" \ |
88 |
"${Q3ICON}" \ |
111 |
"${Q3ICON}" \ |
89 |
"${Q3CLIENT}${BINSUFFIX}" "Application;Game;" false |
112 |
"${Q3CLIENT}${BINSUFFIX}" "Application;Game;" false |
90 |
. endif |
113 |
. endif |
91 |
. if defined(WITH_SMP) |
114 |
. if defined(WITH_SMP) |
92 |
DESKTOP_ENTRIES+= "${Q3CLIENT} ${DISTVERSION} SMP" "${COMMENT}" \ |
115 |
DESKTOP_ENTRIES+= "${Q3CLIENT} ${Q3ENGINEVER} SMP" "${COMMENT}" \ |
93 |
"${Q3ICON}" \ |
116 |
"${Q3ICON}" \ |
94 |
"${Q3CLIENT}-smp${BINSUFFIX}" "Application;Game;" false |
117 |
"${Q3CLIENT}-smp${BINSUFFIX}" "Application;Game;" false |
95 |
. endif |
118 |
. endif |
Lines 179-193
Link Here
|
179 |
PLIST_SUB+= DLRENDERER="@comment " |
202 |
PLIST_SUB+= DLRENDERER="@comment " |
180 |
.endif |
203 |
.endif |
181 |
|
204 |
|
|
|
205 |
.if !defined(WITHOUT_TOOLS) |
206 |
PLIST_SUB+= TOOLS="" |
207 |
.else |
208 |
PLIST_SUB+= TOOLS="@comment " |
209 |
.endif |
210 |
|
182 |
do-install: ${Q3INSTALL} |
211 |
do-install: ${Q3INSTALL} |
183 |
.for bin in ${Q3BIN} |
212 |
.for bin in ${Q3BIN} |
184 |
${INSTALL_PROGRAM} ${BUILDDIR}/${bin}.${ARCH} \ |
213 |
${INSTALL_PROGRAM} ${BUILDDIR}/${bin}.${ARCH} \ |
185 |
${PREFIX}/bin/${bin}${BINSUFFIX} |
214 |
${PREFIX}/bin/${bin}${BINSUFFIX} |
186 |
.endfor |
215 |
.endfor |
|
|
216 |
.if !defined(WITHOUT_TOOLS) |
187 |
.for bin in ${Q3TOOLS} |
217 |
.for bin in ${Q3TOOLS} |
188 |
${INSTALL_PROGRAM} ${BUILDDIR}/tools/${bin} \ |
218 |
${INSTALL_PROGRAM} ${BUILDDIR}/tools/${bin} \ |
189 |
${PREFIX}/bin/${bin}${BINSUFFIX} |
219 |
${PREFIX}/bin/${bin}${BINSUFFIX} |
190 |
.endfor |
220 |
.endfor |
|
|
221 |
.endif |
191 |
.if !defined(WITHOUT_DLRENDERER) |
222 |
.if !defined(WITHOUT_DLRENDERER) |
192 |
.for renderer in ${Q3RENDERER} |
223 |
.for renderer in ${Q3RENDERER} |
193 |
${MKDIR} ${LIBDIR} |
224 |
${MKDIR} ${LIBDIR} |