# fontconfig 2.18.1 — configuración/cache de fuentes (lo usa cairo/pango). autotools static.
name    = "fontconfig"
version = "2.18.1"
license = "MIT"
[source]
tarball = "https://gitlab.freedesktop.org/api/v4/projects/890/packages/generic/fontconfig/2.18.1/fontconfig-2.18.1.tar.xz"
sha256  = "2300f3dbfa7253b3a44f4feecdbc8dfa45dde5dc2cfb71fceaf31f394cb41031"
[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "static"
[build.phases]
configure = "./configure --prefix=/usr --sysconfdir=/etc --disable-shared --enable-static --disable-docs"
compile   = 'make LDFLAGS="-all-static -no-pie" -j"$(nproc)"'
install   = 'make install DESTDIR=/out LDFLAGS="-all-static -no-pie"'
# libpng+zlib: freetype se compila --with-png, así que freetype2.pc trae `Requires: libpng`
# (y libpng.pc → zlib); sin ellos pkg-config no resuelve freetype2 y ./configure aborta.
[deps]
build = ["freetype", "expat", "pkgconf", "gperf", "python3", "libpng", "zlib", "make"]
