Lines 7-12
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME?= ioquake3 |
8 |
PORTNAME?= ioquake3 |
9 |
DISTVERSION?= 1.36 |
9 |
DISTVERSION?= 1.36 |
|
|
10 |
PORTREVISION?= 1 |
10 |
CATEGORIES= games |
11 |
CATEGORIES= games |
11 |
MASTER_SITES?= http://ioquake3.org/files/${DISTVERSION}/ |
12 |
MASTER_SITES?= http://ioquake3.org/files/${DISTVERSION}/ |
12 |
|
13 |
|
Lines 20-35
Link Here
|
20 |
.endif |
21 |
.endif |
21 |
USE_GMAKE= yes |
22 |
USE_GMAKE= yes |
22 |
|
23 |
|
23 |
OPTIONS= CLIENT "Build client" on \ |
24 |
OPTIONS+= CLIENT "Build client" on \ |
24 |
GAMELIBS "Build game libraries (when not mandatory)" off \ |
25 |
GAMELIBS "Build game libraries (when not mandatory)" off \ |
25 |
DEDICATED "Build dedicated server" on \ |
26 |
DEDICATED "Build dedicated server" on \ |
|
|
27 |
CURL "Enable cURL for http/ftp download" on \ |
28 |
OPENAL "Enable OpenAL audio output" on \ |
29 |
MUMBLE "Enable Mumble support (no dependencies)" on \ |
26 |
VORBIS "Enable Ogg Vorbis support" on |
30 |
VORBIS "Enable Ogg Vorbis support" on |
27 |
|
31 |
|
28 |
MAKE_ARGS+= DEFAULT_BASEDIR="${Q3DIR}" \ |
32 |
MAKE_ARGS+= DEFAULT_BASEDIR="${Q3DIR}" \ |
29 |
DEFAULT_LIBDIR="${LIBDIR}" \ |
33 |
DEFAULT_LIBDIR="${LIBDIR}" \ |
30 |
HOMEPATH="/.${PORTNAME}" \ |
34 |
HOMEPATH="/.${PORTNAME}" \ |
|
|
35 |
VERSION="${DISTVERSION}" \ |
31 |
ARCH="${ARCH}" |
36 |
ARCH="${ARCH}" |
32 |
PLIST_SUB= LIBDIR="${LIBDIR:S/${PREFIX}\///}" \ |
37 |
PLIST_SUB+= LIBDIR="${LIBDIR:S/${PREFIX}\///}" \ |
33 |
ARCH="${ARCH}" \ |
38 |
ARCH="${ARCH}" \ |
34 |
BINSUFFIX="${BINSUFFIX}" |
39 |
BINSUFFIX="${BINSUFFIX}" |
35 |
ALL_TARGET= release |
40 |
ALL_TARGET= release |
Lines 45-51
Link Here
|
45 |
MACHINE_ARCH= ${ARCH} |
50 |
MACHINE_ARCH= ${ARCH} |
46 |
.include <bsd.cpu.mk> |
51 |
.include <bsd.cpu.mk> |
47 |
|
52 |
|
48 |
.include <bsd.port.pre.mk> |
53 |
.include <bsd.port.options.mk> |
49 |
|
54 |
|
50 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && \ |
55 |
.if defined(WITHOUT_CLIENT) && defined(WITHOUT_DEDICATED) && \ |
51 |
defined(WITHOUT_SMP) |
56 |
defined(WITHOUT_SMP) |
Lines 53-60
Link Here
|
53 |
.endif |
58 |
.endif |
54 |
|
59 |
|
55 |
.if defined(WITH_CLIENT) || defined(WITH_SMP) |
60 |
.if defined(WITH_CLIENT) || defined(WITH_SMP) |
|
|
61 |
# cURL |
62 |
.if defined(WITH_CURL) |
63 |
LIB_DEPENDS+= curl.5:${PORTSDIR}/ftp/curl |
64 |
#MAKE_ARGS+= USE_CURL_DLOPEN=0 |
65 |
.else |
66 |
MAKE_ARGS+= USE_CURL=0 |
67 |
.endif |
56 |
# OpenAL |
68 |
# OpenAL |
|
|
69 |
.if defined(WITH_OPENAL) |
57 |
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal |
70 |
LIB_DEPENDS+= openal.0:${PORTSDIR}/audio/openal |
|
|
71 |
.else |
72 |
MAKE_ARGS+= USE_OPENAL=0 |
73 |
.endif |
58 |
# SDL |
74 |
# SDL |
59 |
USE_SDL= sdl |
75 |
USE_SDL= sdl |
60 |
# Vorbis |
76 |
# Vorbis |
Lines 62-67
Link Here
|
62 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
78 |
LIB_DEPENDS+= vorbis.4:${PORTSDIR}/audio/libvorbis |
63 |
MAKE_ARGS+= USE_CODEC_VORBIS=1 |
79 |
MAKE_ARGS+= USE_CODEC_VORBIS=1 |
64 |
.endif |
80 |
.endif |
|
|
81 |
# Mumble |
82 |
.if defined(WITH_MUMBLE) |
83 |
MAKE_ARGS+= USE_MUMBLE=1 |
84 |
.else |
85 |
MAKE_ARGS+= USE_MUMBLE=0 |
86 |
.endif |
65 |
.endif |
87 |
.endif |
66 |
|
88 |
|
67 |
# SMP is only built with CLIENT. |
89 |
# SMP is only built with CLIENT. |
Lines 119-122
Link Here
|
119 |
@${ECHO_CMD} |
141 |
@${ECHO_CMD} |
120 |
|
142 |
|
121 |
.include "${.CURDIR}/../quake3-data/Makefile.include" |
143 |
.include "${.CURDIR}/../quake3-data/Makefile.include" |
122 |
.include <bsd.port.post.mk> |
144 |
.include <bsd.port.mk> |