fftw also with single support now, new name suffix indecating which one is used

svn path=/nixpkgs/trunk/; revision=13064
This commit is contained in:
Marc Weber 2008-10-14 13:59:56 +00:00
parent 9fc09fd4bb
commit 3f0a8494c9
2 changed files with 10 additions and 2 deletions

View File

@ -6,11 +6,14 @@ args : with args;
sha256 = "1gr63hf5vvsg50b2xwqaxwpvs1y9g8l0sb91a38wpvr7zsbjxfg1";
};
buildInputs = [];
configureFlags = ["--enable-float --enable-shared"];
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?
};
in with localDefs;
stdenv.mkDerivation {
name = "fftw-3.1.2";
name = "fftw-3.1.2" + ( if args.singlePrecision then "-single" else "-float" );
builder = writeScript "fftw-3.1.2-builder"
(textClosure localDefs [doConfigure doMakeInstall doForceShare]);
meta = {

View File

@ -2714,6 +2714,11 @@ let
fftw = import ../development/libraries/fftw {
inherit fetchurl stdenv builderDefs stringsWithDeps;
singlePrecision = false;
};
fftwSinglePrec = import ../development/libraries/fftw {
inherit fetchurl stdenv builderDefs stringsWithDeps;
singlePrecision = true;
};
fltk20 = (import ../development/libraries/fltk) {