summaryrefslogtreecommitdiffstats
path: root/extra/fftw/Pkgfile
diff options
context:
space:
mode:
authorlesibel <lesibel@free.fr>2009-11-10 14:42:25 +0100
committerlesibel <lesibel@free.fr>2009-11-10 14:42:25 +0100
commit2dcc81ec2842587618ea2b3ff2032c82af5b2cba (patch)
tree9dbe5e8e7f69f0e9c622f8477132ed8e2fa9d585 /extra/fftw/Pkgfile
parentc86499cd7176aac322a1085919c350c226fc03e2 (diff)
downloadnutyx-pakxe-2dcc81ec2842587618ea2b3ff2032c82af5b2cba.tar.gz
nutyx-pakxe-2dcc81ec2842587618ea2b3ff2032c82af5b2cba.tar.bz2
nutyx-pakxe-2dcc81ec2842587618ea2b3ff2032c82af5b2cba.tar.xz
nutyx-pakxe-2dcc81ec2842587618ea2b3ff2032c82af5b2cba.zip
Ajout de ffwt#3.2.2-1
Diffstat (limited to 'extra/fftw/Pkgfile')
-rw-r--r--extra/fftw/Pkgfile42
1 files changed, 31 insertions, 11 deletions
diff --git a/extra/fftw/Pkgfile b/extra/fftw/Pkgfile
index 73c19c947..9b29dd8dc 100644
--- a/extra/fftw/Pkgfile
+++ b/extra/fftw/Pkgfile
@@ -1,21 +1,41 @@
-# Description: Librairie C subroutine pour les transformations de Fourier
+# Description: A library for computing the discrete Fourier transform (DFT)
# URL: http://www.fftw.org/
# Maintainer: NuTyX core team
-# Packager: thierryn1 at hispeed dot ch
-# Depends on: gcc-fortran
+# Packager: lesibel at free dot fr
+# Depends on: glibc, bash
name=fftw
version=3.2.2
release=1
source=(http://www.fftw.org/$name-$version.tar.gz)
+install=fftw.install
+
+# notes:
+# http://www.fftw.org/fftw2_doc/fftw_6.html#SEC69
+# http://www.fftw.org/faq/section2.html#singleprec
+# http://www.fftw.org/fftw3_doc/Precision.html#Precision
build() {
- cd $name-$version
- ./configure F77=gfortran \
- --prefix=/usr \
- --enable-type-prefix \
- --enable-shared
- make
- make DESTDIR=$PKG install
- rm $PKG/usr/share/info/dir
+ cd $name-$version
+
+ # build & install double precision
+ ./configure F77=gfortran --prefix=/usr \
+ --enable-shared
+ make
+ make DESTDIR=$PKG install
+ make clean
+
+ # build & install long double precission
+ ./configure F77=gfortran --prefix=/usr \
+ --enable-long-double --enable-shared
+ make
+ make DESTDIR=$PKG install
+ make clean
+
+ # build + install single precision
+ ./configure F77=gfortran --prefix=/usr \
+ --enable-float --enable-shared
+ make
+ make DESTDIR=$PKG install
+ rm $PKG/usr/share/info/dir
}