PKGNAME=gdk-pixbuf
PKGDES="A toolkit for image loading and pixel buffer manipulation"
PKGDEP="glib glycin shared-mime-info"
BUILDDEP="gobject-introspection docutils"
PKGDEP__RETRO="glib shared-mime-info libjpeg-turbo libpng libtiff giflib"
BUILDDEP__RETRO="docutils"
PKGSEC=libs

# These are all options (except deprecated and Android/Windoge specific)
# in the same order of meson_options.txt.  The png, tiff, jpeg, and gif
# loaders disabled in favor of glycin.
MESON_AFTER=(
    '-Dpng=disabled'
    '-Dtiff=disabled'
    '-Djpeg=disabled'
    '-Dgif=disabled'
    '-Dglycin=enabled'
    '-Dothers=enabled'
    '-Dbuiltin_loaders=all'
    '-Ddocumentation=false'
    '-Dintrospection=enabled'
    '-Dman=true'
    '-Drelocatable=false'
    '-Dtests=false'
    '-Dinstalled_tests=false'
    '-Dgio_sniffing=true'
    '-Dthumbnailer=disabled'
)

MESON_AFTER__RETRO=(
    "${MESON_AFTER[@]}"
    '-Dglycin=disabled'
    '-Dpng=enabled'
    '-Dtiff=enabled'
    '-Djpeg=enabled'
    '-Dgif=enabled'
    '-Dintrospection=disabled'
)

# Note: Extra Provides for Spiral (Debian compatibility).
PKGPROV="libgdk-pixbuf2.0-0_spiral libgdk-pixbuf2.0-dev_spiral"

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
