summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2008-11-08 20:09:55 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2008-11-08 20:09:55 (GMT)
commiteee09ae1876caf4f30dd2d7886750607a39d541a (patch)
treec4ffa59c2e0c0672797a27b05e283a28fb1d9d7f
parent707caa4e1d2054d424111acb904b99936c5ef31a (diff)
downloadmxe-eee09ae1876caf4f30dd2d7886750607a39d541a.zip
mxe-eee09ae1876caf4f30dd2d7886750607a39d541a.tar.gz
mxe-eee09ae1876caf4f30dd2d7886750607a39d541a.tar.bz2
translated package: giflib
-rw-r--r--src/giflib.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/giflib.mk b/src/giflib.mk
new file mode 100644
index 0000000..93de229
--- /dev/null
+++ b/src/giflib.mk
@@ -0,0 +1,26 @@
+# giflib
+# http://sourceforge.net/projects/libungif/
+
+PKG := giflib
+$(PKG)_VERSION := 4.1.6
+$(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
+$(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/giflib/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://sourceforge.net/project/showfiles.php?group_id=102202&package_id=119585' | \
+ grep 'giflib-' | \
+ $(SED) -n 's,.*giflib-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ $(SED) 's,u_int32_t,unsigned int,' -i '$(1)/configure'
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --without-x
+ $(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
+endef