diff options
author | kwm <kwm@FreeBSD.org> | 2012-06-05 04:57:31 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2012-06-05 04:57:31 +0800 |
commit | 5604bdf4b091825f3b1e9504512765afb51fbd02 (patch) | |
tree | 1b4f7c754ddf835962167e10ad5c7fca95d52f04 /multimedia | |
parent | ab48cdf5fcf4644092b9f30371c043e84a6e22d2 (diff) | |
download | freebsd-ports-gnome-5604bdf4b091825f3b1e9504512765afb51fbd02.tar.gz freebsd-ports-gnome-5604bdf4b091825f3b1e9504512765afb51fbd02.tar.zst freebsd-ports-gnome-5604bdf4b091825f3b1e9504512765afb51fbd02.zip |
Convert to OptionsNG. [1]
With the compat code this port ignored the selected options and pulled in all
available plugins. [2]
Reported by: rakuto@ [2]
Patch by: bapt@ [1]
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/gstreamer-plugins-all/Makefile | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/multimedia/gstreamer-plugins-all/Makefile b/multimedia/gstreamer-plugins-all/Makefile index ed92641a221b..9f171f37b7af 100644 --- a/multimedia/gstreamer-plugins-all/Makefile +++ b/multimedia/gstreamer-plugins-all/Makefile @@ -19,32 +19,32 @@ COMMENT= Meta-port of all gstreamer plugins with options NO_BUILD= yes USE_GSTREAMER= yes -OPTIONS= # Hacky.. but it works the way it is set up... +.include "${.CURDIR}/../../Mk/bsd.gstreamer.mk" + +.for all in ${_USE_GSTREAMER10_ALL} +OPTIONS_DEFINE+= ${all:U} +${all:U}_DESC= ${all} plugin +OPTIONS_DEFAULT+= ${all:U} +.endfor .include <bsd.port.pre.mk> # Weed out gst-plugins that can not be packaged. or are broken. .if defined(PACKAGE_BUILDING) -WITHOUT_FAAC= yes # Mp4 Dolby license , no package -WITHOUT_LAME= yes # MP3 License , no package -WITHOUT_MPEG2ENC= yes # Broken -WITHOUT_VDPAU= yes # Needs to be build agains running kernel -.endif -.if ${ARCH}!="i386" -WITHOUT_SPC= yes # i386 only +PORT_OPTIONS:= ${PORT_OPTIONS:NFAAC} # Mp4 Dolby license , no package +PORT_OPTIONS:= ${PORT_OPTIONS:NLAME} # MP3 License , no package +PORT_OPTIONS:= ${PORT_OPTIONS:NPEG2ENC} # Broken +PORT_OPTIONS:= ${PORT_OPTIONS:NVDPAU} # Needs to be build agains running kernel .endif -WITHOUT_FLITE= yes # broken -# Remove core, yes -PLUGS= ${_USE_GSTREAMER10_ALL} - -.for all in ${PLUGS} -OPTIONS+= ${all:U} "${all} plugin " on -.endfor +.if ${ARCH} != "i386" +PORT_OPTIONS:= ${PORT_OPTIONS:NSPC} # i386 only +.endif +PORT_OPTIONS:= ${PORT_OPTIONS:NFLITE} # broken -.for f in ${PLUGS} -.if !defined(WITHOUT_${f:U}) -USE_GSTREAMER+= ${f} +.for f in ${OPTIONS_DEFINE} +.if ${PORT_OPTIONS:M${f:U}} +USE_GSTREAMER+= ${f:L} .endif .endfor |