2007-10-29 10:52:04 +00:00
|
|
|
args : with args;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-10-29 10:52:04 +00:00
|
|
|
src =
|
|
|
|
fetchurl {
|
|
|
|
url = ftp://ftp.fftw.org/pub/fftw/fftw-3.1.2.tar.gz;
|
|
|
|
sha256 = "1gr63hf5vvsg50b2xwqaxwpvs1y9g8l0sb91a38wpvr7zsbjxfg1";
|
|
|
|
};
|
|
|
|
buildInputs = [];
|
2008-10-14 13:59:56 +00:00
|
|
|
configureFlags = ["--enable-shared"]
|
|
|
|
++ (if args.singlePrecision then [ /*"--enable-single" */] else ["--enable-float"]);
|
|
|
|
# some distros seem to be shipping both versions within the same package?
|
|
|
|
# why does --enable-single still result in ..3f.so instead of ..3.so?
|
2008-08-19 05:54:09 +00:00
|
|
|
};
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2007-10-29 10:52:04 +00:00
|
|
|
stdenv.mkDerivation {
|
2008-10-14 13:59:56 +00:00
|
|
|
name = "fftw-3.1.2" + ( if args.singlePrecision then "-single" else "-float" );
|
2007-10-29 10:52:04 +00:00
|
|
|
builder = writeScript "fftw-3.1.2-builder"
|
2008-01-18 12:36:56 +00:00
|
|
|
(textClosure localDefs [doConfigure doMakeInstall doForceShare]);
|
2007-10-29 10:52:04 +00:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Fastest Fourier Transform in the West library.
|
|
|
|
";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2007-10-29 10:52:04 +00:00
|
|
|
};
|
|
|
|
}
|