diff options
author | cheusov <cheusov@pkgsrc.org> | 2013-04-14 12:35:25 +0000 |
---|---|---|
committer | cheusov <cheusov@pkgsrc.org> | 2013-04-14 12:35:25 +0000 |
commit | 5d8cb055aeb0ebe8de7a7df486938a3db5ef686a (patch) | |
tree | 8ef7905106acd505dde3144bd37200834b0edc3f /multimedia/vlc2 | |
parent | 3867b7637e8b70e2523d9892550a13c7bb226389 (diff) | |
download | pkgsrc-5d8cb055aeb0ebe8de7a7df486938a3db5ef686a.tar.gz |
Add option "vaapi" and enable it by default when available; Tested on RHEL-6 with VDPAU backend
Diffstat (limited to 'multimedia/vlc2')
-rw-r--r-- | multimedia/vlc2/Makefile | 3 | ||||
-rw-r--r-- | multimedia/vlc2/options.mk | 17 |
2 files changed, 18 insertions, 2 deletions
diff --git a/multimedia/vlc2/Makefile b/multimedia/vlc2/Makefile index a01786775da..5d6ec9c4dc6 100644 --- a/multimedia/vlc2/Makefile +++ b/multimedia/vlc2/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.27 2013/04/12 13:40:47 drochner Exp $ +# $NetBSD: Makefile,v 1.28 2013/04/14 12:35:25 cheusov Exp $ # DISTNAME= vlc-${VLC_VERSION} +PKGREVISION= 1 CATEGORIES= multimedia MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vlc/} \ http://download.videolan.org/pub/videolan/vlc/${VLC_VERSION}/ diff --git a/multimedia/vlc2/options.mk b/multimedia/vlc2/options.mk index 995def1c4e8..47efd8d44dc 100644 --- a/multimedia/vlc2/options.mk +++ b/multimedia/vlc2/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.4 2013/04/12 13:40:47 drochner Exp $ +# $NetBSD: options.mk,v 1.5 2013/04/14 12:35:25 cheusov Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.vlc PKG_SUPPORTED_OPTIONS= debug faad skins sdl pulseaudio x11 @@ -7,6 +7,13 @@ PKG_SUPPORTED_OPTIONS+= gnome dts rtsp #PKG_SUPPORTED_OPTIONS+= dbus PKG_SUGGESTED_OPTIONS= x11 rtsp +### 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} @@ -149,3 +156,11 @@ BUILDLINK_API_DEPENDS.liblive+= liblive>=20111223 .else CONFIGURE_ARGS+= --disable-live555 .endif + +## VAAPI support +.if !empty(PKG_OPTIONS:Mvaapi) +CONFIGURE_ARGS+= --enable-libva +.include "../../multimedia/libva/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-libva +.endif |