# libinput 1.27.1 — manejo de dispositivos de entrada (teclado/touchpad/ratón) sobre evdev. La pide
# `mirada-compositor` vía smithay (input-sys/libudev-sys). Proyecto meson.
# Recorte: sin libwacom (tablets Wacom), sin debug-gui (GTK), sin tests ni docs.
# Deps: libudev (libudev-zero), libevdev, mtdev.
name    = "libinput"
version = "1.27.1"

[source]
tarball = "https://gitlab.freedesktop.org/libinput/libinput/-/archive/1.27.1/libinput-1.27.1.tar.gz"
sha256  = "f6d623dd8230db337a6457645ebca96b9d4788a56385463bb14b8174910dfe23"

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

[build.phases]
# `-Ddefault_library=both`: meson produce SÓLO .so por defecto y sus consumidores enlazan
# ESTÁTICAMENTE. Mismo fallo raíz que ya se corrigió en pixman.
configure = "meson setup output --prefix=/usr --buildtype=release -Ddefault_library=both -Dlibwacom=false -Ddebug-gui=false -Dtests=false -Ddocumentation=false"
compile   = "ninja -C output"
install   = "DESTDIR=/out ninja -C output install"

[deps]
build = ["meson", "samurai", "python3", "pkgconf", "libudev-zero", "libevdev", "mtdev"]
