annotate src/giflib.mk @ 1466:2726fbef533c

improved update script of all remaining SourceForge packages
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 02 Dec 2010 20:31:45 +0100
parents 405738cf5761
children f653602a0500
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 448
diff changeset
1 # This file is part of mingw-cross-env.
714
29f1ba4559ae point consequently to "doc/index.html" instead of "doc/index.html or doc/README"
Volker Grabsch <vog@notjusthosting.com>
parents: 641
diff changeset
2 # See doc/index.html for further information.
414
d2a6561bcb6d add a copyright notice and license to each source file
Volker Grabsch <vog@notjusthosting.com>
parents: 408
diff changeset
3
151
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # giflib
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := giflib
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 422
diff changeset
6 $(PKG)_IGNORE :=
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_VERSION := 4.1.6
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_CHECKSUM := 22680f604ec92065f04caf00b1c180ba74fb8562
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
11 $(PKG)_WEBSITE := http://sourceforge.net/projects/libungif/
422
d2f5eb27e051 improved download URLs for all SourceForge packages to ensure that the selected SOURCEFORGE_MIRROR is really used
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/giflib 4.x/giflib-$($(PKG)_VERSION)/$($(PKG)_FILE)
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
13 $(PKG)_DEPS := gcc
151
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
16 wget -q -O- 'http://sourceforge.net/projects/giflib/files/giflib 4.x/' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
17 $(SED) -n 's,.*/giflib-\([0-9][^"]*\)/".*,\1,p' | \
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
18 head -1
151
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --host='$(TARGET)' \
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --disable-shared \
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
1094
a4ae064a6db1 bugfix: open files in binary mode in package giflib (by Dmitry Groshev)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
26 --without-x \
a4ae064a6db1 bugfix: open files in binary mode in package giflib (by Dmitry Groshev)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
27 CPPFLAGS='-D_OPEN_BINARY'
151
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef