diff options
author | cheusov <cheusov> | 2013-04-14 01:02:08 +0000 |
---|---|---|
committer | cheusov <cheusov> | 2013-04-14 01:02:08 +0000 |
commit | e18c1a7de068a8a8a85deb739dd5ae1fbdc47310 (patch) | |
tree | 3fde8a4a03138ec4ffcc5ef3f1c744bebdb3a965 /multimedia/vlc | |
parent | 6b7a83e5c4ee8e938f8bbccc40629cd8c5971a54 (diff) | |
download | pkgsrc-e18c1a7de068a8a8a85deb739dd5ae1fbdc47310.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.mk | 18 |
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 |