mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-03-21 17:44:41 -05:00
21 lines
580 B
Bash
21 lines
580 B
Bash
#!/bin/bash
|
|
cd $BUILDDIR
|
|
|
|
for archive in $hostarchives
|
|
do
|
|
dir=$(echo $archive | sed -e 's/\(.*\)\.tar\.bz2/\1/' )
|
|
cd $BUILDDIR/$dir
|
|
if [ ! -f configured ]; then
|
|
CXXFLAGS=$cflags CFLAGS=$cflags LDFLAGS=$ldflags ./configure --prefix=$prefix --disable-dependency-tracking $CROSS_PARAMS || { echo "error configuring $archive"; exit 1; }
|
|
touch configured
|
|
fi
|
|
if [ ! -f built ]; then
|
|
$MAKE || { echo "error building $archive"; exit 1; }
|
|
touch built
|
|
fi
|
|
if [ ! -f installed ]; then
|
|
$MAKE install || { echo "error installing $archive"; exit 1; }
|
|
touch installed
|
|
fi
|
|
done
|