2013-08-31 19:05:11 +04:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libpng, libtiff, lcms, cmake, glib/*passthru only*/ }:
|
2012-10-03 19:35:30 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-08-31 19:05:11 +04:00
|
|
|
name = "openjpeg-2.0.0";
|
2013-02-16 21:13:05 +04:00
|
|
|
passthru = {
|
2013-08-31 19:05:11 +04:00
|
|
|
incDir = "openjpeg-2.0";
|
2013-02-16 21:13:05 +04:00
|
|
|
};
|
2010-08-10 00:59:38 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-10-03 19:35:30 +04:00
|
|
|
url = "http://openjpeg.googlecode.com/files/${name}.tar.gz";
|
2013-08-31 19:05:11 +04:00
|
|
|
sha1 = "0af78ab2283b43421458f80373422d8029a9f7a7";
|
2010-08-10 00:59:38 +04:00
|
|
|
};
|
|
|
|
|
2013-08-31 19:05:11 +04:00
|
|
|
buildInputs = [ cmake ];
|
2013-04-18 22:54:23 +04:00
|
|
|
nativebuildInputs = [ pkgconfig ];
|
2013-06-29 18:07:15 +04:00
|
|
|
propagatedBuildInputs = [ libpng libtiff lcms ]; # in closure anyway
|
2013-04-18 22:54:23 +04:00
|
|
|
|
|
|
|
postInstall = glib.flattenInclude;
|
2013-02-13 00:41:09 +04:00
|
|
|
|
2010-08-10 00:59:38 +04:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.openjpeg.org/;
|
|
|
|
description = "Open-source JPEG 2000 codec written in C language";
|
|
|
|
license = "BSD";
|
2010-09-22 22:04:47 +04:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-08-10 00:59:38 +04:00
|
|
|
};
|
|
|
|
}
|