summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2012-07-04 07:01:39 (GMT)
committerMark Brand <mabrand@mabrand.nl>2012-07-04 07:18:27 (GMT)
commit015ee5634616eb6a60d313cec0d91d21bf92883f (patch)
tree3cff1b39ef419c613e7ab57222c0e0bcc0bb2f8b
parent56e407dc48dc412dbbab58f73cd7478f96523312 (diff)
downloadmxe-015ee5634616eb6a60d313cec0d91d21bf92883f.zip
mxe-015ee5634616eb6a60d313cec0d91d21bf92883f.tar.gz
mxe-015ee5634616eb6a60d313cec0d91d21bf92883f.tar.bz2
update package giflib
-rw-r--r--index.html2
-rw-r--r--src/giflib-1-fixes.patch32
-rw-r--r--src/giflib.mk13
3 files changed, 42 insertions, 5 deletions
diff --git a/index.html b/index.html
index f9a40a6..90ebe6a 100644
--- a/index.html
+++ b/index.html
@@ -1155,7 +1155,7 @@ USE_OSGPLUGIN(&lt;plugin2&gt;)
</tr>
<tr>
<td id="giflib-package">giflib</td>
- <td id="giflib-version">4.2.0</td>
+ <td id="giflib-version">5.0.0</td>
<td id="giflib-website"><a href="http://sourceforge.net/projects/libungif/">giflib</a></td>
</tr>
<tr>
diff --git a/src/giflib-1-fixes.patch b/src/giflib-1-fixes.patch
new file mode 100644
index 0000000..506e890
--- /dev/null
+++ b/src/giflib-1-fixes.patch
@@ -0,0 +1,32 @@
+This file is part of MXE.
+See index.html for further information.
+
+From e0bcec52c73afb97b91449f1e91cd4da8bf1582f Mon Sep 17 00:00:00 2001
+From: Mark Brand <mabrand@mabrand.nl>
+Date: Wed, 4 Jul 2012 08:58:48 +0200
+Subject: [PATCH] fix dir delimiter for mingw
+
+---
+ lib/egif_lib.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/lib/egif_lib.c b/lib/egif_lib.c
+index 47be4d9..0e50b06 100644
+--- a/lib/egif_lib.c
++++ b/lib/egif_lib.c
+@@ -17,11 +17,10 @@ two modules will be linked. Preserve this property!
+
+ #ifdef _WIN32
+ #include <io.h>
+-#include <sys\stat.h>
+ #else
+ #include <sys/types.h>
+-#include <sys/stat.h>
+ #endif /* _WIN32 */
++#include <sys/stat.h>
+
+ #include "gif_lib.h"
+ #include "gif_lib_private.h"
+--
+1.7.10.4
+
diff --git a/src/giflib.mk b/src/giflib.mk
index a943965..b7f067d 100644
--- a/src/giflib.mk
+++ b/src/giflib.mk
@@ -3,15 +3,19 @@
PKG := giflib
$(PKG)_IGNORE :=
-$(PKG)_CHECKSUM := bc942711f75de7d8539f79be34d69c0d53c381c1
+$(PKG)_CHECKSUM := 0b032c2104a0956e2f91b6c11ff8c5515421cd8b
$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
-$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/giflib-4.x/$($(PKG)_FILE)
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/giflib-5.x/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
- $(WGET) -q -O- 'http://sourceforge.net/projects/giflib/files/giflib 4.x/' | \
- $(SED) -n 's,.*/giflib-\([0-9][^"]*\)/".*,\1,p' | \
+ $(WGET) -q -O- 'http://giflib.git.sourceforge.net/git/gitweb.cgi?p=giflib/giflib;a=tags' | \
+ grep '<a class="list name"' | \
+ $(SED) -n 's,.*<a[^>]*>\([0-9][^<]*\)<.*,\1,p' | \
+ grep -v alpha | \
+ grep -v beta | \
+ grep -v rc | \
head -1
endef
@@ -23,5 +27,6 @@ define $(PKG)_BUILD
--disable-shared \
--without-x \
CPPFLAGS='-D_OPEN_BINARY'
+ echo 'all:' > '$(1)/doc/Makefile'
$(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
endef