Added sit class file for gcc-6.1.0
This commit is contained in:
parent
e14d3fadba
commit
e16524e771
1 changed files with 46 additions and 0 deletions
46
packages/compiler/gcc/gcc-6.1.0
Executable file
46
packages/compiler/gcc/gcc-6.1.0
Executable file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/sh
|
||||
# sit class file
|
||||
#
|
||||
# Christoph Niethammer <niethammer@hlrs.de> (C) 2015
|
||||
#
|
||||
# sit command:
|
||||
|
||||
|
||||
CATEGORY="compiler"
|
||||
PACKAGE="gnu"
|
||||
VERSION="6.1.0"
|
||||
URL="http://gcc.gnu.org"
|
||||
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
|
||||
|
||||
# Archive A and package name P
|
||||
A=gcc-${VERSION}.tar.bz2
|
||||
P=gcc-${VERSION}
|
||||
|
||||
src_unpack() {
|
||||
# extract gcc source package
|
||||
unpack
|
||||
if [ $PLATFORM = "laki" ] ; then
|
||||
# Currently, older versions of GMP, MPFR and MPC are installed to avoid problems
|
||||
# http://gcc.gnu.org/install/prerequisites.html
|
||||
# unpack required GMP, MPFR and MPC sources into subdirectories
|
||||
tar xjf ${SRC_POOL}/gmp-4.3.2.tar.bz2 -C $SRCDIR
|
||||
tar xjf ${SRC_POOL}/mpfr-2.4.2.tar.bz2 -C $SRCDIR
|
||||
tar xzf ${SRC_POOL}/mpc-0.8.1.tar.gz -C $SRCDIR
|
||||
tar xjf ${SRC_POOL}/isl-0.15.tar.bz2 -C $SRCDIR
|
||||
# rename subdirectories as required by gcc's configure
|
||||
mv $SRCDIR/gmp-* $SRCDIR/gmp
|
||||
mv $SRCDIR/mpfr-* $SRCDIR/mpfr
|
||||
mv $SRCDIR/mpc-* $SRCDIR/mpc
|
||||
mv $SRCDIR/isl-* $SRCDIR/isl
|
||||
fi
|
||||
}
|
||||
|
||||
src_pretest() {
|
||||
make check
|
||||
}
|
||||
|
||||
# Other interesting configure options:
|
||||
CONFIGURE_OPTS=" \
|
||||
--enable-languages=c,c++,fortran \
|
||||
"
|
||||
|
Loading…
Reference in a new issue