Adding libpng-APNG (libpng with a patch for animated png support)
svn path=/nixpkgs/trunk/; revision=24167
This commit is contained in:
parent
d61a0a42ca
commit
dbca05712e
1 changed files with 32 additions and 0 deletions
32
pkgs/development/libraries/libpng/libpng-apng.nix
Normal file
32
pkgs/development/libraries/libpng/libpng-apng.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ stdenv, fetchurl, zlib }:
|
||||
|
||||
assert zlib != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "1.4.4";
|
||||
name = "libpng-${version}";
|
||||
|
||||
patch_src = fetchurl {
|
||||
url = "mirror://sourceforge/project/libpng-apng/libpng-master/${version}/libpng-${version}-apng.patch.gz";
|
||||
sha256 = "d729a2feacfd80547e06c30343d598302f4417cf2e6f649e4ee617690987bd24";
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libpng/${name}.tar.gz";
|
||||
sha256 = "d07616ba1e9c161017384feb3b576d70c160b970abfd9549ad39a622284b574a";
|
||||
};
|
||||
|
||||
preConfigure = ''
|
||||
gunzip < ${patch_src} | patch -Np1
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ zlib ];
|
||||
|
||||
passthru = { inherit zlib; };
|
||||
|
||||
meta = {
|
||||
description = "The official reference implementation for the PNG file format";
|
||||
homepage = http://www.libpng.org/pub/png/libpng.html;
|
||||
license = "free-non-copyleft"; # http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue