diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/giflib')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/giflib/4.1.nix | 20 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/giflib/default.nix | 35 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/giflib/libungif.nix | 17 |
3 files changed, 72 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/giflib/4.1.nix b/nixpkgs/pkgs/development/libraries/giflib/4.1.nix new file mode 100644 index 000000000000..954e508152c2 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/giflib/4.1.nix @@ -0,0 +1,20 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "giflib-4.1.6"; + + src = fetchurl { + url = "mirror://sourceforge/giflib/giflib-4.1.6.tar.bz2"; + sha256 = "1v9b7ywz7qg8hli0s9vv1b8q9xxb2xvqq2mg1zpr73xwqpcwxhg1"; + }; + + hardeningDisable = [ "format" ]; + + meta = with stdenv.lib; { + description = "A library for reading and writing gif images"; + branch = "4.1"; + license = licenses.mit; + platforms = platforms.unix; + }; +} + diff --git a/nixpkgs/pkgs/development/libraries/giflib/default.nix b/nixpkgs/pkgs/development/libraries/giflib/default.nix new file mode 100644 index 000000000000..e2ff96d366a2 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/giflib/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, fetchpatch, xmlto, docbook_xml_dtd_412, docbook_xsl, libxml2, fixDarwinDylibNames }: + +stdenv.mkDerivation rec { + name = "giflib-5.2.1"; + src = fetchurl { + url = "mirror://sourceforge/giflib/${name}.tar.gz"; + sha256 = "1gbrg03z1b6rlrvjyc6d41bc8j1bsr7rm8206gb1apscyii5bnii"; + }; + + 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 = "./"; + }); + + postPatch = '' + substituteInPlace Makefile \ + --replace 'PREFIX = /usr/local' 'PREFIX = ${builtins.placeholder "out"}' + ''; + + nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ]; + + buildInputs = [ xmlto docbook_xml_dtd_412 docbook_xsl libxml2 ]; + + meta = { + description = "A library for reading and writing gif images"; + platforms = stdenv.lib.platforms.unix; + license = stdenv.lib.licenses.mit; + maintainers = with stdenv.lib.maintainers; [ ]; + branch = "5.2"; + }; +} diff --git a/nixpkgs/pkgs/development/libraries/giflib/libungif.nix b/nixpkgs/pkgs/development/libraries/giflib/libungif.nix new file mode 100644 index 000000000000..30cfa0db86a6 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/giflib/libungif.nix @@ -0,0 +1,17 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation { + name = "libungif-4.1.4"; + src = fetchurl { + url = "mirror://sourceforge/giflib/libungif-4.1.4.tar.gz"; + sha256 = "5e65e1e5deacd0cde489900dbf54c6c2ee2ebc818199e720dbad685d87abda3d"; + }; + + hardeningDisable = [ "format" ]; + + meta = with stdenv.lib; { + description = "Library and utilities for processing GIFs"; + platforms = platforms.unix; + license = licenses.mit; + }; +} |