diff options
-rw-r--r-- | multimedia/mplayer-share/options.mk | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/multimedia/mplayer-share/options.mk b/multimedia/mplayer-share/options.mk index 7b2d2b186b9..d68f4938a86 100644 --- a/multimedia/mplayer-share/options.mk +++ b/multimedia/mplayer-share/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.39 2009/11/04 16:00:54 pooka Exp $ +# $NetBSD: options.mk,v 1.40 2010/09/01 20:55:56 wiz Exp $ .if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) @@ -7,6 +7,7 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} .include "../../mk/oss.buildlink3.mk" +.include "../../multimedia/libvdpau/available.mk" # ------------------------------------------------------------------------- # Define PKG_SUPPORTED_OPTIONS based on the current package and system. @@ -27,6 +28,10 @@ PKG_SUGGESTED_OPTIONS+= mplayer-internal-faad .if !empty(PKGNAME:M*mplayer*) PKG_SUPPORTED_OPTIONS+= aalib esound ggi mplayer-menu nas pulseaudio sdl +.if ${VDPAU_AVAILABLE} == "yes" +PKG_SUPPORTED_OPTIONS+= vdpau +.endif + . if ${OPSYS} != "SunOS" PKG_SUPPORTED_OPTIONS+= arts . endif @@ -76,7 +81,7 @@ PKG_SUPPORTED_OPTIONS+= xvid .for _o_ in aalib arts cdparanoia dv dvdread esound gif jpeg \ lame mad mplayer-menu mplayer-real \ mplayer-default-cflags mplayer-runtime-cpudetection mplayer-win32 \ - nas oss pulseaudio png sdl theora vorbis x264 xvid + nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau . if !empty(PKG_SUPPORTED_OPTIONS:M${_o_}) PKG_SUGGESTED_OPTIONS+= ${_o_} . endif @@ -319,6 +324,12 @@ CONFIGURE_ARGS+= --disable-xvid CONFIGURE_ARGS+= --disable-ssse3 .endif +.if !empty(PKG_OPTIONS:Mvdpau) +. include "../../multimedia/libvdpau/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-vdpau +.endif + # ------------------------------------------------------------------------- # Handle extra libraries (part 1) # ------------------------------------------------------------------------- |