From 02bbddf2abebc539a5ade56def162989501798a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=BCnde=20Erdei?= Date: Mon, 16 Nov 2015 10:13:34 +0000 Subject: [PATCH] Sit class file for GCC 4.9.2 --- packages/compiler/gcc/gcc-4.9.2 | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 packages/compiler/gcc/gcc-4.9.2 diff --git a/packages/compiler/gcc/gcc-4.9.2 b/packages/compiler/gcc/gcc-4.9.2 new file mode 100755 index 0000000..e2e321c --- /dev/null +++ b/packages/compiler/gcc/gcc-4.9.2 @@ -0,0 +1,49 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2013 +# +# sit command: +# PREFIX_BASE=/opt ./sit compiler/gcc/gcc-4.9.1 + +# NOTE FOR NEXT VERSION: use unsupported module autogen (instead of installing myself)! + +CATEGORY="compiler" +PACKAGE="gnu" +VERSION="4.9.2" +URL="http://gcc.gnu.org" +INSTALLER="Tünde Erdei " + +# 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.12.2.tar.bz2 -C $SRCDIR + tar xzf ${SRC_POOL}/cloog-0.18.1.tar.gz -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 + mv $SRCDIR/cloog-* $SRCDIR/cloog + fi +} + +src_pretest() { + make check +} + +# Other interesting configure options: +CONFIGURE_OPTS=" \ + --enable-languages=c,c++,fortran \ + "