2013-04-18 19:54:23 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libpng, libtiff, lcms2, glib/*passthru only*/ }:
|
2012-10-03 16:35:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-02-12 19:41:17 +00:00
|
|
|
name = "openjpeg-1.5.1";
|
2013-02-16 17:13:05 +00:00
|
|
|
passthru = {
|
|
|
|
incDir = "openjpeg-1.5";
|
|
|
|
};
|
2010-08-09 21:59:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-10-03 16:35:30 +01:00
|
|
|
url = "http://openjpeg.googlecode.com/files/${name}.tar.gz";
|
2013-02-12 19:41:17 +00:00
|
|
|
sha256 = "13dbyf3jwr4h2dn1k11zph3jgx17z7d66xmi640mbsf8l6bk1yvc";
|
2010-08-09 21:59:38 +01:00
|
|
|
};
|
|
|
|
|
2013-04-18 19:54:23 +01:00
|
|
|
nativebuildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ libpng libtiff lcms2 ]; # in closure anyway
|
|
|
|
|
|
|
|
postInstall = glib.flattenInclude;
|
2013-02-12 20:41:09 +00:00
|
|
|
|
2010-08-09 21:59:38 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.openjpeg.org/;
|
|
|
|
description = "Open-source JPEG 2000 codec written in C language";
|
|
|
|
license = "BSD";
|
2010-09-22 19:04:47 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
2010-08-09 21:59:38 +01:00
|
|
|
};
|
|
|
|
}
|