forked from conda-archive/conda-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
29 lines (24 loc) · 900 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
# inspired by build script for Arch Linux fftw pacakge:
# https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/fftw
CONFIGURE="./configure --prefix=$PREFIX --enable-shared --enable-threads --disable-fortran"
# Single precision (fftw libraries have "f" suffix)
$CONFIGURE --enable-float --enable-sse --enable-avx
make
make install
# Long double precision (fftw libraries have "l" suffix)
$CONFIGURE --enable-long-double
make
make install
# Double precision (fftw libraries have no precision suffix)
$CONFIGURE --enable-sse2 --enable-avx
make
make install
# Test suite
# tests are performed during building as they are not available in the
# installed package.
# Additional tests can be run with make smallcheck and make bigcheck
cd tests && make check-local
# Additional tests can be run using the next two lines
#make smallcheck
#make bigcheck