mingw64-i686-fftw3 3.3.5
[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.5
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="
16 3.3.4-no-undefined.patch
17 3.3.4-internal-dllexport.patch
18 "
19
20 precisions=(single double long-double quad-precision)
21
22 src_compile() {
23 cd ${S}
24 cygautoreconf
25
26 for prec in ${precisions[*]}
27 do
28 case $prec in
29 quad*)
30 gcclibdir=$(${CC} -print-file-name=libquadmath.dll.a)
31 LDFLAGS+=" -L${gcclibdir%/*}"
32 ;;
33 esac
34
35 mkdir -p ${B}/$prec
36 cd ${B}/$prec
37 cygconf --enable-$prec --enable-threads --enable-openmp
38 cygmake
39 done
40 }
41
42 src_test() {
43 for prec in ${precisions[*]}
44 do
45 cd ${B}/$prec/tests
46 cygtest
47 done
48 }
49
50 src_install() {
51 for prec in ${precisions[*]}
52 do
53 cd ${B}/$prec
54 cyginstall bin_PROGRAMS= bin_SCRIPTS= dist_man_MANS= INFO_DEPS=
55 done
56 }
This page took 0.037882 seconds and 6 git commands to generate.