mingw64-i686-fftw3 3.3.3
[git/cygwin-packages/mingw64-i686-fftw3.git] / mingw64-i686-fftw3.cygport
1 CROSS_HOST="i686-w64-mingw32"
2 inherit cross
3
4 NAME="mingw64-i686-fftw3"
5 VERSION=3.3.3
6 RELEASE=1
7 CATEGORY="Devel"
8 SUMMARY="Discrete Fourier transform library for Win32 toolchain"
9 DESCRIPTION="FFTW is a C subroutine library for computing the discrete Fourier
10 transform (DFT) in one or more dimensions, of arbitrary input size, and of both
11 real and complex data."
12 HOMEPAGE="http://www.fftw.org/"
13 SRC_URI="http://www.fftw.org/fftw-${VERSION}.tar.gz"
14 SRC_DIR="fftw-${VERSION}"
15 PATCH_URI="3.3.3-quad-no-undefined.patch"
16
17 precisions=(single double long-double quad-precision)
18
19 src_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
39 src_test() {
40 for prec in ${precisions[*]}
41 do
42 cd ${B}/$prec/tests
43 cygtest
44 done
45 }
46
47 src_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.035485 seconds and 5 git commands to generate.