# gdk-pixbuf 2.44.6 — VARIANTE ISLA DINÁMICA (SHADOW de recipes/gdk-pixbuf.toml estática).
# Carga/escala de imágenes (loader de GTK4). gtk4 declara GdkPixbuf-2.0 en su introspección ⇒ el scan
# de gtk4 debe resolver GdkPixbuf-2.0.typelib + libgdk_pixbuf-2.0.so. Ver [[gnome-introspection-dinamica]].
#
# vs corpus: link=dynamic, default_library=both, introspection=ENABLED, SIN --prefer-static.
# Mantengo el resto de flags de la corpus (leaf PNG-only, -Dgio_sniffing=false esquiva shared-mime-info).
name    = "gdk-pixbuf"
version = "2.44.6"

[source]
tarball = "https://download.gnome.org/sources/gdk-pixbuf/2.44/gdk-pixbuf-2.44.6.tar.xz"
sha256  = "140c2d0b899fcf853ee92b26373c9dc228dbcde0820a4246693f4328a27466fa"

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

[build.phases]
configure = "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=both -Dpng=enabled -Djpeg=disabled -Dtiff=disabled -Dothers=disabled -Dglycin=disabled -Dbuiltin_loaders=png -Dgio_sniffing=false -Dman=false -Dintrospection=enabled -Dtests=false -Dinstalled_tests=false -Dgtk_doc=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"

# glib(isla) + glib-introspected (GObject-2.0.gir) + gobject-introspection (tools) + libpng (loader PNG).
[deps]
# libpng-shared/zlib-shared: gdk-pixbuf.so (dinámica) linkea libpng por NEEDED (no 'undefined inflate':
# el libpng.a estático arrastraba zlib sin resolver). El resto = cierre .pc del corpus.
build = ["meson", "samurai", "python3", "py3-setuptools", "pkgconf", "glib", "glib-introspected", "gobject-introspection", "libpng-shared", "libffi", "pcre2", "zlib-shared"]
