Mercurial > mxe-octave
comparison src/giflib.mk @ 2652:e0f82e67f477
update package giflib
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Wed, 04 Jul 2012 09:01:39 +0200 |
parents | f79b2ad2be45 |
children | 4e9d21c0ac50 |
comparison
equal
deleted
inserted
replaced
2651:48dde24b85b1 | 2652:e0f82e67f477 |
---|---|
1 # This file is part of MXE. | 1 # This file is part of MXE. |
2 # See index.html for further information. | 2 # See index.html for further information. |
3 | 3 |
4 PKG := giflib | 4 PKG := giflib |
5 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
6 $(PKG)_CHECKSUM := bc942711f75de7d8539f79be34d69c0d53c381c1 | 6 $(PKG)_CHECKSUM := 0b032c2104a0956e2f91b6c11ff8c5515421cd8b |
7 $(PKG)_SUBDIR := giflib-$($(PKG)_VERSION) | 7 $(PKG)_SUBDIR := giflib-$($(PKG)_VERSION) |
8 $(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2 | 8 $(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2 |
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/giflib-4.x/$($(PKG)_FILE) | 9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/giflib-5.x/$($(PKG)_FILE) |
10 $(PKG)_DEPS := gcc | 10 $(PKG)_DEPS := gcc |
11 | 11 |
12 define $(PKG)_UPDATE | 12 define $(PKG)_UPDATE |
13 $(WGET) -q -O- 'http://sourceforge.net/projects/giflib/files/giflib 4.x/' | \ | 13 $(WGET) -q -O- 'http://giflib.git.sourceforge.net/git/gitweb.cgi?p=giflib/giflib;a=tags' | \ |
14 $(SED) -n 's,.*/giflib-\([0-9][^"]*\)/".*,\1,p' | \ | 14 grep '<a class="list name"' | \ |
15 $(SED) -n 's,.*<a[^>]*>\([0-9][^<]*\)<.*,\1,p' | \ | |
16 grep -v alpha | \ | |
17 grep -v beta | \ | |
18 grep -v rc | \ | |
15 head -1 | 19 head -1 |
16 endef | 20 endef |
17 | 21 |
18 define $(PKG)_BUILD | 22 define $(PKG)_BUILD |
19 cd '$(1)' && ./configure \ | 23 cd '$(1)' && ./configure \ |
21 --build="`config.guess`" \ | 25 --build="`config.guess`" \ |
22 --prefix='$(PREFIX)/$(TARGET)' \ | 26 --prefix='$(PREFIX)/$(TARGET)' \ |
23 --disable-shared \ | 27 --disable-shared \ |
24 --without-x \ | 28 --without-x \ |
25 CPPFLAGS='-D_OPEN_BINARY' | 29 CPPFLAGS='-D_OPEN_BINARY' |
30 echo 'all:' > '$(1)/doc/Makefile' | |
26 $(MAKE) -C '$(1)/lib' -j '$(JOBS)' install | 31 $(MAKE) -C '$(1)/lib' -j '$(JOBS)' install |
27 endef | 32 endef |