2012-02-02 20:30:55 +00:00
|
|
|
{ stdenv, fetchurl, libjpeg, libpng, libmng, lcms1, libtiff, openexr, mesa
|
|
|
|
, libX11, pkgconfig }:
|
|
|
|
|
2010-11-13 07:47:04 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name ="libdevil-${version}";
|
|
|
|
version = "1.7.8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/openil/DevIL-${version}.tar.gz";
|
|
|
|
sha256 = "1zd850nn7nvkkhasrv7kn17kzgslr5ry933v6db62s4lr0zzlbv8";
|
|
|
|
};
|
|
|
|
|
2012-02-02 20:30:55 +00:00
|
|
|
buildInputs = [ libjpeg libpng libmng lcms1 libtiff openexr mesa libX11 ];
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-02-02 20:30:55 +00:00
|
|
|
|
2010-11-13 07:47:04 +00:00
|
|
|
configureFlags = [ "--enable-ILU" "--enable-ILUT" ];
|
|
|
|
|
2012-02-02 20:30:55 +00:00
|
|
|
patches =
|
|
|
|
[ ( fetchurl {
|
|
|
|
url = http://patch-tracker.debian.org/patch/series/dl/devil/1.7.8-6.1/03_CVE-2009-3994.diff;
|
|
|
|
sha256 = "0qkx2qfv02igbrmsn6z5a3lbrbwjfh3rb0c2sj54wy0j1f775hbc";
|
|
|
|
} )
|
|
|
|
./ftbfs-libpng15.patch
|
|
|
|
];
|
|
|
|
|
2010-11-13 07:47:04 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://openil.sourceforge.net/;
|
2012-02-02 20:30:55 +00:00
|
|
|
description = "An image library which can can load, save, convert, manipulate, filter and display a wide variety of image formats";
|
2010-11-13 07:47:04 +00:00
|
|
|
license = licenses.lgpl2;
|
2013-10-07 15:36:47 +00:00
|
|
|
platforms = platforms.mesaPlatforms;
|
2012-02-02 20:30:55 +00:00
|
|
|
maintainers = [ maintainers.phreedom maintainers.urkud ];
|
2010-11-13 07:47:04 +00:00
|
|
|
};
|
2012-02-02 20:30:55 +00:00
|
|
|
}
|