From 1cdcc4fc240994bd2b607ac2b1ba91aad0ca5177 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 18 Jul 2025 10:01:41 +0300 Subject: [PATCH] mesa_%.bbappend: DISTRO_FEATURES for wayland Conditionally add wayland-protocols to DEPENDS and RDEPENDS if variable DISTRO_FEATURES includes wayland. This work was sponsored by GOVCERT.LU. Suggested-by: Daniel F. Dickinson Signed-off-by: Leon Anavi --- recipes-graphics/mesa/mesa.bbappend | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend index 07c4c72..f0b47df 100644 --- a/recipes-graphics/mesa/mesa.bbappend +++ b/recipes-graphics/mesa/mesa.bbappend @@ -44,9 +44,17 @@ GALLIUMDRIVERS = "softpipe" PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd,-Dgallium-opencl=disabled," -DEPENDS += " wayland-protocols llvm python3-pyyaml python3-pyyaml-native" +DEPENDS += " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-protocols', '', d)} \ + llvm \ + python3-pyyaml \ + python3-pyyaml-native \ +" -RDEPENDS:libgl-mesa += " llvm wayland-protocols" +RDEPENDS:libgl-mesa += " \ + llvm \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-protocols', '', d)} \ +" PACKAGES =+ " \ libgallium \