2015-07-30 14:47:50 +03:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
2012-01-08 23:50:06 +04:00
|
|
|
|
2014-03-12 09:34:42 +04:00
|
|
|
assert !(stdenv ? cross) -> zlib != null;
|
2012-01-08 23:50:06 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-12-30 13:40:44 +03:00
|
|
|
name = "libpng-1.2.55";
|
2012-01-08 23:50:06 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/libpng/${name}.tar.xz";
|
2015-12-30 13:40:44 +03:00
|
|
|
sha256 = "0zkra0b9lrpk2axassdgkqinmc2ba6b473sm52xbpyknaqs2fljy";
|
2012-01-08 23:50:06 +04:00
|
|
|
};
|
|
|
|
|
2015-10-18 00:16:42 +03:00
|
|
|
outputs = [ "dev" "out" "man" ];
|
|
|
|
|
2012-01-08 23:50:06 +04:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
|
|
|
|
|
|
|
passthru = { inherit zlib; };
|
|
|
|
|
2014-03-12 09:34:42 +04:00
|
|
|
crossAttrs = stdenv.lib.optionalAttrs (stdenv.cross.libc == "libSystem") {
|
|
|
|
propagatedBuildInputs = [];
|
|
|
|
passthru = {};
|
|
|
|
};
|
|
|
|
|
2014-04-01 03:37:10 +04:00
|
|
|
configureFlags = "--enable-static";
|
|
|
|
|
2015-10-18 00:16:42 +03:00
|
|
|
postInstall = ''mv "$out/bin" "$dev/bin"'';
|
|
|
|
|
2015-11-17 14:56:08 +03:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-08 23:50:06 +04:00
|
|
|
description = "The official reference implementation for the PNG file format";
|
|
|
|
homepage = http://www.libpng.org/pub/png/libpng.html;
|
2015-11-17 14:56:08 +03:00
|
|
|
license = licenses.libpng;
|
|
|
|
maintainers = [ maintainers.fuuzetsu ];
|
2014-09-30 13:07:09 +04:00
|
|
|
branch = "1.2";
|
2012-01-08 23:50:06 +04:00
|
|
|
};
|
|
|
|
}
|