2007-10-29 11:52:04 +01:00
|
|
|
args : with args;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-10-29 11:52:04 +01:00
|
|
|
src =
|
|
|
|
fetchurl {
|
2009-04-05 23:41:13 +02:00
|
|
|
url = ftp://ftp.fftw.org/pub/fftw/fftw-3.2.1.tar.gz;
|
|
|
|
sha256 = "1x8jww3vflrgzjrpnnsk0020bkd9aqmfga8y31v10cqd02l46sh7";
|
2007-10-29 11:52:04 +01:00
|
|
|
};
|
|
|
|
buildInputs = [];
|
2008-10-14 15:59:56 +02: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 07:54:09 +02:00
|
|
|
};
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2007-10-29 11:52:04 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-04-05 23:41:13 +02:00
|
|
|
name = "fftw-3.2.1" + ( if args.singlePrecision then "-single" else "-float" );
|
|
|
|
builder = writeScript "fftw-3.2.1-builder"
|
2008-01-18 13:36:56 +01:00
|
|
|
(textClosure localDefs [doConfigure doMakeInstall doForceShare]);
|
2007-10-29 11:52:04 +01:00
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "Fastest Fourier Transform in the West library";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2007-10-29 11:52:04 +01:00
|
|
|
};
|
|
|
|
}
|