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