[buildout]
extends =
  ../gettext/buildout.cfg
  ../libffi/buildout.cfg
  ../meson/buildout.cfg
  ../ninja/buildout.cfg
  ../patch/buildout.cfg
  ../pcre2/buildout.cfg
  ../perl/buildout.cfg
  ../python3/buildout.cfg
  ../pkgconfig/buildout.cfg
  ../xz-utils/buildout.cfg
  ../zlib/buildout.cfg
  ../defaults.cfg
parts =
  glib

[gcc]
min_version = 8

[glib]
recipe = slapos.recipe.cmmi
shared = true
url = https://download.gnome.org/sources/glib/2.76/glib-2.76.3.tar.xz
md5sum = 9e8f5c00f0cdf71c7e47e554bfbf9dcb
configure-command = ${meson:location}/bin/meson builddir --libdir=lib --wrap-mode=nodownload -Dprefix=@@LOCATION@@ -Dlibmount=disabled -Dselinux=disabled -Dgtk_doc=false -Dxattr=false -Dman=false -Dnls=disabled
make-binary = ninja -C builddir
pkg_config_depends = ${pcre2:location}/lib/pkgconfig:${libffi:location}/lib/pkgconfig:${zlib:location}/lib/pkgconfig
environment =
  PKG_CONFIG_PATH=${:pkg_config_depends}
  PATH=${python3:location}/bin:${ninja:location}/bin:${pkgconfig:location}/bin:${patch:location}/bin:${perl:location}/bin:${xz-utils:location}/bin:%(PATH)s
  CFLAGS=-I${gettext:location}/include
  LDFLAGS=-L${gettext:location}/lib -lintl -Wl,-rpath=${gettext:location}/lib -Wl,-rpath=${libffi:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=@@LOCATION@@/lib -Wl,-rpath=${pcre2:location}/lib
post-install = rm %(location)s/bin/gtester-report
