mirror of
https://github.com/pygos/build.git
synced 2024-11-05 11:37:10 +01:00
b1bdce20a9
Crunch project websites and try to find the latest version for each package without having to do the work manually. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
49 lines
No EOL
1.3 KiB
Text
Executable file
49 lines
No EOL
1.3 KiB
Text
Executable file
VERSION="7.3.0"
|
|
SRCDIR="gcc-$VERSION"
|
|
TARBALL="gcc-$VERSION.tar.xz"
|
|
URL="http://ftp.gnu.org/gnu/gcc/gcc-$VERSION"
|
|
SHA256SUM="832ca6ae04636adbb430e865a1451adf6979ab44ca1c8374f61fba65645ce15c"
|
|
DEPENDS="tc-binutils tc-cloog tc-gmp tc-isl tc-mpc tc-mpfr linux_headers"
|
|
|
|
prepare() {
|
|
for child in cloog gmp isl mpc mpfr; do
|
|
include_pkg "tc-$child"
|
|
|
|
if [ ! -e "$child" ]; then
|
|
echo "installing symlink to $child..."
|
|
ln -s "$PKGSRCDIR/$SRCDIR" "$child"
|
|
else
|
|
if [ ! -L "$child" ]; then
|
|
echo "ERROR: $child " \
|
|
"exists but is not a symlink!"
|
|
exit 1
|
|
fi
|
|
fi
|
|
done
|
|
}
|
|
|
|
build() {
|
|
$1/configure --prefix="$TCDIR" --target="$TARGET" \
|
|
--build="$HOSTTUPLE" --host="$HOSTTUPLE" \
|
|
--with-sysroot="$TCDIR/$TARGET" \
|
|
--disable-nls --disable-shared --without-headers \
|
|
--disable-multilib --disable-decimal-float \
|
|
--disable-libgomp --disable-libmudflap \
|
|
--disable-libssp --disable-libatomic \
|
|
--disable-libquadmath --disable-threads \
|
|
--enable-languages=c --with-newlib \
|
|
--with-arch="$GCC_CPU" $GCC_EXTRACFG
|
|
|
|
make -j $NUMJOBS all-gcc all-target-libgcc
|
|
}
|
|
|
|
deploy() {
|
|
make install-gcc install-target-libgcc
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "http://ftp.gnu.org/gnu/gcc" | \
|
|
grep -o ">gcc-[0-9.]*/<" | \
|
|
sed 's/>gcc-//g' | sed 's/\/<//g' | \
|
|
verson_find_greatest "$VERSION"
|
|
} |