2007-10-12 21:33:03 +01:00
|
|
|
args: with args;
|
2005-11-12 22:04:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-12-05 21:25:47 +00:00
|
|
|
inherit version;
|
|
|
|
name = "openexr-${version}";
|
2005-11-12 22:04:57 +00:00
|
|
|
src = fetchurl {
|
2007-12-05 21:25:47 +00:00
|
|
|
url = "http://download.savannah.nongnu.org/releases/openexr/openexr-${version}.tar.gz";
|
|
|
|
sha256 = if (version == "1.6.1") then "0l2rdbx9lg4qk2ms98hwbsnzpggdrx3pbjl6pcvrrpjqp5m905n6"
|
|
|
|
else if (version == "1.4.0") then "1y3dxakpg9651dgbj2xp6r4044b5gi74g23w3sr5cs6xi7cywv7m"
|
|
|
|
else abort "not supported version";
|
2005-11-12 22:04:57 +00:00
|
|
|
};
|
2007-12-05 21:25:47 +00:00
|
|
|
buildInputs = [pkgconfig zlib] ++ (lib.optional (args ? ctl) (args.ctl));
|
2007-10-12 21:33:03 +01:00
|
|
|
propagatedBuildInputs = [pkgconfig zlib ilmbase];
|
2009-04-22 00:18:09 +01:00
|
|
|
configureFlags = "--enable-imfexamples";
|
2009-05-06 17:06:36 +01:00
|
|
|
patches = [ ./stringh.patch ];
|
2005-11-12 22:04:57 +00:00
|
|
|
}
|