pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/mpv Add vaapi and vdpau options and enable ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2b876abc2930
branches: trunk
changeset: 359499:2b876abc2930
user: leot <leot%pkgsrc.org@localhost>
date: Sun Mar 12 11:41:44 2017 +0000
description:
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:
multimedia/mpv/Makefile | 4 ++--
multimedia/mpv/options.mk | 36 +++++++++++++++++++++++++++++++++++-
2 files changed, 37 insertions(+), 3 deletions(-)
diffs (68 lines):
diff -r 6f5505d17871 -r 2b876abc2930 multimedia/mpv/Makefile
--- a/multimedia/mpv/Makefile Sun Mar 12 09:45:27 2017 +0000
+++ b/multimedia/mpv/Makefile Sun Mar 12 11:41:44 2017 +0000
@@ -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 -r 6f5505d17871 -r 2b876abc2930 multimedia/mpv/options.mk
--- a/multimedia/mpv/options.mk Sun Mar 12 09:45:27 2017 +0000
+++ b/multimedia/mpv/options.mk Sun Mar 12 11:41:44 2017 +0000
@@ -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 @@
.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)
Home |
Main Index |
Thread Index |
Old Index