summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-03-02 05:37:22 +0000
committermaya <maya@pkgsrc.org>2017-03-02 05:37:22 +0000
commit4ea06f4b9183687d4bc78dd387b56230520ce668 (patch)
tree96d0e6b779a01cedc7cd81355b9298f021b4a89a /graphics
parentdcdbae1bb7ea0ef4980b9abe66d60757a89c0df8 (diff)
downloadpkgsrc-4ea06f4b9183687d4bc78dd387b56230520ce668.tar.gz
MesaLib: the actual condition for vdpau should be llvm&dri, not just dri.
should fix plist mismatch for CentOS 6.8, for some reason we are not using llvm option there, even though linux users are most likely to benefit from llvm.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/MesaLib/options.mk27
1 files changed, 13 insertions, 14 deletions
diff --git a/graphics/MesaLib/options.mk b/graphics/MesaLib/options.mk
index 88426f2fc89..cb56dc4099f 100644
--- a/graphics/MesaLib/options.mk
+++ b/graphics/MesaLib/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.50 2017/03/02 04:40:33 maya Exp $
+# $NetBSD: options.mk,v 1.51 2017/03/02 05:37:22 maya Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.MesaLib
PKG_SUPPORTED_OPTIONS= llvm dri
@@ -52,19 +52,6 @@ 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) || \
@@ -176,6 +163,18 @@ CONFIGURE_ARGS+= --with-gallium-drivers=${GALLIUM_DRIVERS:ts,}
CONFIGURE_ARGS+= --with-dri-drivers=${DRI_DRIVERS:ts,}
.if !empty(PKG_OPTIONS:Mllvm)
+# 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
+
# XA is useful for accelerating xf86-video-vmware
CONFIGURE_ARGS+= --enable-xa
PLIST.xatracker= yes