summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/fftw
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-02-14 11:07:02 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-02-14 11:07:02 (GMT)
commita1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7 (patch)
tree2b288f8bdeb41a2ce218a536a13efbcb8db30d00 /abs/extra-testing/fftw
parent9e3255d1a99f826d856061c25715d5341c28a119 (diff)
downloadlinhes_pkgbuild-a1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7.zip
linhes_pkgbuild-a1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7.tar.gz
linhes_pkgbuild-a1f1b06ebbe1fa0c63f21480ea5504e6f4dbebd7.tar.bz2
For volume leveling.
Diffstat (limited to 'abs/extra-testing/fftw')
-rw-r--r--abs/extra-testing/fftw/PKGBUILD48
-rw-r--r--abs/extra-testing/fftw/fftw.install22
2 files changed, 70 insertions, 0 deletions
diff --git a/abs/extra-testing/fftw/PKGBUILD b/abs/extra-testing/fftw/PKGBUILD
new file mode 100644
index 0000000..1556108
--- /dev/null
+++ b/abs/extra-testing/fftw/PKGBUILD
@@ -0,0 +1,48 @@
+# $Id: PKGBUILD 20304 2008-12-02 10:48:00Z ronald $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: damir <damir@archlinux.org>
+
+pkgname=fftw
+pkgver=3.2
+pkgrel=1
+pkgdesc="A library for computing the discrete Fourier transform (DFT)"
+arch=('i686' 'x86_64')
+license=('GPL2')
+url="http://www.fftw.org/"
+depends=('glibc')
+options=(!libtool)
+source=(http://www.fftw.org/${pkgname}-${pkgver}.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 ${srcdir}/${pkgname}-${pkgver}
+
+ # build & install double precision
+ ./configure F77=gfortran --prefix=/usr \
+ --enable-shared || return 1
+ make || return 1
+ make DESTDIR=${pkgdir} install || return 1
+ make clean
+
+ # build & install long double precission
+ ./configure F77=gfortran --prefix=/usr \
+ --enable-long-double --enable-shared || return 1
+ make || return 1
+ make DESTDIR=${pkgdir} install || return 1
+ make clean
+
+ # build + install single precision
+ ./configure F77=gfortran --prefix=/usr \
+ --enable-float --enable-shared || return 1
+ make || return 1
+ make DESTDIR=${pkgdir} install || return 1
+
+ # handle info files
+ rm -f $pkgdir/usr/share/info/dir
+ gzip $pkgdir/usr/share/info/*
+}
diff --git a/abs/extra-testing/fftw/fftw.install b/abs/extra-testing/fftw/fftw.install
new file mode 100644
index 0000000..a3748aa
--- /dev/null
+++ b/abs/extra-testing/fftw/fftw.install
@@ -0,0 +1,22 @@
+info_dir=/usr/share/info
+info_files=(fftw3.info)
+
+post_install() {
+ for f in ${info_files[@]}; do
+ install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+ install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+
+
+