PKGNAME=glycin
PKGSEC=gnome
PKGDEP="lcms2 glib libseccomp fontconfig libjxl librsvg libheif cairo \
        gdk-pixbuf pango libopenraw bubblewrap"
BUILDDEP="rustc llvm gobject-introspection vala gettext python-3 gtk-4"
PKGDES="Image loader library with sandboxing"

ABTYPE=meson
USECLANG=1

MESON_AFTER=(
    '-Dlto=true'
    '-Dprofile=release'
    '-Dglycin-loaders=true'
    '-Dloaders=glycin-heif,glycin-image-rs,glycin-jxl,glycin-svg,glycin-raw'
    '-Dtests=false'
    '-Dlibglycin=true'
    '-Dlibglycin-gtk4=true'
    '-Dintrospection=true'
    '-Dvapi=true'
    '-Dcapi_docs=false'
    '-Dpython_tests=false'
    '-Dglycin-thumbnailer=true'
)

PKGBREAK="fractal<=12.1-1 loupe<=47.4-1"
