summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2020-03-28 08:58:25 +0000
committermaya <maya@pkgsrc.org>2020-03-28 08:58:25 +0000
commit87c22494cc6c374ead70c7cf6c20a676a092fb10 (patch)
tree5869f5ba8643f364f075e7a365b1790504e75d4e /devel
parent83b1ddcabc0b009989497931583be7c87b7bff10 (diff)
downloadpkgsrc-87c22494cc6c374ead70c7cf6c20a676a092fb10.tar.gz
wayland: don't claim support on non-EGL platforms.
GTK3 expects wayland and EGL to come together. EGL isn't a requirement for wayland, but not claiming support will possibly make life easier on lesser-used platforms, and is certainly a good idea for the freeze. "good for now" - nia PR pkg/55117: gtk3 does not compile w/o EGL
Diffstat (limited to 'devel')
-rw-r--r--devel/wayland/platform.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/devel/wayland/platform.mk b/devel/wayland/platform.mk
index 5711f39670a..1bd5655981c 100644
--- a/devel/wayland/platform.mk
+++ b/devel/wayland/platform.mk
@@ -1,13 +1,17 @@
-# $NetBSD: platform.mk,v 1.5 2020/01/04 02:06:02 nia Exp $
+# $NetBSD: platform.mk,v 1.6 2020/03/28 08:58:25 maya Exp $
.if !defined(PLATFORM_SUPPORTS_WAYLAND)
. include "../../mk/bsd.fast.prefs.mk"
+.include "../../graphics/MesaLib/features.mk"
+
# Please only add operating systems here after verifying that both
# devel/wayland and devel/wayland-protocols build.
WAYLAND_PLATFORMS+= Linux-*-*
-.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*)
+# We can have Wayland without EGL, but a lot of things expect
+# wayland and EGL support together.
+.if ${OPSYS} == "NetBSD" && !empty(MESALIB_SUPPORTS_EGL:M[Yy][Ee][Ss])
PLATFORM_SUPPORTS_WAYLAND= yes
.endif