# mutter 48.8 — el compositor Wayland de GNOME. El más pesado del frente: funde clutter+cogl in-tree
# y arrastra el stack gráfico entero. meson static. sha256 REAL de curl|sha256sum.
#
# ⚠ DRAFT PARA EL MAPA: NO sella a la primera — su valor hoy es la FRONTERA declarada (lo que falta
# autorar). Wayland-only, X11 al tacho: -Dxwayland=false (y sin backend x11 donde el meson lo permita).
# Feature-minimal: tests/docs/profiler off. El backend nativo (KMS/DRM+libinput) es el de la distro.
name    = "mutter"
version = "48.8"
license = "GPL-2.0-or-later"

[source]
tarball = "https://download.gnome.org/sources/mutter/48/mutter-48.8.tar.xz"
sha256  = "a483f91f75c16368d388179ecb855fcdb35db9c628f35b315b717153f99681a9"

[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "dynamic"

[build.phases]
configure = "sed -i \"/^subdir('doc\\/man')$/d\" meson.build && PKG_CONFIG_PATH=/usr/lib/pkgconfig PYTHONPATH=/usr/lib/python3.12/site-packages meson setup output --prefix=/usr --buildtype=release --wrap-mode=nodownload -Ddefault_library=shared -Dxwayland=false -Dx11=false -Dopengl=false -Dglx=false -Dremote_desktop=false -Dlibwacom=false -Dsound_player=false -Dstartup_notification=false -Dsm=false -Dtests=disabled -Dcogl_tests=false -Dclutter_tests=false -Dmutter_tests=false -Dprofiler=false -Dbash_completion=false -Ddocs=false -Dinstalled_tests=false -Dc_args=-Wno-error=date-time"
compile   = "PYTHONPATH=/usr/lib/python3.12/site-packages ninja -C output"
install   = "PYTHONPATH=/usr/lib/python3.12/site-packages DESTDIR=/out meson install -C output --no-rebuild"

# Resolubles: el espinazo gráfico + gsettings-desktop-schemas y gnome-desktop (ya en incoming-gnome/).
# FRONTERA (deps REQUERIDAS sin receta alcanzable — el mapa honesto del muro de mutter):
#   gobject-introspection → YA en incoming-gnome/ (typelibs de Meta/Clutter/Cogl); añadir cuando selle.
#   json-glib            — REQUERIDA.
#   libei                — REQUERIDA (emulated input, remote desktop).
#   libdisplay-info      — REQUERIDA (parseo EDID de monitores).
#   colord, lcms2        — REQUERIDA (gestión de color).
#   pipewire             — REQUERIDA (screencast); existe en incoming-kde/ pero el resolver no la ve.
#   xkeyboard-config     — REQUERIDA (layouts); existe en incoming-kde/, mismo gap del resolver.
#   libgudev, libwacom   — device/tablet.
#   sysprof-capture      — opcional (profiler=false lo evita).
[deps]
build = ["meson", "samurai", "python3", "pkgconf", "py3-setuptools", "gi-foreign-girs", "gobject-introspection", "glib-introspected", "gsettings-desktop-schemas", "gnome-desktop", "glib", "gtk4", "graphene", "wayland", "wayland-protocols", "libinput", "libxkbcommon", "cairo-shared", "pango", "gdk-pixbuf", "mesa", "libdrm", "libepoxy", "pixman", "harfbuzz", "fribidi", "libpng-shared", "freetype-shared", "expat", "libffi", "pcre2", "zlib-shared", "libjpeg-turbo-shared", "libtiff-shared", "fontconfig-shared", "json-glib", "lcms2", "libdisplay-info", "hwdata", "at-spi2-core", "colord", "libgudev", "libudev-zero", "libgusb", "libusb", "sqlite", "gettext-tiny", "libei", "libevdev", "xkeyboard-config", "iso-codes", "libseccomp", "libelogind", "udev-pc", "libxcvt"]
