| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.66 2019/11/03 17:12:03 rillig Exp $ | | 1 | # $NetBSD: options.mk,v 1.67 2020/01/20 21:34:01 nia 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 | # ------------------------------------------------------------------------- |
| @@ -23,27 +23,27 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C | | | @@ -23,27 +23,27 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C |
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 libmpg123 opus | | 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 | | | 33 | |
34 | # Set options based on the specific package being built. | | 34 | # Set options based on the specific package being built. |
35 | . if !empty(PKGNAME:M*mplayer*) | | 35 | . if !empty(PKGNAME:M*mplayer*) |
36 | PKG_SUPPORTED_OPTIONS+= aalib alsa caca esound ggi mplayer-menu nas pulseaudio sdl | | 36 | PKG_SUPPORTED_OPTIONS+= aalib alsa caca ggi mplayer-menu nas pulseaudio sdl |
37 | | | 37 | |
38 | . if ${VDPAU_AVAILABLE} == "yes" | | 38 | . if ${VDPAU_AVAILABLE} == "yes" |
39 | PKG_SUPPORTED_OPTIONS+= vdpau | | 39 | PKG_SUPPORTED_OPTIONS+= vdpau |
40 | . endif | | 40 | . endif |
41 | | | 41 | |
42 | . if ${LIRC_AVAILABLE} == "yes" | | 42 | . if ${LIRC_AVAILABLE} == "yes" |
43 | PKG_SUPPORTED_OPTIONS+= lirc | | 43 | PKG_SUPPORTED_OPTIONS+= lirc |
44 | . endif | | 44 | . endif |
45 | | | 45 | |
46 | . elif !empty(PKGNAME:M*mencoder*) | | 46 | . elif !empty(PKGNAME:M*mencoder*) |
47 | PKG_SUPPORTED_OPTIONS+= faac lame | | 47 | PKG_SUPPORTED_OPTIONS+= faac lame |
48 | . endif | | 48 | . endif |
49 | | | 49 | |
| @@ -159,33 +159,26 @@ CONFIGURE_ARGS+= --disable-libdv | | | @@ -159,33 +159,26 @@ CONFIGURE_ARGS+= --disable-libdv |
159 | . include "../../multimedia/libdvdread/buildlink3.mk" | | 159 | . include "../../multimedia/libdvdread/buildlink3.mk" |
160 | . else | | 160 | . else |
161 | CONFIGURE_ARGS+= --disable-dvdread | | 161 | CONFIGURE_ARGS+= --disable-dvdread |
162 | . endif | | 162 | . endif |
163 | | | 163 | |
164 | . if !empty(PKG_OPTIONS:Mdvdnav) | | 164 | . if !empty(PKG_OPTIONS:Mdvdnav) |
165 | CONFIGURE_ARGS+= --enable-dvdnav | | 165 | CONFIGURE_ARGS+= --enable-dvdnav |
166 | . include "../../multimedia/libdvdnav/buildlink3.mk" | | 166 | . include "../../multimedia/libdvdnav/buildlink3.mk" |
167 | #CFLAGS+= -I${BUILDLINK_PREFIX.libdvdnav}/include/dvdnav | | 167 | #CFLAGS+= -I${BUILDLINK_PREFIX.libdvdnav}/include/dvdnav |
168 | . else | | 168 | . else |
169 | CONFIGURE_ARGS+= --disable-dvdnav | | 169 | CONFIGURE_ARGS+= --disable-dvdnav |
170 | . endif | | 170 | . endif |
171 | | | 171 | |
172 | . if !empty(PKG_OPTIONS:Mesound) | | | |
173 | CONFIGURE_ARGS+= --enable-esd | | | |
174 | . include "../../audio/esound/buildlink3.mk" | | | |
175 | . else | | | |
176 | CONFIGURE_ARGS+= --disable-esd | | | |
177 | . endif | | | |
178 | | | | |
179 | . if !empty(PKG_OPTIONS:Mfaac) | | 172 | . if !empty(PKG_OPTIONS:Mfaac) |
180 | CONFIGURE_ARGS+= --enable-faac | | 173 | CONFIGURE_ARGS+= --enable-faac |
181 | EXTRA_LIBS+= -lfaac | | 174 | EXTRA_LIBS+= -lfaac |
182 | . include "../../audio/faac/buildlink3.mk" | | 175 | . include "../../audio/faac/buildlink3.mk" |
183 | . else | | 176 | . else |
184 | CONFIGURE_ARGS+= --disable-faac | | 177 | CONFIGURE_ARGS+= --disable-faac |
185 | . endif | | 178 | . endif |
186 | | | 179 | |
187 | . if !empty(PKG_OPTIONS:Mfaad) | | 180 | . if !empty(PKG_OPTIONS:Mfaad) |
188 | CONFIGURE_ARGS+= --enable-faad | | 181 | CONFIGURE_ARGS+= --enable-faad |
189 | . include "../../audio/faad2/buildlink3.mk" | | 182 | . include "../../audio/faad2/buildlink3.mk" |
190 | . else | | 183 | . else |
191 | CONFIGURE_ARGS+= --disable-faad | | 184 | CONFIGURE_ARGS+= --disable-faad |