summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2010-09-01 20:55:56 +0000
committerwiz <wiz@pkgsrc.org>2010-09-01 20:55:56 +0000
commit4e67499d38e6d83067845edb5e1cf948f86022ed (patch)
tree95d33bc0e1716e8a5a9b20bbd7c0ceecf607dd1f /multimedia/mplayer-share
parent82374dfb7038870e8ad8c16bb63bc7e3cf7331c9 (diff)
downloadpkgsrc-4e67499d38e6d83067845edb5e1cf948f86022ed.tar.gz
Add vdpau option, on the platforms where it is supported.
From Aleksey Cheusov in PR 43658.
Diffstat (limited to 'multimedia/mplayer-share')
-rw-r--r--multimedia/mplayer-share/options.mk15
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)
# -------------------------------------------------------------------------