Thu Oct 3 15:50:06 2019 UTC ()
MesaLib: Allow dri3 to be autodetected


(nia)
diff -r1.166 -r1.167 pkgsrc/graphics/MesaLib/Makefile

cvs diff -r1.166 -r1.167 pkgsrc/graphics/MesaLib/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/MesaLib/Makefile 2019/09/09 01:00:49 1.166
+++ pkgsrc/graphics/MesaLib/Makefile 2019/10/03 15:50:06 1.167
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.166 2019/09/09 01:00:49 nia Exp $ 1# $NetBSD: Makefile,v 1.167 2019/10/03 15:50:06 nia Exp $
2 2
3DISTNAME= mesa-19.1.6 3DISTNAME= mesa-19.1.6
4PKGNAME= ${DISTNAME:S/mesa/MesaLib/} 4PKGNAME= ${DISTNAME:S/mesa/MesaLib/}
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= graphics 6CATEGORIES= graphics
7MASTER_SITES= https://mesa.freedesktop.org/archive/ 7MASTER_SITES= https://mesa.freedesktop.org/archive/
8EXTRACT_SUFX= .tar.xz 8EXTRACT_SUFX= .tar.xz
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://www.mesa3d.org/ 11HOMEPAGE= https://www.mesa3d.org/
12COMMENT= Open source OpenGL implementation 12COMMENT= Open source OpenGL implementation
13LICENSE= mit 13LICENSE= mit
14 14
@@ -52,27 +52,26 @@ PLIST_SUBST+= GLVER="1.2.0" @@ -52,27 +52,26 @@ PLIST_SUBST+= GLVER="1.2.0"
52 52
53# classic DRI drivers 53# classic DRI drivers
54PLIST_VARS+= i915 i965 r100 r200 nouveau_dri 54PLIST_VARS+= i915 i965 r100 r200 nouveau_dri
55 55
56# Gallium drivers 56# Gallium drivers
57PLIST_VARS+= r300 svga nouveau vc4 lima panfrost 57PLIST_VARS+= r300 svga nouveau vc4 lima panfrost
58 58
59# other features 59# other features
60PLIST_VARS+= egl gbm vaapi xatracker 60PLIST_VARS+= egl gbm vaapi xatracker
61 61
62.if ${OPSYS} != "Darwin" && ${OPSYS} != "Cygwin" 62.if ${OPSYS} != "Darwin" && ${OPSYS} != "Cygwin"
63.include "../../x11/libdrm/buildlink3.mk" 63.include "../../x11/libdrm/buildlink3.mk"
64MESA_PLATFORMS+= drm 64MESA_PLATFORMS+= drm
65MESON_ARGS+= -Ddri3=true 
66. if ${OPSYS} != "SunOS" 65. if ${OPSYS} != "SunOS"
67MESON_ARGS+= -Degl=true 66MESON_ARGS+= -Degl=true
68MESON_ARGS+= -Dgbm=true 67MESON_ARGS+= -Dgbm=true
69MESON_ARGS+= -Dgallium-xa=true 68MESON_ARGS+= -Dgallium-xa=true
70PLIST.egl= yes 69PLIST.egl= yes
71PLIST.gbm= yes 70PLIST.gbm= yes
72PLIST.xatracker= yes 71PLIST.xatracker= yes
73. else 72. else
74MESON_ARGS+= -Degl=false 73MESON_ARGS+= -Degl=false
75MESON_ARGS+= -Dgbm=false 74MESON_ARGS+= -Dgbm=false
76. endif 75. endif
77. include "../../multimedia/libva/available.mk" 76. include "../../multimedia/libva/available.mk"
78. if ${VAAPI_AVAILABLE} == "yes" 77. if ${VAAPI_AVAILABLE} == "yes"