summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorleot <leot>2017-03-12 11:41:44 +0000
committerleot <leot>2017-03-12 11:41:44 +0000
commit6240051a40362e67f0d33c15dba81f7796a2e5ed (patch)
treefdcb656cf42ce339a7ba595dbc78cfa2b96fe173 /multimedia
parent077ec7487e71b54a82b1653a7768af18c881176c (diff)
downloadpkgsrc-6240051a40362e67f0d33c15dba81f7796a2e5ed.tar.gz
Add vaapi and vdpau options and enable it by default on supported platform.
Bump PKGREVISION (Please note that previosly vaapi|vdpau were available thanks to <maya> works via `--hwdec=vaapi|vdpau' via a vaapi|vdpau-aware ffmpeg3. This change just enable them as `--vo=vaapi|vdpau' too)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mpv/Makefile4
-rw-r--r--multimedia/mpv/options.mk36
2 files changed, 37 insertions, 3 deletions
diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index 00f429b73fa..a75dabbd503 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.53 2017/03/10 15:55:33 nat Exp $
+# $NetBSD: Makefile,v 1.54 2017/03/12 11:41:44 leot Exp $
DISTNAME= mpv-0.24.0
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= multimedia
MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/}
GITHUB_TAG= v${PKGVERSION_NOREV}
diff --git a/multimedia/mpv/options.mk b/multimedia/mpv/options.mk
index cd02ce438e1..8945a026791 100644
--- a/multimedia/mpv/options.mk
+++ b/multimedia/mpv/options.mk
@@ -1,9 +1,23 @@
-# $NetBSD: options.mk,v 1.10 2017/03/11 07:09:10 snj Exp $
+# $NetBSD: options.mk,v 1.11 2017/03/12 11:41:44 leot Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mpv
+
+.include "../../multimedia/libva/available.mk"
+.include "../../multimedia/libvdpau/available.mk"
+
PKG_SUPPORTED_OPTIONS= ass caca lua pulseaudio sdl v4l2 rpi sdl2
PKG_SUGGESTED_OPTIONS= ass lua pulseaudio
+.if ${VAAPI_AVAILABLE} == "yes"
+PKG_SUPPORTED_OPTIONS+= vaapi
+PKG_SUGGESTED_OPTIONS+= vaapi
+.endif
+
+.if ${VDPAU_AVAILABLE} == "yes"
+PKG_SUPPORTED_OPTIONS+= vdpau
+PKG_SUGGESTED_OPTIONS+= vdpau
+.endif
+
.include "../../mk/bsd.options.mk"
###
@@ -79,6 +93,26 @@ WAF_CONFIGURE_ARGS+= --disable-libv4l2
.endif
###
+### VAAPI support
+###
+.if !empty(PKG_OPTIONS:Mvaapi)
+WAF_CONFIGURE_ARGS+= --enable-vaapi
+.include "../../multimedia/libva/buildlink3.mk"
+.else
+WAF_CONFIGURE_ARGS+= --disable-vaapi
+.endif
+
+###
+### VDPAU support
+###
+.if !empty(PKG_OPTIONS:Mvdpau)
+WAF_CONFIGURE_ARGS+= --enable-vdpau
+.include "../../multimedia/libvdpau/buildlink3.mk"
+.else
+WAF_CONFIGURE_ARGS+= --disable-vdpau
+.endif
+
+###
### Raspberry Pi support
###
.if !empty(PKG_OPTIONS:Mrpi)