From eb9eb0df47d0166f87cb94868a11b4e6e89c0b92 Mon Sep 17 00:00:00 2001 From: Thierry N Date: Sun, 9 Aug 2009 12:45:59 +0200 Subject: Ajout de gcc-fortran#4.4.1-1 --- base/gcc-fortran/Pkgfile | 82 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 base/gcc-fortran/Pkgfile (limited to 'base/gcc-fortran/Pkgfile') diff --git a/base/gcc-fortran/Pkgfile b/base/gcc-fortran/Pkgfile new file mode 100644 index 000000000..6be9d8a74 --- /dev/null +++ b/base/gcc-fortran/Pkgfile @@ -0,0 +1,82 @@ +# Description: Le compilateur Fortran GNU +# URL: http://gcc.gnu.org +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: mpfr + +name=gcc-fortran +version=4.4.1 +release=1 +source=(http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2) + +build() { + cd gcc-$version + # Don't install libiberty + sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in + # Don't run fixincludes + sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in + mkdir ../gcc-build + cd ../gcc-build + ../gcc-$version/configure \ + --prefix=/usr \ + --libexecdir=/usr/lib \ + --enable-languages=f95 \ + --enable-threads=posix \ + --enable-__cxa_atexit \ + --enable-clocale=gnu \ + --enable-shared \ + --disable-nls \ + --with-x=no + + make -j3 bootstrap + #make check + make -j3 DESTDIR=$PKG install + + ln -fs gfortran $PKG/usr/bin/f90 + ln -fs gfortran $PKG/usr/bin/f95 + + # remove un-needed files + find $PKG -name 'README' -delete + + rm \ + $PKG/usr/bin/*-linux-gnu-* \ + $PKG/usr/man/man1/{cpp,gcc,gcov}.1 + + rm -r \ + $PKG/usr/info \ + $PKG/usr/man/man7 \ + $PKG/usr/lib/gcc/*/$version/install-tools \ + $PKG/usr/lib/gcc/*/$version/include + + # remove files already on the system out of the port + for i in $(pkginfo -l gcc |sed -e "s|^|/|"); do + if [ -e "$i" ] && [ ! -d "$i" ]; then + if [ -e "$PKG$i" ]; then + rm "$PKG$i" + fi + fi + done + + # Remove empty directories + find $PKG -depth -empty -exec rm -r {} \; + + # remove build paths from *.la files + for i in `find $PKG -name '*.la' | sed -e "s|$PKG|/|"`; do + sed -i "s|-L$SRC[^ ]* ||g" $PKG/$i + done +# for i in $PKG/usr/lib/libssp* +# do rm $i +# done +# for i in $PKG/usr/lib/libmudflap* + # do rm $i + # done + # for i in $PKG/usr/lib/libgomp* + # do rm $i + # done +# rm $PKG/usr/lib/libgcc_s.so +# rm $PKG/usr/lib/libgcc_s.so.1 +# for i in cc1 collect2 crtbegin.o crtbeginS.o \ +# crtbeginT.o crtend.o crtendS.o crtfastmath.o libgcc.a libgcc_eh.a libgcov.a +# do rm $PKG/usr/lib/gcc/i686-pc-linux-gnu/$version/$i +# done +} -- cgit v1.2.3-70-g09d2