summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-03-02 04:40:33 +0000
committermaya <maya@pkgsrc.org>2017-03-02 04:40:33 +0000
commitdcdbae1bb7ea0ef4980b9abe66d60757a89c0df8 (patch)
tree768387ab19cb892a6b7353ee9a0909ca7b4641b8 /graphics/MesaLib
parent27368f5a68890ebdcf40e45be4a8a8cb44057b3a (diff)
downloadpkgsrc-dcdbae1bb7ea0ef4980b9abe66d60757a89c0df8.tar.gz
MesaLib: pull in vdpau and vaapi only if dri option is selected.
This fixes a PLIST mismatch in the -dri -llvm case, pointed out by Joern Clausen in PR pkg/52021.
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/Makefile16
-rw-r--r--graphics/MesaLib/options.mk17
2 files changed, 16 insertions, 17 deletions
diff --git a/graphics/MesaLib/Makefile b/graphics/MesaLib/Makefile
index fe1de79d086..087e2fefb5b 100644
--- a/graphics/MesaLib/Makefile
+++ b/graphics/MesaLib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.133 2017/02/24 13:48:33 maya Exp $
+# $NetBSD: Makefile,v 1.134 2017/03/02 04:40:33 maya Exp $
DISTNAME= mesa-11.2.2
PKGNAME= ${DISTNAME:S/mesa/MesaLib/}
@@ -105,20 +105,6 @@ INSTALLATION_DIRS+= share/examples/MesaLib
post-install:
${INSTALL_DATA} ${WRKSRC}/src/mesa/drivers/dri/common/drirc ${DESTDIR}${PREFIX}/share/examples/MesaLib
-PLIST_VARS+= vdpau vaapi
-
-.include "../../multimedia/libvdpau/available.mk"
-.if ${VDPAU_AVAILABLE} == "yes"
-PLIST.vdpau= yes
-.include "../../multimedia/libvdpau/buildlink3.mk"
-.endif
-
-.include "../../multimedia/libva/available.mk"
-.if ${VAAPI_AVAILABLE} == "yes"
-PLIST.vaapi= yes
-.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/options.mk b/graphics/MesaLib/options.mk
index 88305242b99..88426f2fc89 100644
--- a/graphics/MesaLib/options.mk
+++ b/graphics/MesaLib/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.49 2016/02/25 13:37:46 jperkin Exp $
+# $NetBSD: options.mk,v 1.50 2017/03/02 04:40:33 maya Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib
PKG_SUPPORTED_OPTIONS= llvm dri
@@ -37,7 +37,7 @@ PLIST_VARS+= freedreno ilo i915 i965 nouveau r300 r600 radeonsi \
# classic DRI
PLIST_VARS+= dri swrast_dri i915_dri nouveau_dri i965_dri radeon_dri r200_dri
# other features
-PLIST_VARS+= gbm wayland xatracker
+PLIST_VARS+= gbm vaapi vdpau wayland xatracker
.if !empty(PKG_OPTIONS:Mdri)
@@ -52,6 +52,19 @@ PLIST.gbm= yes
CONFIGURE_ARGS+= --enable-gles1
CONFIGURE_ARGS+= --enable-gles2
+# VA-API and VDPAU
+.include "../../multimedia/libva/available.mk"
+.if ${VAAPI_AVAILABLE} == "yes"
+PLIST.vaapi= yes
+.include "../../multimedia/libva/buildlink3.mk"
+.endif
+
+.include "../../multimedia/libvdpau/available.mk"
+.if ${VDPAU_AVAILABLE} == "yes"
+PLIST.vdpau= yes
+.include "../../multimedia/libvdpau/buildlink3.mk"
+.endif
+
# Use Thread Local Storage in GLX where it is supported by Mesa and works.
.if \
!empty(MACHINE_PLATFORM:MNetBSD-[789].*-i386) || \