2019-09-27 18:44:32 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2 }:
|
2006-08-13 10:46:54 +01:00
|
|
|
|
2019-09-22 08:38:09 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "giflib-5.2.1";
|
2006-08-13 10:46:54 +01:00
|
|
|
src = fetchurl {
|
2019-09-22 08:38:09 +01:00
|
|
|
url = "mirror://sourceforge/giflib/${name}.tar.gz";
|
|
|
|
sha256 = "1gbrg03z1b6rlrvjyc6d41bc8j1bsr7rm8206gb1apscyii5bnii";
|
2006-08-13 10:46:54 +01:00
|
|
|
};
|
2013-12-04 14:56:05 +00:00
|
|
|
|
2019-09-27 18:44:32 +01:00
|
|
|
patches = stdenv.lib.optional stdenv.hostPlatform.isDarwin
|
|
|
|
(fetchpatch {
|
|
|
|
# https://sourceforge.net/p/giflib/bugs/133/
|
|
|
|
name = "darwin-soname.patch";
|
|
|
|
url = "https://sourceforge.net/p/giflib/bugs/_discuss/thread/4e811ad29b/c323/attachment/Makefile.patch";
|
|
|
|
sha256 = "12afkqnlkl3n1hywwgx8sqnhp3bz0c5qrwcv8j9hifw1lmfhv67r";
|
|
|
|
extraPrefix = "./";
|
|
|
|
});
|
|
|
|
|
2019-09-22 08:38:09 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace 'PREFIX = /usr/local' 'PREFIX = ${builtins.placeholder "out"}'
|
|
|
|
'';
|
|
|
|
|
2013-12-04 14:56:05 +00:00
|
|
|
buildInputs = [ xmlto docbook_xml_dtd_412 docbook_xsl libxml2 ];
|
2019-09-22 08:38:09 +01:00
|
|
|
|
2014-09-30 10:41:06 +01:00
|
|
|
meta = {
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A library for reading and writing gif images";
|
2014-09-30 10:41:06 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-09-30 11:33:52 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-09-30 10:41:06 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2019-09-22 08:38:09 +01:00
|
|
|
branch = "5.2";
|
2014-09-30 10:41:06 +01:00
|
|
|
};
|
2006-08-13 10:46:54 +01:00
|
|
|
}
|