| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: options.mk,v 1.31 2008/03/25 15:35:36 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.32 2008/08/21 11:37:53 abs 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 | |
| @@ -21,27 +21,27 @@ PKG_SUPPORTED_OPTIONS+= oss | | | @@ -21,27 +21,27 @@ PKG_SUPPORTED_OPTIONS+= oss |
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+= faac 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. |
| @@ -132,26 +132,31 @@ CONFIGURE_ARGS+= --disable-libdv | | | @@ -132,26 +132,31 @@ CONFIGURE_ARGS+= --disable-libdv |
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 | .if !empty(PKG_OPTIONS:Mfaac) |
| | | 146 | . include "../../audio/faac/buildlink3.mk" |
| | | 147 | .else |
| | | 148 | CONFIGURE_ARGS+= --disable-faac |
| | | 149 | .endif |
145 | | | 150 | |
146 | .if empty(PKG_OPTIONS:Mfaad) && empty(PKG_OPTIONS:Mmplayer-internal-faad) | | 151 | .if empty(PKG_OPTIONS:Mfaad) && empty(PKG_OPTIONS:Mmplayer-internal-faad) |
147 | CONFIGURE_ARGS+= --disable-faad-external | | 152 | CONFIGURE_ARGS+= --disable-faad-external |
148 | CONFIGURE_ARGS+= --disable-faad-internal | | 153 | CONFIGURE_ARGS+= --disable-faad-internal |
149 | .elif !empty(PKG_OPTIONS:Mfaad) | | 154 | .elif !empty(PKG_OPTIONS:Mfaad) |
150 | CONFIGURE_ARGS+= --enable-faad-external | | 155 | CONFIGURE_ARGS+= --enable-faad-external |
151 | . include "../../audio/faad2/buildlink3.mk" | | 156 | . include "../../audio/faad2/buildlink3.mk" |
152 | .else | | 157 | .else |
153 | CONFIGURE_ARGS+= --enable-faad-internal | | 158 | CONFIGURE_ARGS+= --enable-faad-internal |
154 | .endif | | 159 | .endif |
155 | | | 160 | |
156 | .if !empty(PKG_OPTIONS:Mggi) | | 161 | .if !empty(PKG_OPTIONS:Mggi) |
157 | CONFIGURE_ARGS+= --enable-ggi | | 162 | CONFIGURE_ARGS+= --enable-ggi |