summaryrefslogtreecommitdiff
path: root/multimedia/vlc
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2013-04-14 01:02:08 +0000
committercheusov <cheusov@pkgsrc.org>2013-04-14 01:02:08 +0000
commitc2298c55815942cde77d5bc995385579f927c10c (patch)
tree3fde8a4a03138ec4ffcc5ef3f1c744bebdb3a965 /multimedia/vlc
parentee0539fda82de9dbaf738db67942c1459acf1791 (diff)
downloadpkgsrc-c2298c55815942cde77d5bc995385579f927c10c.tar.gz
"vaapi" option was added and enabled by default on systems where it is
supported. Tested on RHEL-6 with VDPAU as a backend.
Diffstat (limited to 'multimedia/vlc')
-rw-r--r--multimedia/vlc/options.mk18
1 files changed, 17 insertions, 1 deletions
diff --git a/multimedia/vlc/options.mk b/multimedia/vlc/options.mk
index 8016abf801f..6ba750b091f 100644
--- a/multimedia/vlc/options.mk
+++ b/multimedia/vlc/options.mk
@@ -1,9 +1,17 @@
-# $NetBSD: options.mk,v 1.25 2012/07/13 14:22:58 wiz Exp $
+# $NetBSD: options.mk,v 1.26 2013/04/14 01:02:08 cheusov Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.vlc
PKG_SUPPORTED_OPTIONS= debug faad dbus hal skins sdl pulseaudio x11 gnome dts
PKG_SUGGESTED_OPTIONS= x11
+### Add VAAPI if it is available
+.include "../../multimedia/libva/available.mk"
+.if ${VAAPI_AVAILABLE} == "yes"
+PKG_SUPPORTED_OPTIONS+= vaapi
+PKG_SUGGESTED_OPTIONS+= vaapi
+.endif
+
+###
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
@@ -144,3 +152,11 @@ PLIST.dts= yes
.else
CONFIGURE_ARGS+= --enable-dca=no
.endif
+
+## VAAPI support
+.if !empty(PKG_OPTIONS:Mvaapi)
+CONFIGURE_ARGS+= --enable-libva
+.include "../../multimedia/libva/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-libva
+.endif