From dc34fe605c8f2f349aadf7f74e11ad2069a0d278 Mon Sep 17 00:00:00 2001 From: nia Date: Thu, 5 Nov 2020 13:39:17 +0100 Subject: [PATCH] mutter: Detect the features available in MesaLib and enable accordingly --- mutter/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mutter/Makefile b/mutter/Makefile index d565da60c2..1820ed607c 100644 --- a/mutter/Makefile +++ b/mutter/Makefile @@ -14,6 +14,16 @@ LICENSE= gnu-gpl-v2 USE_TOOLS+= pkg-config USE_PKGLOCALEDIR= yes +.include "../../graphics/MesaLib/features.mk" + +.if ${MESALIB_SUPPORTS_EGL} == "no" +MESON_ARGS+= -Degl=false +.endif + +.if ${MESALIB_SUPPORTS_GLESv2} == "no" +MESON_ARGS+= -Dgles2=false +.endif + MESON_ARGS+= -Dudev=false MESON_ARGS+= -Dnative_backend=false MESON_ARGS+= -Dlibwacom=false