| @@ -1,40 +1,40 @@ | | | @@ -1,40 +1,40 @@ |
1 | # $NetBSD: options.mk,v 1.60 2018/04/04 12:26:24 triaxx Exp $ | | 1 | # $NetBSD: options.mk,v 1.61 2019/03/24 20:38:25 rhialto 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 | .include "../../multimedia/libvdpau/available.mk" | | 11 | .include "../../multimedia/libvdpau/available.mk" |
12 | .include "../../comms/lirc/available.mk" | | 12 | .include "../../comms/lirc/available.mk" |
13 | | | 13 | |
14 | # ------------------------------------------------------------------------- | | 14 | # ------------------------------------------------------------------------- |
15 | # Define PKG_SUPPORTED_OPTIONS based on the current package and system. | | 15 | # Define PKG_SUPPORTED_OPTIONS based on the current package and system. |
16 | # ------------------------------------------------------------------------- | | 16 | # ------------------------------------------------------------------------- |
17 | | | 17 | |
18 | # Note: It is a good practice that all PKG_SUPPORTED_OPTIONS are | | 18 | # Note: It is a good practice that all PKG_SUPPORTED_OPTIONS are |
19 | # enabled or disabled with --enable-option or --disable-option. | | 19 | # enabled or disabled with --enable-option or --disable-option. |
20 | # It is better to add missing libs via EXTRA_LIBS, when it is possible, | | 20 | # It is better to add missing libs via EXTRA_LIBS, when it is possible, |
21 | # instead of patching the configure script in order to make the update of | | 21 | # instead of patching the configure script in order to make the update of |
22 | # the packages easier. | | 22 | # the packages easier. |
23 | | | 23 | |
24 | # Options supported by both mplayer* or mencoder*. | | 24 | # Options supported by both mplayer* or mencoder*. |
25 | | | 25 | |
26 | PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv png theora vorbis x264 debug | | 26 | PKG_SUPPORTED_OPTIONS= gif jpeg mad dts dv png theora vorbis x264 debug |
27 | PKG_SUPPORTED_OPTIONS+= dvdread dvdnav | | 27 | PKG_SUPPORTED_OPTIONS+= dvdread dvdnav libmpg123 opus |
28 | .if ${OSS_TYPE} != "none" | | 28 | .if ${OSS_TYPE} != "none" |
29 | PKG_SUPPORTED_OPTIONS+= oss | | 29 | PKG_SUPPORTED_OPTIONS+= oss |
30 | .endif | | 30 | .endif |
31 | | | 31 | |
32 | PKG_SUPPORTED_OPTIONS+= faad | | 32 | PKG_SUPPORTED_OPTIONS+= faad |
33 | PKG_SUGGESTED_OPTIONS+= faad | | 33 | PKG_SUGGESTED_OPTIONS+= faad |
34 | | | 34 | |
35 | # Set options based on the specific package being built. | | 35 | # Set options based on the specific package being built. |
36 | .if !empty(PKGNAME:M*mplayer*) | | 36 | .if !empty(PKGNAME:M*mplayer*) |
37 | PKG_SUPPORTED_OPTIONS+= aalib caca esound ggi mplayer-menu nas pulseaudio sdl | | 37 | PKG_SUPPORTED_OPTIONS+= aalib caca esound ggi mplayer-menu nas pulseaudio sdl |
38 | | | 38 | |
39 | .if ${VDPAU_AVAILABLE} == "yes" | | 39 | .if ${VDPAU_AVAILABLE} == "yes" |
40 | PKG_SUPPORTED_OPTIONS+= vdpau | | 40 | PKG_SUPPORTED_OPTIONS+= vdpau |
| @@ -73,27 +73,27 @@ PKG_SUPPORTED_OPTIONS+= mplayer-default- | | | @@ -73,27 +73,27 @@ PKG_SUPPORTED_OPTIONS+= mplayer-default- |
73 | PKG_SUPPORTED_OPTIONS+= mplayer-ssse3 | | 73 | PKG_SUPPORTED_OPTIONS+= mplayer-ssse3 |
74 | .endif | | 74 | .endif |
75 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ | | 75 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" || \ |
76 | ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" | | 76 | ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" |
77 | PKG_SUPPORTED_OPTIONS+= xvid | | 77 | PKG_SUPPORTED_OPTIONS+= xvid |
78 | .endif | | 78 | .endif |
79 | | | 79 | |
80 | # ------------------------------------------------------------------------- | | 80 | # ------------------------------------------------------------------------- |
81 | # Define PKG_SUGGESTED_OPTIONS. | | 81 | # Define PKG_SUGGESTED_OPTIONS. |
82 | # ------------------------------------------------------------------------- | | 82 | # ------------------------------------------------------------------------- |
83 | | | 83 | |
84 | .for o in cdparanoia dv esound gif jpeg \ | | 84 | .for o in cdparanoia dv esound gif jpeg \ |
85 | dvdread dvdnav \ | | 85 | dvdread dvdnav \ |
86 | lame mad mplayer-menu \ | | 86 | lame libmpg123 mad mplayer-menu \ |
87 | mplayer-default-cflags mplayer-runtime-cpudetection \ | | 87 | mplayer-default-cflags mplayer-runtime-cpudetection \ |
88 | nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau lirc | | 88 | nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau lirc |
89 | . if !empty(PKG_SUPPORTED_OPTIONS:M${o}) | | 89 | . if !empty(PKG_SUPPORTED_OPTIONS:M${o}) |
90 | PKG_SUGGESTED_OPTIONS+= ${o} | | 90 | PKG_SUGGESTED_OPTIONS+= ${o} |
91 | . endif | | 91 | . endif |
92 | .endfor | | 92 | .endfor |
93 | PKG_SUGGESTED_OPTIONS.Linux+= vidix | | 93 | PKG_SUGGESTED_OPTIONS.Linux+= vidix |
94 | | | 94 | |
95 | # ------------------------------------------------------------------------- | | 95 | # ------------------------------------------------------------------------- |
96 | # Handle extra libraries (part 1) | | 96 | # Handle extra libraries (part 1) |
97 | # ------------------------------------------------------------------------- | | 97 | # ------------------------------------------------------------------------- |
98 | EXTRA_LIBS= | | 98 | EXTRA_LIBS= |
99 | | | 99 | |
| @@ -194,33 +194,47 @@ CONFIGURE_ARGS+= --disable-ggi | | | @@ -194,33 +194,47 @@ CONFIGURE_ARGS+= --disable-ggi |
194 | CONFIGURE_ARGS+= --enable-gif | | 194 | CONFIGURE_ARGS+= --enable-gif |
195 | . include "../../graphics/giflib/buildlink3.mk" | | 195 | . include "../../graphics/giflib/buildlink3.mk" |
196 | .else | | 196 | .else |
197 | CONFIGURE_ARGS+= --disable-gif | | 197 | CONFIGURE_ARGS+= --disable-gif |
198 | .endif | | 198 | .endif |
199 | | | 199 | |
200 | .if !empty(PKG_OPTIONS:Mjpeg) | | 200 | .if !empty(PKG_OPTIONS:Mjpeg) |
201 | CONFIGURE_ARGS+= --enable-jpeg | | 201 | CONFIGURE_ARGS+= --enable-jpeg |
202 | . include "../../mk/jpeg.buildlink3.mk" | | 202 | . include "../../mk/jpeg.buildlink3.mk" |
203 | .else | | 203 | .else |
204 | CONFIGURE_ARGS+= --disable-jpeg | | 204 | CONFIGURE_ARGS+= --disable-jpeg |
205 | .endif | | 205 | .endif |
206 | | | 206 | |
| | | 207 | .if !empty(PKG_OPTIONS:Mlibmpg123) |
| | | 208 | # no --enable-mpg123: configure forgets to add -lmpg123. |
| | | 209 | . include "../../audio/mpg123/buildlink3.mk" |
| | | 210 | .else |
| | | 211 | CONFIGURE_ARGS+= --disable-mpg123 |
| | | 212 | .endif |
| | | 213 | |
207 | .if !empty(PKG_OPTIONS:Mlame) | | 214 | .if !empty(PKG_OPTIONS:Mlame) |
208 | CONFIGURE_ARGS+= --enable-mp3lame | | 215 | CONFIGURE_ARGS+= --enable-mp3lame |
209 | . include "../../audio/lame/buildlink3.mk" | | 216 | . include "../../audio/lame/buildlink3.mk" |
210 | .else | | 217 | .else |
211 | CONFIGURE_ARGS+= --disable-mp3lame | | 218 | CONFIGURE_ARGS+= --disable-mp3lame |
212 | .endif | | 219 | .endif |
213 | | | 220 | |
| | | 221 | .if !empty(PKG_OPTIONS:Mopus) |
| | | 222 | CONFIGURE_ARGS+= --enable-libopus |
| | | 223 | . include "../../audio/libopus/buildlink3.mk" |
| | | 224 | .else |
| | | 225 | CONFIGURE_ARGS+= --disable-opus |
| | | 226 | .endif |
| | | 227 | |
214 | .if !empty(PKG_OPTIONS:Mmad) | | 228 | .if !empty(PKG_OPTIONS:Mmad) |
215 | CONFIGURE_ARGS+= --enable-mad | | 229 | CONFIGURE_ARGS+= --enable-mad |
216 | . include "../../audio/libmad/buildlink3.mk" | | 230 | . include "../../audio/libmad/buildlink3.mk" |
217 | .else | | 231 | .else |
218 | CONFIGURE_ARGS+= --disable-mad | | 232 | CONFIGURE_ARGS+= --disable-mad |
219 | .endif | | 233 | .endif |
220 | | | 234 | |
221 | .if !empty(PKG_OPTIONS:Mmlib) | | 235 | .if !empty(PKG_OPTIONS:Mmlib) |
222 | CONFIGURE_ARGS+= --enable-mlib | | 236 | CONFIGURE_ARGS+= --enable-mlib |
223 | .else | | 237 | .else |
224 | CONFIGURE_ARGS+= --disable-mlib | | 238 | CONFIGURE_ARGS+= --disable-mlib |
225 | .endif | | 239 | .endif |
226 | | | 240 | |