summaryrefslogtreecommitdiff
path: root/multimedia/vlc2
diff options
context:
space:
mode:
authorcheusov <cheusov>2013-04-14 12:35:25 +0000
committercheusov <cheusov>2013-04-14 12:35:25 +0000
commit9d57f79a4162625d293ccb5e70f7ef78836a2923 (patch)
tree8ef7905106acd505dde3144bd37200834b0edc3f /multimedia/vlc2
parente0cf78d1f48021ee4b91f2658e7c853410a351da (diff)
downloadpkgsrc-9d57f79a4162625d293ccb5e70f7ef78836a2923.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/Makefile3
-rw-r--r--multimedia/vlc2/options.mk17
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