package/giflib: New package
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 26 Jan 2015 19:24:16 +0000 (20:24 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 27 Jan 2015 15:01:14 +0000 (16:01 +0100)
This package will replace libungif.

Needed for Kodi 15.0, TexturePacker depends on giflib >= 5.0.5
https://github.com/xbmc/xbmc/blob/master/tools/depends/native/TexturePacker/src/configure.ac#L29

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/Config.in
package/giflib/Config.in [new file with mode: 0644]
package/giflib/giflib.hash [new file with mode: 0644]
package/giflib/giflib.mk [new file with mode: 0644]

index 51d4c152faae597811649c08ac3d0ebc3021267e..352d73aab4a99a3e356a02b5d8911edc74abb7ab 100644 (file)
@@ -664,6 +664,7 @@ menu "Graphics"
        source "package/gd/Config.in"
        source "package/gdk-pixbuf/Config.in"
        source "package/giblib/Config.in"
+       source "package/giflib/Config.in"
        source "package/gtk2-engines/Config.in"
        source "package/gtk2-themes/Config.in"
        source "package/harfbuzz/Config.in"
diff --git a/package/giflib/Config.in b/package/giflib/Config.in
new file mode 100644 (file)
index 0000000..70368dc
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_GIFLIB
+       bool "giflib"
+       help
+         giflib is a library for reading and writing gif images. It is API and
+         ABI compatible with libungif which was in wide use while the LZW
+         compression algorithm was patented.
+
+         http://sourceforge.net/projects/giflib
diff --git a/package/giflib/giflib.hash b/package/giflib/giflib.hash
new file mode 100644 (file)
index 0000000..46ba7ca
--- /dev/null
@@ -0,0 +1,2 @@
+# From http://sourceforge.net/projects/giflib/files
+sha1   e5d716e0ccef671103c38c25693927e413fac639        giflib-5.1.1.tar.bz2
diff --git a/package/giflib/giflib.mk b/package/giflib/giflib.mk
new file mode 100644 (file)
index 0000000..96a1dfd
--- /dev/null
@@ -0,0 +1,28 @@
+################################################################################
+#
+# giflib
+#
+################################################################################
+
+GIFLIB_VERSION = 5.1.1
+GIFLIB_SOURCE = giflib-$(GIFLIB_VERSION).tar.bz2
+GIFLIB_SITE = http://downloads.sourceforge.net/project/giflib
+GIFLIB_INSTALL_STAGING = YES
+GIFLIB_LICENSE = MIT
+GIFLIB_LICENSE_FILES = COPYING
+
+GIFLIB_BINS = \
+       gif2epsn gif2ps gif2rgb gif2x11 gifasm gifbg gifbuild gifburst gifclip \
+       gifclrmp gifcolor gifcomb gifcompose gifecho giffiltr giffix gifflip  \
+       gifhisto gifinfo gifinter gifinto gifovly gifpos gifrotat     \
+       gifrsize gifspnge giftext giftool gifwedge icon2gif raw2gif rgb2gif \
+       text2gif
+
+define GIFLIB_BINS_CLEANUP
+       rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(GIFLIB_BINS))
+endef
+
+GIFLIB_POST_INSTALL_TARGET_HOOKS += GIFLIB_BINS_CLEANUP
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))