fftw: Fix Darwin build
This commit is contained in:
parent
d201dfc94c
commit
4ca6bdfa52
@ -16,16 +16,20 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--enable-shared" "--disable-static"
|
[ "--enable-shared" "--disable-static"
|
||||||
"--enable-threads" "--enable-openmp" # very small wrappers
|
"--enable-threads"
|
||||||
]
|
]
|
||||||
++ optional (precision != "double") "--enable-${precision}"
|
++ optional (precision != "double") "--enable-${precision}"
|
||||||
# all x86_64 have sse2
|
# all x86_64 have sse2
|
||||||
++ optional stdenv.isx86_64 "--enable-sse2";
|
++ optional stdenv.isx86_64 "--enable-sse2"
|
||||||
|
++ optional (stdenv.cc.cc.isGNU or false) "--enable-openmp";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Fastest Fourier Transform in the West library";
|
description = "Fastest Fourier Transform in the West library";
|
||||||
homepage = http://www.fftw.org/;
|
homepage = http://www.fftw.org/;
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = [ maintainers.spwhitt ];
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user