wok rev 4903

Add gfortran
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 12 11:12:21 2010 +0100 (2010-02-12)
parents 169dee0cf4c5
children 85210ad650ac
files gcc/receipt gfortran/receipt
line diff
     1.1 --- a/gcc/receipt	Thu Feb 11 17:28:21 2010 +0100
     1.2 +++ b/gcc/receipt	Fri Feb 12 11:12:21 2010 +0100
     1.3 @@ -21,7 +21,7 @@
     1.4      cd gcc-build
     1.5      ../$PACKAGE-$VERSION/configure --prefix=/usr --libexecdir=/usr/lib \
     1.6      --infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
     1.7 -    --enable-languages=c,c++,objc --enable-shared --with-system-zlib \
     1.8 +    --enable-languages=c,c++,objc,fortran --enable-shared --with-system-zlib \
     1.9      --enable-clocale=gnu --enable-objc-gc --enable-__cxa_atexit \
    1.10      --enable-threads=posix --with-tune=i486 i486-pc-linux-gnu &&
    1.11      make bootstrap &&
    1.12 @@ -43,6 +43,11 @@
    1.13      rm $fs/usr/lib/libgomp.so*
    1.14      # Include files.
    1.15      cp -a $_pkg/usr/include $fs/usr
    1.16 +    # Gfortran goes in gfortran-$VERSION package.
    1.17 +    rm -f $fs/usr/bin/*gfortran
    1.18 +    rm -f $fs/usr/lib/libgfortran*
    1.19 +    rm -f $fs/usr/lib/gcc/*/$VERSION/libgfortran*
    1.20 +    rm -f $fs/usr/lib/gcc/*/$VERSION/f*
    1.21  }
    1.22  
    1.23  # Post install commands for Tazpkg.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/gfortran/receipt	Fri Feb 12 11:12:21 2010 +0100
     2.3 @@ -0,0 +1,22 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="gfortran"
     2.7 +VERSION="4.4.1"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="GCC fortran extension."
    2.10 +WEB_SITE="http://gcc.gnu.org/"
    2.11 +MAINTAINER="pascal.bellard@slitaz.org"
    2.12 +DEPENDS="gcc"
    2.13 +WANTED="gcc"
    2.14 +
    2.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.16 +genpkg_rules()
    2.17 +{
    2.18 +	mkdir -p $fs/usr/lib/gcc/i486-pc-linux-gnu/$VERSION $fs/usr/bin
    2.19 +	cp -a $_pkg/usr/bin/*gfortran $fs/usr/bin
    2.20 +	cp -a $_pkg/usr/lib/libgfortran* $fs/usr/lib
    2.21 +	cp -a $_pkg/usr/lib/gcc/i486-pc-linux-gnu/$VERSION/f* \
    2.22 +		$fs/usr/lib/gcc/i486-pc-linux-gnu/$VERSION
    2.23 +	cp -a $_pkg/usr/lib/gcc/i486-pc-linux-gnu/$VERSION/libgfortran* \
    2.24 +		$fs/usr/lib/gcc/i486-pc-linux-gnu/$VERSION
    2.25 +}