wok diff fftw/receipt @ rev 6823

Add fftw: mv from undigest
author Rohit Joshi <jozee@slitaz.org>
date Tue Oct 19 21:04:01 2010 -0400 (2010-10-19)
parents
children db66e8b9b217
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/fftw/receipt	Tue Oct 19 21:04:01 2010 -0400
     1.3 @@ -0,0 +1,44 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="fftw"
     1.7 +VERSION="3.2.2"
     1.8 +CATEGORY="multimedia"
     1.9 +MAINTAINER="jozee@slitaz.org"
    1.10 +SHORT_DESC="A library for computing the discrete Fourier transform (DFT)"
    1.11 +BUILD_DEPENDS="gfortran"
    1.12 +WEB_SITE="http://www.fftw.org/"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WGET_URL="$WEB_SITE/$TARBALL"
    1.15 +TAGS=""
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +
    1.19 +compile_rules() {
    1.20 +  cd $src
    1.21 +  
    1.22 +  # build double precision
    1.23 +  ./configure F77=gfortran --prefix=/usr --enable-shared &&
    1.24 +  make &&
    1.25 +  make DESTDIR=$PWD/_pkg install 
    1.26 + 
    1.27 +  # build long double precission
    1.28 +  make clean
    1.29 +  ./configure F77=gfortran --prefix=/usr --enable-long-double  --enable-shared 
    1.30 +  make 
    1.31 +  make DESTDIR=$PWD/_pkg install 
    1.32 +  
    1.33 +  # build single precision
    1.34 +  make clean
    1.35 +  ./configure F77=gfortran --prefix=/usr --enable-float --enable-shared 
    1.36 +  make 
    1.37 +  make DESTDIR=$PWD/_pkg install 
    1.38 +}
    1.39 +	
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	mkdir -p $fs/usr/lib $fs/usr/share
    1.44 +	cp -a $_pkg/usr/bin $fs/usr
    1.45 +	cp -a $_pkg/usr/lib/*so* $fs/usr/lib/
    1.46 +	
    1.47 +}