pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib MesaLib: build VDPAU support if it's ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5bbdf66b1922
branches:  trunk
changeset: 358958:5bbdf66b1922
user:      maya <maya%pkgsrc.org@localhost>
date:      Fri Feb 24 00:16:55 2017 +0000

description:
MesaLib: build VDPAU support if it's available.
Tested on NetBSD with nvidia GTX 770 (nouveau), running mpv with
env VDPAU_DRIVER=nouveau.

This may cause a PLIST mismatch/build issues on FreeBSD/Linux, as I expect
libvdpau_nvidia.so to be created for those. we will find out the hard way.

bump PKGREVISION

diffstat:

 graphics/MesaLib/Makefile |  12 ++++++++++--
 graphics/MesaLib/PLIST    |  20 +++++++++++++++++++-
 2 files changed, 29 insertions(+), 3 deletions(-)

diffs (60 lines):

diff -r 74aa30108f6e -r 5bbdf66b1922 graphics/MesaLib/Makefile
--- a/graphics/MesaLib/Makefile Fri Feb 24 00:11:58 2017 +0000
+++ b/graphics/MesaLib/Makefile Fri Feb 24 00:16:55 2017 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.131 2017/01/15 00:13:44 wiz Exp $
+# $NetBSD: Makefile,v 1.132 2017/02/24 00:16:55 maya Exp $
 
 DISTNAME=      mesa-11.2.2
 PKGNAME=       ${DISTNAME:S/mesa/MesaLib/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    graphics x11
 MASTER_SITES=  ftp://ftp.freedesktop.org/pub/mesa/${PKGVERSION_NOREV}/
 EXTRACT_SUFX=  .tar.xz
@@ -105,6 +105,14 @@
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/src/mesa/drivers/dri/common/drirc ${DESTDIR}${PREFIX}/share/examples/MesaLib
 
+.include "../../multimedia/libvdpau/available.mk"
+PLIST_VARS+=   vdpau
+.if ${VDPAU_AVAILABLE} == "yes"
+PLIST.vdpau=   yes
+.include "../../multimedia/libvdpau/buildlink3.mk"
+.include "../../multimedia/libva/buildlink3.mk"
+.endif
+
 .include "../../x11/libX11/buildlink3.mk"
 .include "../../x11/libXext/buildlink3.mk"
 .include "../../x11/libxcb/buildlink3.mk"
diff -r 74aa30108f6e -r 5bbdf66b1922 graphics/MesaLib/PLIST
--- a/graphics/MesaLib/PLIST    Fri Feb 24 00:11:58 2017 +0000
+++ b/graphics/MesaLib/PLIST    Fri Feb 24 00:16:55 2017 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.33 2016/02/23 14:40:36 tnn Exp $
+@comment $NetBSD: PLIST,v 1.34 2017/02/24 00:16:55 maya Exp $
 ${PLIST.dri}include/EGL/egl.h
 ${PLIST.dri}include/EGL/eglext.h
 ${PLIST.dri}include/EGL/eglextchromium.h
@@ -63,3 +63,21 @@
 ${PLIST.wayland}lib/pkgconfig/wayland-egl.pc
 ${PLIST.xatracker}lib/pkgconfig/xatracker.pc
 share/examples/MesaLib/drirc
+${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so
+${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1
+${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1.0
+${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1.0.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1.0.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1.0.0
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1.0
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1.0.0
+${PLIST.vdpau}lib/dri/gallium_drv_video.la
+${PLIST.vdpau}lib/dri/gallium_drv_video.so



Home | Main Index | Thread Index | Old Index