pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/multimedia/mpv



Module Name:    pkgsrc
Committed By:   leot
Date:           Sun Mar 12 11:41:44 UTC 2017

Modified Files:
        pkgsrc/multimedia/mpv: Makefile options.mk

Log Message:
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)


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 pkgsrc/multimedia/mpv/Makefile
cvs rdiff -u -r1.10 -r1.11 pkgsrc/multimedia/mpv/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/multimedia/mpv/Makefile
diff -u pkgsrc/multimedia/mpv/Makefile:1.53 pkgsrc/multimedia/mpv/Makefile:1.54
--- pkgsrc/multimedia/mpv/Makefile:1.53 Fri Mar 10 15:55:33 2017
+++ pkgsrc/multimedia/mpv/Makefile      Sun Mar 12 11:41:44 2017
@@ -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}

Index: pkgsrc/multimedia/mpv/options.mk
diff -u pkgsrc/multimedia/mpv/options.mk:1.10 pkgsrc/multimedia/mpv/options.mk:1.11
--- pkgsrc/multimedia/mpv/options.mk:1.10       Sat Mar 11 07:09:10 2017
+++ pkgsrc/multimedia/mpv/options.mk    Sun Mar 12 11:41:44 2017
@@ -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)



Home | Main Index | Thread Index | Old Index