summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--base/gcc-fortran/.footprint28
-rw-r--r--base/gcc-fortran/.md5sum1
-rw-r--r--base/gcc-fortran/Pkgfile82
3 files changed, 111 insertions, 0 deletions
diff --git a/base/gcc-fortran/.footprint b/base/gcc-fortran/.footprint
new file mode 100644
index 000000000..1994cfbc3
--- /dev/null
+++ b/base/gcc-fortran/.footprint
@@ -0,0 +1,28 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/f90 -> gfortran
+lrwxrwxrwx root/root usr/bin/f95 -> gfortran
+-rwxr-xr-x root/root usr/bin/gfortran
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/gcc/
+drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/
+drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/
+-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/f951
+drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/finclude/
+-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/finclude/omp_lib.f90
+-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/finclude/omp_lib.h
+-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/finclude/omp_lib.mod
+-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/finclude/omp_lib_kinds.mod
+drwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/include-fixed/
+-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/include-fixed/limits.h
+-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/include-fixed/syslimits.h
+-rw-r--r-- root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/libgfortranbegin.a
+-rwxr-xr-x root/root usr/lib/gcc/i686-pc-linux-gnu/4.4.1/libgfortranbegin.la
+-rw-r--r-- root/root usr/lib/libgfortran.a
+-rwxr-xr-x root/root usr/lib/libgfortran.la
+lrwxrwxrwx root/root usr/lib/libgfortran.so -> libgfortran.so.3.0.0
+lrwxrwxrwx root/root usr/lib/libgfortran.so.3 -> libgfortran.so.3.0.0
+-rwxr-xr-x root/root usr/lib/libgfortran.so.3.0.0
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man1/
+-rw-r--r-- root/root usr/man/man1/gfortran.1.gz
diff --git a/base/gcc-fortran/.md5sum b/base/gcc-fortran/.md5sum
new file mode 100644
index 000000000..b8a9c76ed
--- /dev/null
+++ b/base/gcc-fortran/.md5sum
@@ -0,0 +1 @@
+927eaac3d44b22f31f9c83df82f26436 gcc-4.4.1.tar.bz2
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
+}