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:
parent
9fc09fd4bb
commit
3f0a8494c9
@ -6,11 +6,14 @@ args : with args;
|
|||||||
sha256 = "1gr63hf5vvsg50b2xwqaxwpvs1y9g8l0sb91a38wpvr7zsbjxfg1";
|
sha256 = "1gr63hf5vvsg50b2xwqaxwpvs1y9g8l0sb91a38wpvr7zsbjxfg1";
|
||||||
};
|
};
|
||||||
buildInputs = [];
|
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;
|
in with localDefs;
|
||||||
stdenv.mkDerivation {
|
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"
|
builder = writeScript "fftw-3.1.2-builder"
|
||||||
(textClosure localDefs [doConfigure doMakeInstall doForceShare]);
|
(textClosure localDefs [doConfigure doMakeInstall doForceShare]);
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -2714,6 +2714,11 @@ let
|
|||||||
|
|
||||||
fftw = import ../development/libraries/fftw {
|
fftw = import ../development/libraries/fftw {
|
||||||
inherit fetchurl stdenv builderDefs stringsWithDeps;
|
inherit fetchurl stdenv builderDefs stringsWithDeps;
|
||||||
|
singlePrecision = false;
|
||||||
|
};
|
||||||
|
fftwSinglePrec = import ../development/libraries/fftw {
|
||||||
|
inherit fetchurl stdenv builderDefs stringsWithDeps;
|
||||||
|
singlePrecision = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fltk20 = (import ../development/libraries/fltk) {
|
fltk20 = (import ../development/libraries/fltk) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user