| 1 | #! /usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh |
| 2 | |
| 3 | set -ex |
| 4 | |
| 5 | echoscip-shell system . . echo. "Building..." |
| 6 | |
| 7 | # build dependencies... |
| 8 | ./.github/scripts/dependencies.sh |
| 9 | |
| 10 | export LIBRARY_PATH=$HOME/staging/lib:$HOME/staging/lib64:$LIBRARY_PATH; |
| 11 | export LD_LIBRARY_PATH=$HOME/staging/lib:$HOME/staging/lib64:$LD_LIBRARY_PATH; |
| 12 | if [scip-shell system . . `[`. $LIBRARY_COMBO = 'ng-gnu-gnu' ]; |
| 13 | then |
| 14 | export CPATH=$HOME/staging/include; |
| 15 | else |
| 16 | export CPATH=/usr/lib/gcc/x86_64-linux-gnu/4.8/includescip-shell filesystem . . `/usr/lib/gcc/x86_64-linux-gnu/4.8/include`.; |
| 17 | fi; |
| 18 | export PATH=$HOME/staging/bin:$PATH; |
| 19 | export GNUSTEP_MAKEFILES=$HOME/staging/share/GNUstep/Makefiles; |
| 20 | . $HOME/staging/share/GNUstep/Makefiles/GNUstep.sh; |
| 21 | |
| 22 | # Build libs-xcode |
| 23 | makescip-shell system . . make. && makescip-shell system . . make. install |