# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/glib/glib.conf # Copyright (C) 2004 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- var_append mesonopt ' ' '-Dtests=false' var_append mesonopt ' ' '-Druntime_dir=/var/run' pkginstalled gobject-introspection || var_append mesonopt ' ' '-Dintrospection=disabled' if atstage toolchain; then var_append SYSGCC_WRAPPER_APPEND " " "-I$root/include" var_append mesonopt " " "-Dlibmount=disabled" else . $base/package/*/*/gnome-conf.in NO_SANITY_CHECK xdg_pc() { cat > $root/etc/profile.d/gnome <<-EOT export XDG_CONFIG_DIRS="\$XDG_CONFIG_DIRS\${XDG_CONFIG_DIRS:+:}$sysconfdir/xdg" export XDG_DATA_DIRS="\$XDG_DATA_DIRS\${XDG_DATA_DIRS:+:}$datadir" EOT } hook_add postmake 5 "xdg_pc" fi if atstage cross; then var_append GCC_WRAPPER_APPEND " " "-c?:-lresolv" fi # Prevent glib from downloading dependencies we already supply behind our back hook_add prepatch 5 "rm -vrf subprojects/{pcre2,libffi,zlib,gtk-doc}.wrap"