diff options
author | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-31 11:05:19 +0100 |
commit | 48ca75555522716f0f686dcae3dd6cf3d8ad714d (patch) | |
tree | 00c0f58550ba4661e87376f2f02c8001c69bae44 /repo/fftw/fftw.xibuild | |
parent | 871b2b573f01c1b3176a0f65458b3d281b41c437 (diff) |
removed idea of repos
Diffstat (limited to 'repo/fftw/fftw.xibuild')
-rw-r--r-- | repo/fftw/fftw.xibuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/repo/fftw/fftw.xibuild b/repo/fftw/fftw.xibuild new file mode 100644 index 0000000..41dd124 --- /dev/null +++ b/repo/fftw/fftw.xibuild @@ -0,0 +1,54 @@ +#!/bin/sh + +NAME="fftw" +DESC="Discrete Fourier transform (DFT) library" + +MAKEDEPS="make tar" +DEPS="musl " + +PKG_VER=3.3.10 +SOURCE="http://www.fftw.org/fftw-$PKG_VER.tar.gz" +ADDITIONAL="cycle.h.patch " + +precisions="single double long-double" + +prepare () { + for i in $precisions; do + mkdir $i + tar -xf fftw-$PKG_VER.tar.gz -C $i + done +} + +build () { + local i; for i in $precisions; do + case "$i" in + single) cf="--enable-single";; + double) cf="";; + long-double) cf="--enable-long-double";; + esac + + case "$i" in + single | double) + cf="$cf --enable-sse2 --enable-avx";; + esac + + printf "Building for $i precision ($cf)" + cd $BUILD_ROOT/$i/fftw-$PKG_VER + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-shared \ + --enable-threads \ + $cf + make + done +} + +package () { + for i in $precisions; do + cd $BUILD_ROOT/$i/fftw-$PKG_VER + make DESTDIR=$PKG_DEST install + done +} |