| @@ -1,304 +1,305 @@ | | | @@ -1,304 +1,305 @@ |
1 | # $NetBSD: options.mk,v 1.29 2008/03/16 21:22:45 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.30 2008/03/24 23:44:19 tnn Exp $ |
2 | | | 2 | |
3 | .if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) | | 3 | .if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) |
4 | | | 4 | |
5 | # Note: This expression is the same as ${PKGBASE}, but the latter is | | 5 | # Note: This expression is the same as ${PKGBASE}, but the latter is |
6 | # not defined yet, so we cannot use it here. | | 6 | # not defined yet, so we cannot use it here. |
7 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} | | 7 | PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} |
8 | | | 8 | |
9 | .include "../../mk/oss.buildlink3.mk" | | 9 | .include "../../mk/oss.buildlink3.mk" |
10 | | | 10 | |
11 | # ------------------------------------------------------------------------- | | 11 | # ------------------------------------------------------------------------- |
12 | # Define PKG_SUPPORTED_OPTIONS based on the current package and system. | | 12 | # Define PKG_SUPPORTED_OPTIONS based on the current package and system. |
13 | # ------------------------------------------------------------------------- | | 13 | # ------------------------------------------------------------------------- |
14 | | | 14 | |
15 | # Options supported by both mplayer* or mencoder*. | | 15 | # Options supported by both mplayer* or mencoder*. |
16 | | | 16 | |
17 | PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv dvdread png theora vorbis x264 debug | | 17 | PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv dvdread png theora vorbis x264 debug |
18 | .if ${OSS_TYPE} != "none" | | 18 | .if ${OSS_TYPE} != "none" |
19 | PKG_SUPPORTED_OPTIONS+= oss | | 19 | PKG_SUPPORTED_OPTIONS+= oss |
20 | .endif | | 20 | .endif |
21 | | | 21 | |
22 | # Set options based on the specific package being built. | | 22 | # Set options based on the specific package being built. |
23 | .if !empty(PKGNAME:M*mplayer*) | | 23 | .if !empty(PKGNAME:M*mplayer*) |
24 | PKG_OPTIONS_OPTIONAL_GROUPS= faadgroup | | 24 | PKG_OPTIONS_OPTIONAL_GROUPS= faadgroup |
25 | PKG_OPTIONS_GROUP.faadgroup= faad mplayer-internal-faad | | 25 | PKG_OPTIONS_GROUP.faadgroup= faad mplayer-internal-faad |
26 | PKG_SUGGESTED_OPTIONS+= mplayer-internal-faad | | 26 | PKG_SUGGESTED_OPTIONS+= mplayer-internal-faad |
27 | | | 27 | |
28 | PKG_SUPPORTED_OPTIONS+= aalib esound ggi mplayer-menu nas sdl | | 28 | PKG_SUPPORTED_OPTIONS+= aalib esound ggi mplayer-menu nas sdl |
29 | | | 29 | |
30 | . if ${OPSYS} != "SunOS" | | 30 | . if ${OPSYS} != "SunOS" |
31 | PKG_SUPPORTED_OPTIONS+= arts | | 31 | PKG_SUPPORTED_OPTIONS+= arts |
32 | . endif | | 32 | . endif |
33 | .elif !empty(PKGNAME:M*mencoder*) | | 33 | .elif !empty(PKGNAME:M*mencoder*) |
34 | PKG_SUPPORTED_OPTIONS+= lame | | 34 | PKG_SUPPORTED_OPTIONS+= lame |
35 | .endif | | 35 | .endif |
36 | | | 36 | |
37 | # OS-specific options. | | 37 | # OS-specific options. |
38 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD" | | 38 | .if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "NetBSD" |
39 | PKG_SUPPORTED_OPTIONS+= cdparanoia | | 39 | PKG_SUPPORTED_OPTIONS+= cdparanoia |
40 | .elif ${OPSYS} == "SunOS" | | 40 | .elif ${OPSYS} == "SunOS" |
41 | PKG_SUPPORTED_OPTIONS+= mlib | | 41 | PKG_SUPPORTED_OPTIONS+= mlib |
42 | .endif | | 42 | .endif |
43 | .if ${OPSYS} == "Linux" | | 43 | .if ${OPSYS} == "Linux" |
44 | PKG_SUPPORTED_OPTIONS+= vidix | | 44 | PKG_SUPPORTED_OPTIONS+= vidix |
45 | .endif | | 45 | .endif |
46 | | | 46 | |
47 | # Platform-specific options. | | 47 | # Platform-specific options. |
48 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ | | 48 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ |
49 | ${MACHINE_ARCH} == "powerpc" | | 49 | ${MACHINE_ARCH} == "powerpc" |
50 | PKG_SUPPORTED_OPTIONS+= mplayer-runtime-cpudetection | | 50 | PKG_SUPPORTED_OPTIONS+= mplayer-runtime-cpudetection |
51 | .endif | | 51 | .endif |
52 | .if ${MACHINE_ARCH} == "i386" | | 52 | .if ${MACHINE_ARCH} == "i386" |
53 | PKG_SUPPORTED_OPTIONS+= mplayer-default-cflags mplayer-win32 | | 53 | PKG_SUPPORTED_OPTIONS+= mplayer-default-cflags mplayer-win32 |
54 | .endif | | 54 | .endif |
55 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ | | 55 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc" || \ |
56 | ${MACHINE_ARCH} == "alpha" | | 56 | ${MACHINE_ARCH} == "alpha" |
57 | PKG_SUPPORTED_OPTIONS+= mplayer-real | | 57 | PKG_SUPPORTED_OPTIONS+= mplayer-real |
58 | .endif | | 58 | .endif |
59 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 59 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
60 | PKG_SUPPORTED_OPTIONS+= mplayer-ssse3 | | 60 | PKG_SUPPORTED_OPTIONS+= mplayer-ssse3 |
61 | .endif | | 61 | .endif |
62 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ | | 62 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ |
63 | ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" | | 63 | ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" |
64 | PKG_SUPPORTED_OPTIONS+= xvid | | 64 | PKG_SUPPORTED_OPTIONS+= xvid |
65 | .endif | | 65 | .endif |
66 | | | 66 | |
67 | # ------------------------------------------------------------------------- | | 67 | # ------------------------------------------------------------------------- |
68 | # Define PKG_SUGGESTED_OPTIONS. | | 68 | # Define PKG_SUGGESTED_OPTIONS. |
69 | # ------------------------------------------------------------------------- | | 69 | # ------------------------------------------------------------------------- |
70 | | | 70 | |
71 | .for _o_ in aalib arts cdparanoia dv dvdread esound gif jpeg \ | | 71 | .for _o_ in aalib arts cdparanoia dv dvdread esound gif jpeg \ |
72 | lame mad mplayer-menu mplayer-real \ | | 72 | lame mad mplayer-menu mplayer-real \ |
73 | mplayer-default-cflags mplayer-runtime-cpudetection mplayer-win32 \ | | 73 | mplayer-default-cflags mplayer-runtime-cpudetection mplayer-win32 \ |
74 | nas oss png sdl theora vorbis x264 xvid | | 74 | nas oss png sdl theora vorbis x264 xvid |
75 | . if !empty(PKG_SUPPORTED_OPTIONS:M${_o_}) | | 75 | . if !empty(PKG_SUPPORTED_OPTIONS:M${_o_}) |
76 | PKG_SUGGESTED_OPTIONS+= ${_o_} | | 76 | PKG_SUGGESTED_OPTIONS+= ${_o_} |
77 | . endif | | 77 | . endif |
78 | .endfor | | 78 | .endfor |
79 | .if ${OPSYS} == "Linux" | | 79 | .if ${OPSYS} == "Linux" |
80 | PKG_SUGGESTED_OPTIONS+= vidix | | 80 | PKG_SUGGESTED_OPTIONS+= vidix |
81 | .endif | | 81 | .endif |
82 | | | 82 | |
83 | # ------------------------------------------------------------------------- | | 83 | # ------------------------------------------------------------------------- |
84 | # Handle extra libraries (part 1) | | 84 | # Handle extra libraries (part 1) |
85 | # ------------------------------------------------------------------------- | | 85 | # ------------------------------------------------------------------------- |
86 | EXTRA_LIBS= | | 86 | EXTRA_LIBS= |
87 | | | 87 | |
88 | # ------------------------------------------------------------------------- | | 88 | # ------------------------------------------------------------------------- |
89 | # Handle chosen options. | | 89 | # Handle chosen options. |
90 | # ------------------------------------------------------------------------- | | 90 | # ------------------------------------------------------------------------- |
91 | | | 91 | |
92 | .include "../../mk/bsd.options.mk" | | 92 | .include "../../mk/bsd.options.mk" |
93 | | | 93 | |
94 | .if !empty(PKG_OPTIONS:Maalib) | | 94 | .if !empty(PKG_OPTIONS:Maalib) |
95 | . include "../../graphics/aalib/buildlink3.mk" | | 95 | . include "../../graphics/aalib/buildlink3.mk" |
96 | .endif | | 96 | .endif |
97 | | | 97 | |
98 | .if !empty(PKG_OPTIONS:Marts) | | 98 | .if !empty(PKG_OPTIONS:Marts) |
99 | CONFIGURE_ARGS+= --enable-arts | | 99 | CONFIGURE_ARGS+= --enable-arts |
100 | EXTRA_LIBS+= -lartsc | | 100 | EXTRA_LIBS+= -lartsc |
101 | . include "../../audio/arts/buildlink3.mk" | | 101 | . include "../../audio/arts/buildlink3.mk" |
102 | .else | | 102 | .else |
103 | CONFIGURE_ARGS+= --disable-arts | | 103 | CONFIGURE_ARGS+= --disable-arts |
104 | .endif | | 104 | .endif |
105 | | | 105 | |
106 | .if !empty(PKG_OPTIONS:Mcdparanoia) | | 106 | .if !empty(PKG_OPTIONS:Mcdparanoia) |
107 | CONFIGURE_ARGS+= --enable-cdparanoia | | 107 | CONFIGURE_ARGS+= --enable-cdparanoia |
108 | . include "../../audio/cdparanoia/buildlink3.mk" | | 108 | . include "../../audio/cdparanoia/buildlink3.mk" |
109 | .else | | 109 | .else |
110 | CONFIGURE_ARGS+= --disable-cdparanoia | | 110 | CONFIGURE_ARGS+= --disable-cdparanoia |
111 | .endif | | 111 | .endif |
112 | | | 112 | |
113 | .if !empty(PKG_OPTIONS:Mdebug) | | 113 | .if !empty(PKG_OPTIONS:Mdebug) |
114 | CONFIGURE_ARGS+= --enable-debug | | 114 | CONFIGURE_ARGS+= --enable-debug |
115 | .endif | | 115 | .endif |
116 | | | 116 | |
117 | .if !empty(PKG_OPTIONS:Mdts) | | 117 | .if !empty(PKG_OPTIONS:Mdts) |
118 | CONFIGURE_ARGS+= --enable-libdca | | 118 | CONFIGURE_ARGS+= --enable-libdca |
119 | . include "../../audio/libdca/buildlink3.mk" | | 119 | . include "../../audio/libdca/buildlink3.mk" |
120 | .else | | 120 | .else |
121 | CONFIGURE_ARGS+= --disable-libdca | | 121 | CONFIGURE_ARGS+= --disable-libdca |
122 | .endif | | 122 | .endif |
123 | | | 123 | |
124 | .if !empty(PKG_OPTIONS:Mdv) | | 124 | .if !empty(PKG_OPTIONS:Mdv) |
125 | CONFIGURE_ARGS+= --enable-libdv | | 125 | CONFIGURE_ARGS+= --enable-libdv |
126 | . include "../../multimedia/libdv/buildlink3.mk" | | 126 | . include "../../multimedia/libdv/buildlink3.mk" |
127 | .else | | 127 | .else |
128 | CONFIGURE_ARGS+= --disable-libdv | | 128 | CONFIGURE_ARGS+= --disable-libdv |
129 | .endif | | 129 | .endif |
130 | | | 130 | |
131 | .if !empty(PKG_OPTIONS:Mdvdread) | | 131 | .if !empty(PKG_OPTIONS:Mdvdread) |
132 | CONFIGURE_ARGS+= --enable-dvdread | | 132 | CONFIGURE_ARGS+= --enable-dvdread |
133 | . include "../../multimedia/libdvdread/buildlink3.mk" | | 133 | . include "../../multimedia/libdvdread/buildlink3.mk" |
134 | .else | | 134 | .else |
135 | CONFIGURE_ARGS+= --disable-dvdread | | 135 | CONFIGURE_ARGS+= --disable-dvdread |
136 | .endif | | 136 | .endif |
137 | | | 137 | |
138 | .if !empty(PKG_OPTIONS:Mesound) | | 138 | .if !empty(PKG_OPTIONS:Mesound) |
139 | CONFIGURE_ARGS+= --enable-esd | | 139 | CONFIGURE_ARGS+= --enable-esd |
140 | . include "../../audio/esound/buildlink3.mk" | | 140 | . include "../../audio/esound/buildlink3.mk" |
141 | .else | | 141 | .else |
142 | CONFIGURE_ARGS+= --disable-esd | | 142 | CONFIGURE_ARGS+= --disable-esd |
143 | .endif | | 143 | .endif |
144 | | | 144 | |
145 | | | 145 | |
146 | .if empty(PKG_OPTIONS:Mfaad) && empty(PKG_OPTIONS:Mmplayer-internal-faad) | | 146 | .if empty(PKG_OPTIONS:Mfaad) && empty(PKG_OPTIONS:Mmplayer-internal-faad) |
147 | CONFIGURE_ARGS+= --disable-faad-external | | 147 | CONFIGURE_ARGS+= --disable-faad-external |
148 | CONFIGURE_ARGS+= --disable-faad-internal | | 148 | CONFIGURE_ARGS+= --disable-faad-internal |
149 | .elif !empty(PKG_OPTIONS:Mfaad) | | 149 | .elif !empty(PKG_OPTIONS:Mfaad) |
150 | CONFIGURE_ARGS+= --enable-faad-external | | 150 | CONFIGURE_ARGS+= --enable-faad-external |
151 | . include "../../audio/faad2/buildlink3.mk" | | 151 | . include "../../audio/faad2/buildlink3.mk" |
152 | .else | | 152 | .else |
153 | CONFIGURE_ARGS+= --enable-faad-internal | | 153 | CONFIGURE_ARGS+= --enable-faad-internal |
154 | .endif | | 154 | .endif |
155 | | | 155 | |
156 | .if !empty(PKG_OPTIONS:Mggi) | | 156 | .if !empty(PKG_OPTIONS:Mggi) |
157 | CONFIGURE_ARGS+= --enable-ggi | | 157 | CONFIGURE_ARGS+= --enable-ggi |
158 | . include "../../graphics/libggi/buildlink3.mk" | | 158 | . include "../../graphics/libggi/buildlink3.mk" |
159 | .else | | 159 | .else |
160 | CONFIGURE_ARGS+= --disable-ggi | | 160 | CONFIGURE_ARGS+= --disable-ggi |
161 | .endif | | 161 | .endif |
162 | | | 162 | |
163 | .if !empty(PKG_OPTIONS:Mgif) | | 163 | .if !empty(PKG_OPTIONS:Mgif) |
164 | CONFIGURE_ARGS+= --enable-gif | | 164 | CONFIGURE_ARGS+= --enable-gif |
165 | . include "../../graphics/libungif/buildlink3.mk" | | 165 | . include "../../graphics/libungif/buildlink3.mk" |
166 | .else | | 166 | .else |
167 | CONFIGURE_ARGS+= --disable-gif | | 167 | CONFIGURE_ARGS+= --disable-gif |
168 | .endif | | 168 | .endif |
169 | | | 169 | |
170 | .if !empty(PKG_OPTIONS:Mjpeg) | | 170 | .if !empty(PKG_OPTIONS:Mjpeg) |
171 | CONFIGURE_ARGS+= --enable-jpeg | | 171 | CONFIGURE_ARGS+= --enable-jpeg |
172 | . include "../../graphics/jpeg/buildlink3.mk" | | 172 | . include "../../graphics/jpeg/buildlink3.mk" |
173 | .else | | 173 | .else |
174 | CONFIGURE_ARGS+= --disable-jpeg | | 174 | CONFIGURE_ARGS+= --disable-jpeg |
175 | .endif | | 175 | .endif |
176 | | | 176 | |
177 | .if !empty(PKG_OPTIONS:Mlame) | | 177 | .if !empty(PKG_OPTIONS:Mlame) |
178 | #CONFIGURE_ARGS+= --enable-toolame | | 178 | #CONFIGURE_ARGS+= --enable-toolame |
179 | . include "../../audio/lame/buildlink3.mk" | | 179 | . include "../../audio/lame/buildlink3.mk" |
180 | .else | | 180 | .else |
181 | CONFIGURE_ARGS+= --disable-toolame | | 181 | CONFIGURE_ARGS+= --disable-toolame |
182 | .endif | | 182 | .endif |
183 | | | 183 | |
184 | .if !empty(PKG_OPTIONS:Mmad) | | 184 | .if !empty(PKG_OPTIONS:Mmad) |
185 | CONFIGURE_ARGS+= --enable-mad | | 185 | CONFIGURE_ARGS+= --enable-mad |
186 | . include "../../audio/libmad/buildlink3.mk" | | 186 | . include "../../audio/libmad/buildlink3.mk" |
187 | .else | | 187 | .else |
188 | CONFIGURE_ARGS+= --disable-mad | | 188 | CONFIGURE_ARGS+= --disable-mad |
189 | .endif | | 189 | .endif |
190 | | | 190 | |
191 | .if !empty(PKG_OPTIONS:Mmlib) | | 191 | .if !empty(PKG_OPTIONS:Mmlib) |
192 | CONFIGURE_ARGS+= --enable-mlib | | 192 | CONFIGURE_ARGS+= --enable-mlib |
193 | .else | | 193 | .else |
194 | CONFIGURE_ARGS+= --disable-mlib | | 194 | CONFIGURE_ARGS+= --disable-mlib |
195 | .endif | | 195 | .endif |
196 | | | 196 | |
197 | .if !empty(PKG_OPTIONS:Mmplayer-menu) | | 197 | .if !empty(PKG_OPTIONS:Mmplayer-menu) |
198 | CONFIGURE_ARGS+= --enable-menu | | 198 | CONFIGURE_ARGS+= --enable-menu |
199 | .else | | 199 | .else |
200 | CONFIGURE_ARGS+= --disable-menu | | 200 | CONFIGURE_ARGS+= --disable-menu |
201 | .endif | | 201 | .endif |
202 | | | 202 | |
203 | .if !empty(PKG_OPTIONS:Mmplayer-real) | | 203 | .if !empty(PKG_OPTIONS:Mmplayer-real) |
204 | EVAL_PREFIX+= PREFIX.realplayer-codecs=realplayer-codecs | | 204 | EVAL_PREFIX+= PREFIX.realplayer-codecs=realplayer-codecs |
205 | PREFIX.realplayer-codecs_DEFAULT= ${LOCALBASE} | | 205 | PREFIX.realplayer-codecs_DEFAULT= ${LOCALBASE} |
206 | CONFIGURE_ARGS+= --enable-real | | 206 | CONFIGURE_ARGS+= --enable-real |
207 | CONFIGURE_ARGS+= --realcodecsdir="${PREFIX.realplayer-codecs}/lib/RealPlayer8-Codecs" | | 207 | CONFIGURE_ARGS+= --realcodecsdir="${PREFIX.realplayer-codecs}/lib/RealPlayer8-Codecs" |
208 | DEPENDS+= realplayer-codecs>=8nb2:../../multimedia/realplayer-codecs | | 208 | DEPENDS+= realplayer-codecs>=8nb2:../../multimedia/realplayer-codecs |
209 | .else | | 209 | .else |
210 | CONFIGURE_ARGS+= --disable-real | | 210 | CONFIGURE_ARGS+= --disable-real |
211 | .endif | | 211 | .endif |
212 | | | 212 | |
213 | .if !empty(PKG_OPTIONS:Mmplayer-runtime-cpudetection) | | 213 | .if !empty(PKG_OPTIONS:Mmplayer-runtime-cpudetection) |
214 | CONFIGURE_ARGS+= --enable-runtime-cpudetection | | 214 | CONFIGURE_ARGS+= --enable-runtime-cpudetection |
215 | .else | | 215 | .else |
216 | CONFIGURE_ARGS+= --disable-runtime-cpudetection | | 216 | CONFIGURE_ARGS+= --disable-runtime-cpudetection |
217 | .endif | | 217 | .endif |
218 | | | 218 | |
219 | .if !empty(PKG_OPTIONS:Mmplayer-win32) | | 219 | .if !empty(PKG_OPTIONS:Mmplayer-win32) |
220 | EVAL_PREFIX+= PREFIX.win32-codecs=win32-codecs | | 220 | EVAL_PREFIX+= PREFIX.win32-codecs=win32-codecs |
221 | PREFIX.win32-codecs_DEFAULT= ${LOCALBASE} | | 221 | PREFIX.win32-codecs_DEFAULT= ${LOCALBASE} |
222 | CONFIGURE_ARGS+= --enable-win32dll | | 222 | CONFIGURE_ARGS+= --enable-win32dll |
223 | CONFIGURE_ARGS+= --win32codecsdir="${PREFIX.win32-codecs}/lib/win32" | | 223 | CONFIGURE_ARGS+= --win32codecsdir="${PREFIX.win32-codecs}/lib/win32" |
224 | DEPENDS+= win32-codecs>=011227:../../multimedia/win32-codecs | | 224 | DEPENDS+= win32-codecs>=011227:../../multimedia/win32-codecs |
225 | .else | | 225 | .else |
226 | CONFIGURE_ARGS+= --disable-win32dll | | 226 | CONFIGURE_ARGS+= --disable-win32dll |
227 | .endif | | 227 | .endif |
228 | | | 228 | |
229 | .if !empty(PKG_OPTIONS:Mnas) | | 229 | .if !empty(PKG_OPTIONS:Mnas) |
230 | CONFIGURE_ARGS+= --enable-nas | | 230 | CONFIGURE_ARGS+= --enable-nas |
231 | . include "../../audio/nas/buildlink3.mk" | | 231 | . include "../../audio/nas/buildlink3.mk" |
232 | .else | | 232 | .else |
233 | CONFIGURE_ARGS+= --disable-nas | | 233 | CONFIGURE_ARGS+= --disable-nas |
234 | .endif | | 234 | .endif |
235 | | | 235 | |
236 | .if ${OSS_TYPE} != "none" && !empty(PKG_OPTIONS:Moss) | | 236 | .if ${OSS_TYPE} != "none" && !empty(PKG_OPTIONS:Moss) |
237 | CONFIGURE_ARGS+= --enable-ossaudio | | 237 | CONFIGURE_ARGS+= --enable-ossaudio |
238 | .else | | 238 | .else |
239 | CONFIGURE_ARGS+= --disable-ossaudio | | 239 | CONFIGURE_ARGS+= --disable-ossaudio |
240 | .endif | | 240 | .endif |
241 | | | 241 | |
242 | .if !empty(PKG_OPTIONS:Mpng) | | 242 | .if !empty(PKG_OPTIONS:Mpng) |
243 | CONFIGURE_ARGS+= --enable-png | | 243 | CONFIGURE_ARGS+= --enable-png |
244 | . include "../../graphics/png/buildlink3.mk" | | 244 | . include "../../graphics/png/buildlink3.mk" |
245 | .else | | 245 | .else |
246 | CONFIGURE_ARGS+= --disable-png | | 246 | CONFIGURE_ARGS+= --disable-png |
247 | .endif | | 247 | .endif |
248 | | | 248 | |
249 | .if !empty(PKG_OPTIONS:Msdl) | | 249 | .if !empty(PKG_OPTIONS:Msdl) |
250 | CONFIGURE_ARGS+= --enable-sdl | | 250 | CONFIGURE_ARGS+= --enable-sdl |
251 | . include "../../devel/SDL/buildlink3.mk" | | 251 | . include "../../devel/SDL/buildlink3.mk" |
252 | .else | | 252 | .else |
253 | CONFIGURE_ARGS+= --disable-sdl | | 253 | CONFIGURE_ARGS+= --disable-sdl |
254 | .endif | | 254 | .endif |
255 | | | 255 | |
256 | .if !empty(PKG_OPTIONS:Mtheora) | | 256 | .if !empty(PKG_OPTIONS:Mtheora) |
257 | CONFIGURE_ARGS+= --enable-theora | | 257 | CONFIGURE_ARGS+= --enable-theora |
258 | . include "../../multimedia/libtheora/buildlink3.mk" | | 258 | . include "../../multimedia/libtheora/buildlink3.mk" |
259 | .else | | 259 | .else |
260 | CONFIGURE_ARGS+= --disable-theora | | 260 | CONFIGURE_ARGS+= --disable-theora |
261 | .endif | | 261 | .endif |
262 | | | 262 | |
263 | # disable vidix if not in options | | 263 | # disable vidix if not in options |
264 | .if empty(PKG_OPTIONS:Mvidix) | | 264 | .if empty(PKG_OPTIONS:Mvidix) |
265 | CONFIGURE_ARGS+= --disable-vidix-internal | | 265 | CONFIGURE_ARGS+= --disable-vidix-internal |
266 | CONFIGURE_ARGS+= --disable-vidix-external | | 266 | CONFIGURE_ARGS+= --disable-vidix-external |
267 | .endif | | 267 | .endif |
268 | | | 268 | |
269 | .if !empty(PKG_OPTIONS:Mvorbis) | | 269 | .if !empty(PKG_OPTIONS:Mvorbis) |
270 | CONFIGURE_ARGS+= --enable-libvorbis | | 270 | CONFIGURE_ARGS+= --enable-libvorbis |
271 | .else | | 271 | .else |
272 | CONFIGURE_ARGS+= --disable-libvorbis | | 272 | CONFIGURE_ARGS+= --disable-libvorbis |
273 | .endif | | 273 | .endif |
274 | | | 274 | |
275 | .if !empty(PKG_OPTIONS:Mx264) | | 275 | .if !empty(PKG_OPTIONS:Mx264) |
276 | CONFIGURE_ARGS+= --enable-x264 | | 276 | CONFIGURE_ARGS+= --enable-x264 |
277 | . include "../../multimedia/x264-devel/buildlink3.mk" | | 277 | . include "../../multimedia/x264-devel/buildlink3.mk" |
278 | .else | | 278 | .else |
279 | CONFIGURE_ARGS+= --disable-x264 | | 279 | CONFIGURE_ARGS+= --disable-x264 |
280 | .endif | | 280 | .endif |
281 | | | 281 | |
282 | .if !empty(PKG_OPTIONS:Mxvid) | | 282 | .if !empty(PKG_OPTIONS:Mxvid) |
283 | CONFIGURE_ARGS+= --enable-xvid | | 283 | CONFIGURE_ARGS+= --enable-xvid |
284 | EXTRA_LIBS+= -lxvidcore | | 284 | EXTRA_LIBS+= -lxvidcore |
285 | . include "../../multimedia/xvidcore/buildlink3.mk" | | 285 | . include "../../multimedia/xvidcore/buildlink3.mk" |
286 | .else | | 286 | .else |
287 | CONFIGURE_ARGS+= --disable-xvid | | 287 | CONFIGURE_ARGS+= --disable-xvid |
288 | .endif | | 288 | .endif |
289 | | | 289 | |
290 | .if !empty(PKG_OPTIONS:Mmplayer-ssse3) | | 290 | .if !empty(PKG_OPTIONS:Mmplayer-ssse3) |
291 | # needs a recent assembler | | 291 | # needs a recent assembler |
292 | .include "../../devel/binutils/buildlink3.mk" | | 292 | .include "../../devel/binutils/buildlink3.mk" |
| | | 293 | .include "../../devel/binutils/override-as.mk" |
293 | .else | | 294 | .else |
294 | CONFIGURE_ARGS+= --disable-ssse3 | | 295 | CONFIGURE_ARGS+= --disable-ssse3 |
295 | .endif | | 296 | .endif |
296 | | | 297 | |
297 | # ------------------------------------------------------------------------- | | 298 | # ------------------------------------------------------------------------- |
298 | # Handle extra libraries (part 1) | | 299 | # Handle extra libraries (part 1) |
299 | # ------------------------------------------------------------------------- | | 300 | # ------------------------------------------------------------------------- |
300 | .if ${EXTRA_LIBS} != "" | | 301 | .if ${EXTRA_LIBS} != "" |
301 | CONFIGURE_ARGS+= --extra-libs=${EXTRA_LIBS:C/^ //:Q} | | 302 | CONFIGURE_ARGS+= --extra-libs=${EXTRA_LIBS:C/^ //:Q} |
302 | .endif | | 303 | .endif |
303 | | | 304 | |
304 | .endif # defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) | | 305 | .endif # defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) |