summaryrefslogtreecommitdiffstats
path: root/test/fftw
diff options
context:
space:
mode:
Diffstat (limited to 'test/fftw')
-rw-r--r--test/fftw/.footprint38
-rw-r--r--test/fftw/.md5sum1
-rw-r--r--test/fftw/Pkgfile36
-rw-r--r--test/fftw/fftw.install22
4 files changed, 97 insertions, 0 deletions
diff --git a/test/fftw/.footprint b/test/fftw/.footprint
new file mode 100644
index 000000000..4d013659b
--- /dev/null
+++ b/test/fftw/.footprint
@@ -0,0 +1,38 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/fftw-wisdom
+-rwxr-xr-x root/root usr/bin/fftw-wisdom-to-conf
+-rwxr-xr-x root/root usr/bin/fftwf-wisdom
+-rwxr-xr-x root/root usr/bin/fftwl-wisdom
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/fftw3.f
+-rw-r--r-- root/root usr/include/fftw3.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libfftw3.a
+-rwxr-xr-x root/root usr/lib/libfftw3.la
+lrwxrwxrwx root/root usr/lib/libfftw3.so -> libfftw3.so.3.2.4
+lrwxrwxrwx root/root usr/lib/libfftw3.so.3 -> libfftw3.so.3.2.4
+-rwxr-xr-x root/root usr/lib/libfftw3.so.3.2.4
+-rw-r--r-- root/root usr/lib/libfftw3f.a
+-rwxr-xr-x root/root usr/lib/libfftw3f.la
+lrwxrwxrwx root/root usr/lib/libfftw3f.so -> libfftw3f.so.3.2.4
+lrwxrwxrwx root/root usr/lib/libfftw3f.so.3 -> libfftw3f.so.3.2.4
+-rwxr-xr-x root/root usr/lib/libfftw3f.so.3.2.4
+-rw-r--r-- root/root usr/lib/libfftw3l.a
+-rwxr-xr-x root/root usr/lib/libfftw3l.la
+lrwxrwxrwx root/root usr/lib/libfftw3l.so -> libfftw3l.so.3.2.4
+lrwxrwxrwx root/root usr/lib/libfftw3l.so.3 -> libfftw3l.so.3.2.4
+-rwxr-xr-x root/root usr/lib/libfftw3l.so.3.2.4
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/fftw3.pc
+-rw-r--r-- root/root usr/lib/pkgconfig/fftw3f.pc
+-rw-r--r-- root/root usr/lib/pkgconfig/fftw3l.pc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/info/
+-rw-r--r-- root/root usr/share/info/fftw3.info.gz
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/fftw-wisdom-to-conf.1.gz
+-rw-r--r-- root/root usr/share/man/man1/fftw-wisdom.1.gz
+-rw-r--r-- root/root usr/share/man/man1/fftwf-wisdom.1.gz
+-rw-r--r-- root/root usr/share/man/man1/fftwl-wisdom.1.gz
diff --git a/test/fftw/.md5sum b/test/fftw/.md5sum
new file mode 100644
index 000000000..798bd7c7f
--- /dev/null
+++ b/test/fftw/.md5sum
@@ -0,0 +1 @@
+b616e5c91218cc778b5aa735fefb61ae fftw-3.2.2.tar.gz
diff --git a/test/fftw/Pkgfile b/test/fftw/Pkgfile
new file mode 100644
index 000000000..b3012f061
--- /dev/null
+++ b/test/fftw/Pkgfile
@@ -0,0 +1,36 @@
+# Description: A library for computing the discrete Fourier transform (DFT)
+# URL: http://www.fftw.org/
+# Maintainer: NuTyX core team
+# Packager: lesibel at free dot fr
+# Depends on:
+
+name=fftw
+version=3.2.2
+release=1
+source=(http://www.fftw.org/$name-$version.tar.gz)
+
+
+build() {
+ 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
+}
diff --git a/test/fftw/fftw.install b/test/fftw/fftw.install
new file mode 100644
index 000000000..a3748aae1
--- /dev/null
+++ b/test/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
+}
+
+
+
+