mingw64-i686-fftw3 3.3.3
[git/cygwin-packages/mingw64-i686-fftw3.git] / mingw64-i686-fftw3.cygport
CommitLineData
53a82d16
YS
1CROSS_HOST="i686-w64-mingw32"
2inherit cross
3
4NAME="mingw64-i686-fftw3"
5VERSION=3.3.3
6RELEASE=1
7CATEGORY="Devel"
8SUMMARY="Discrete Fourier transform library for Win32 toolchain"
9DESCRIPTION="FFTW is a C subroutine library for computing the discrete Fourier
10transform (DFT) in one or more dimensions, of arbitrary input size, and of both
11real and complex data."
12HOMEPAGE="http://www.fftw.org/"
13SRC_URI="http://www.fftw.org/fftw-${VERSION}.tar.gz"
14SRC_DIR="fftw-${VERSION}"
15PATCH_URI="3.3.3-quad-no-undefined.patch"
16
17precisions=(single double long-double quad-precision)
18
19src_compile() {
20 cd ${S}
21 cygautoreconf
22
23 for prec in ${precisions[*]}
24 do
25 case $prec in
26 quad*)
27 gcclibdir="${CC} -print-file-name=libquadmath.dll.a"
28 LDFLAGS+=" -L${gcclibdir%/*}"
29 ;;
30 esac
31
32 mkdir -p ${B}/$prec
33 cd ${B}/$prec
34 cygconf --enable-$prec --disable-threads
35 cygmake
36 done
37}
38
39src_test() {
40 for prec in ${precisions[*]}
41 do
42 cd ${B}/$prec/tests
43 cygtest
44 done
45}
46
47src_install() {
48 for prec in ${precisions[*]}
49 do
50 cd ${B}/$prec
51 cyginstall bin_PROGRAMS= bin_SCRIPTS= dist_man_MANS= INFO_DEPS=
52 done
53}
This page took 0.027488 seconds and 5 git commands to generate.