summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-02-24 00:16:55 +0000
committermaya <maya@pkgsrc.org>2017-02-24 00:16:55 +0000
commitcf68235c831b307e33e1d110727451af24b53e92 (patch)
treedd996316a3720fee6ba2852ee1814975451df9d9
parent050e8d77fe12b72ac71c7ce311460f0bd2f009a1 (diff)
downloadpkgsrc-cf68235c831b307e33e1d110727451af24b53e92.tar.gz
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
-rw-r--r--graphics/MesaLib/Makefile12
-rw-r--r--graphics/MesaLib/PLIST20
2 files changed, 29 insertions, 3 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index 4de502b0eb5..e02f172dfd0 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -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 @@ INSTALLATION_DIRS+= share/examples/MesaLib
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 --git a/graphics/MesaLib/PLIST b/graphics/MesaLib/PLIST
index acb63332448..7ee3b7bfd08 100644
--- a/graphics/MesaLib/PLIST
+++ b/graphics/MesaLib/PLIST
@@ -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.dri}lib/pkgconfig/glesv2.pc
${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