1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xmlada/xmlada.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/gprbuild-*.tar.*
14 tar -xf ../archdir/gprconfig_kb-*.tar.*
15 mv gprconfig_kb-* gprconfig_kb
16 mv gprbuild-* gprbuild
19 gprbuild_bootstrap() {
20 if ! which gprbuild >/dev/null; then
21 # XML/Ada has a circular dependency with gprbuild; build using bootstrapped gprbuild
23 CC=$HOSTCC ./bootstrap.sh --with-xmlada=.. --with-kb=../gprconfig_kb --prefix=../bootstrap
25 export PATH=$PATH:$PWD/bootstrap/bin
29 hook_add prepatch 2 gprbuild_extract
30 hook_add preconf 2 gprbuild_bootstrap