1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/gprbuild/gprbuild.conf
3 # Copyright (C) 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
13 tar -xf ../archdir/gprconfig_kb-*.tar.*
14 mv gprconfig_kb-* gprconfig_kb
15 # Note: gprbuild bootstrap needs xmlada source, not installed xmlada
16 if ! which gprbuild >/dev/null; then
17 tar -xf ../archdir/xmlada-*.tar.*
22 gprbuild_bootstrap() {
23 if ! which gprbuild >/dev/null; then
24 # gprbuild requires itself to build
25 CC=$HOSTCC ./bootstrap.sh --with-xmlada=./xmlada --with-kb=./gprconfig_kb --prefix=./bootstrap
26 export PATH=$PATH:$PWD/bootstrap/bin
30 hook_add prepatch 2 gprconfig_extract
31 hook_add preconf 2 gprbuild_bootstrap
33 # libgpr is needed by gnatcoll
34 var_append makeinstopt ' ' 'libgpr.install.static'