# libXdmcp 1.1.5 — X Display Manager Control Protocol: libXdmcp.so. Capa 0 de la campaña KDE (ADR 0011).
# Dep de libxcb (y transitivamente de libX11/Qt XCB). Autotools; headers de xorgproto + util-macros.
# Sin arc4random en musl ⇒ configure cae al fallback interno (no requiere libbsd). Linking dinámico.
name    = "libXdmcp"
version = "1.1.5"
license = "MIT"

[source]
tarball = "https://www.x.org/releases/individual/lib/libXdmcp-1.1.5.tar.xz"
sha256  = "d8a5222828c3adab70adf69a5583f1d32eb5ece04304f7f8392b6a353aa2228c"

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

[build.phases]
configure = "PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig ./configure --prefix=/usr --disable-static --enable-shared"
compile   = "make -j\"$(nproc)\""
install   = "make install DESTDIR=/out"

[deps]
build = ["pkgconf", "util-macros", "xorgproto"]
