PKGNAME=glib
PKGSEC=libs
PKGDEP="cryptsetup glibc pcre libffi elfutils util-linux"
PKGDEP__RETRO="pcre libffi"
BUILDDEP="dbus gettext perl python-3 docutils gobject-introspection"
BUILDDEP__RETRO="python-3"
PKGDES="Common C routines used by GTK+ and other libs"
PKGPROV="glib-static"

ABTYPE=meson
MESON_AFTER=(
    '-Dselinux=disabled'
    '-Dxattr=true'
    '-Dlibmount=enabled'
    '-Dman-pages=enabled'
    '-Ddtrace=false'
    '-Dsystemtap=false'
    '-Dsysprof=disabled'
    '-Ddocumentation=false'
    '-Dbsymbolic_functions=true'
    '-Dnls=enabled'
    '-Doss_fuzz=disabled'
    '-Dlibelf=enabled'
    '-Dglib_debug=enabled'
    '-Dintrospection=enabled'
    '--default-library=both'
    '-Dtests=false'
)
MESON_AFTER__RETRO=(
    "${MESON_AFTER[@]}"
    '-Dlibmount=disabled'
    '-Dman-pages=disabled'
    '-Dlibelf=disabled'
    '--default-library=shared'
    '-Dintrospection=disabled'
)

NOSTATIC=0

# glib typelib files are moved from gobject-introspection to glib
PKGBREAK="glib-static<=2.68.0 \
	gobject-introspection<=1:1.72.0-1"
PKGREP="glib<=2.68.0
	gobject-introspection<=1:1.72.0-1"

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