summaryrefslogtreecommitdiffstats
path: root/base/gcc-fortran/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-09 12:45:59 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-09 12:45:59 +0200
commiteb9eb0df47d0166f87cb94868a11b4e6e89c0b92 (patch)
tree78b4e8a5eb211c77aa6540887dd4cc77ed8878f2 /base/gcc-fortran/Pkgfile
parent358e2f998187e43817a927608e407851afc5e6fd (diff)
downloadnutyx-extra-eb9eb0df47d0166f87cb94868a11b4e6e89c0b92.tar.gz
nutyx-extra-eb9eb0df47d0166f87cb94868a11b4e6e89c0b92.tar.bz2
nutyx-extra-eb9eb0df47d0166f87cb94868a11b4e6e89c0b92.tar.xz
nutyx-extra-eb9eb0df47d0166f87cb94868a11b4e6e89c0b92.zip
Ajout de gcc-fortran#4.4.1-1
Diffstat (limited to 'base/gcc-fortran/Pkgfile')
-rw-r--r--base/gcc-fortran/Pkgfile82
1 files changed, 82 insertions, 0 deletions
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
+}