annotate src/giflib.mk @ 3561:ae4193aad5fe

revise and enable more $(PKG)_UPDATE rules
author John W. Eaton <jwe@octave.org>
date Sat, 08 Mar 2014 17:40:00 -0500
parents 13be64f9f16d
children 3688299d3f3e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 1466
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See 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
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := giflib
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 422
diff changeset
5 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3048
diff changeset
6 $(PKG)_VERSION := 5.0.2
2853
4cf24236b87b update package giflib
Mark Brand <mabrand@mabrand.nl>
parents: 2824
diff changeset
7 $(PKG)_CHECKSUM := 841da41f2e8c212555453f7af7b5aa60d7ea4be7
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_SUBDIR := giflib-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_FILE := giflib-$($(PKG)_VERSION).tar.bz2
2652
e0f82e67f477 update package giflib
Mark Brand <mabrand@mabrand.nl>
parents: 2549
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/giflib/giflib-5.x/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
11 $(PKG)_DEPS :=
151
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
3561
ae4193aad5fe revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
14 $(WGET) -q -O- 'http://sourceforge.net/projects/giflib/files/giflib-5.x/' | \
ae4193aad5fe revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
15 grep '<a href.*giflib.*bz2/download' | \
ae4193aad5fe revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
16 $(SED) -n 's,.*giflib-\([0-9][^>]*\)\.tar.*,\1,p' | \
1466
2726fbef533c improved update script of all remaining SourceForge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 1120
diff changeset
17 head -1
151
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 endef
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 define $(PKG)_BUILD
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
23 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2853
diff changeset
24 $(ENABLE_SHARED_OR_STATIC) \
1094
a4ae064a6db1 bugfix: open files in binary mode in package giflib (by Dmitry Groshev)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
25 CPPFLAGS='-D_OPEN_BINARY'
2652
e0f82e67f477 update package giflib
Mark Brand <mabrand@mabrand.nl>
parents: 2549
diff changeset
26 echo 'all:' > '$(1)/doc/Makefile'
151
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(MAKE) -C '$(1)/lib' -j '$(JOBS)' install
0f1fe7c7ab35 translated package: giflib
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 endef