Thu Aug 21 11:37:53 2008 UTC ()
Add faac option (disabled by default


(abs)
diff -r1.31 -r1.32 pkgsrc/multimedia/mplayer-share/options.mk

cvs diff -r1.31 -r1.32 pkgsrc/multimedia/mplayer-share/options.mk (expand / switch to unified diff)

--- pkgsrc/multimedia/mplayer-share/options.mk 2008/03/25 15:35:36 1.31
+++ pkgsrc/multimedia/mplayer-share/options.mk 2008/08/21 11:37:53 1.32
@@ -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.
7PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} 7PKG_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*)
24PKG_OPTIONS_OPTIONAL_GROUPS= faadgroup 24PKG_OPTIONS_OPTIONAL_GROUPS= faadgroup
25PKG_OPTIONS_GROUP.faadgroup= faad mplayer-internal-faad 25PKG_OPTIONS_GROUP.faadgroup= faad mplayer-internal-faad
26PKG_SUGGESTED_OPTIONS+= mplayer-internal-faad 26PKG_SUGGESTED_OPTIONS+= mplayer-internal-faad
27 27
28PKG_SUPPORTED_OPTIONS+= aalib esound ggi mplayer-menu nas sdl 28PKG_SUPPORTED_OPTIONS+= aalib esound ggi mplayer-menu nas sdl
29 29
30. if ${OPSYS} != "SunOS" 30. if ${OPSYS} != "SunOS"
31PKG_SUPPORTED_OPTIONS+= arts 31PKG_SUPPORTED_OPTIONS+= arts
32. endif 32. endif
33.elif !empty(PKGNAME:M*mencoder*) 33.elif !empty(PKGNAME:M*mencoder*)
34PKG_SUPPORTED_OPTIONS+= lame 34PKG_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"
39PKG_SUPPORTED_OPTIONS+= cdparanoia 39PKG_SUPPORTED_OPTIONS+= cdparanoia
40.elif ${OPSYS} == "SunOS" 40.elif ${OPSYS} == "SunOS"
41PKG_SUPPORTED_OPTIONS+= mlib 41PKG_SUPPORTED_OPTIONS+= mlib
42.endif 42.endif
43.if ${OPSYS} == "Linux" 43.if ${OPSYS} == "Linux"
44PKG_SUPPORTED_OPTIONS+= vidix 44PKG_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
132CONFIGURE_ARGS+= --enable-dvdread 132CONFIGURE_ARGS+= --enable-dvdread
133. include "../../multimedia/libdvdread/buildlink3.mk" 133. include "../../multimedia/libdvdread/buildlink3.mk"
134.else 134.else
135CONFIGURE_ARGS+= --disable-dvdread 135CONFIGURE_ARGS+= --disable-dvdread
136.endif 136.endif
137 137
138.if !empty(PKG_OPTIONS:Mesound) 138.if !empty(PKG_OPTIONS:Mesound)
139CONFIGURE_ARGS+= --enable-esd 139CONFIGURE_ARGS+= --enable-esd
140. include "../../audio/esound/buildlink3.mk" 140. include "../../audio/esound/buildlink3.mk"
141.else 141.else
142CONFIGURE_ARGS+= --disable-esd 142CONFIGURE_ARGS+= --disable-esd
143.endif 143.endif
144 144
 145.if !empty(PKG_OPTIONS:Mfaac)
 146. include "../../audio/faac/buildlink3.mk"
 147.else
 148CONFIGURE_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)
147CONFIGURE_ARGS+= --disable-faad-external 152CONFIGURE_ARGS+= --disable-faad-external
148CONFIGURE_ARGS+= --disable-faad-internal 153CONFIGURE_ARGS+= --disable-faad-internal
149.elif !empty(PKG_OPTIONS:Mfaad) 154.elif !empty(PKG_OPTIONS:Mfaad)
150CONFIGURE_ARGS+= --enable-faad-external 155CONFIGURE_ARGS+= --enable-faad-external
151. include "../../audio/faad2/buildlink3.mk" 156. include "../../audio/faad2/buildlink3.mk"
152.else 157.else
153CONFIGURE_ARGS+= --enable-faad-internal 158CONFIGURE_ARGS+= --enable-faad-internal
154.endif 159.endif
155 160
156.if !empty(PKG_OPTIONS:Mggi) 161.if !empty(PKG_OPTIONS:Mggi)
157CONFIGURE_ARGS+= --enable-ggi 162CONFIGURE_ARGS+= --enable-ggi