annotate src/gd.mk @ 2525:4d0f3a9da57e

all packages: use $(WGET) portability variable
author Tony Theodore <tonyt@logyst.com>
date Wed, 09 May 2012 01:16:05 +1000
parents b5321bdec505
children 47558e958113
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: 1830
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: 306
diff changeset
3
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 PKG := gd
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
diff changeset
5 $(PKG)_IGNORE :=
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
6 $(PKG)_CHECKSUM := ccf34a610abff2dbf133a20c4d2a4aa94939018a
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_SUBDIR := gd-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_FILE := gd-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_URL := http://www.libgd.org/releases/$($(PKG)_FILE)
1758
96c2d8f2f760 improved download URLs for packages: freetds gd
Volker Grabsch <vog@notjusthosting.com>
parents: 1620
diff changeset
10 $(PKG)_URL_2 := http://ftp.uni-magdeburg.de/aftp/mirror/linux/slackware/source/l/gd/$($(PKG)_FILE)
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents: 893
diff changeset
11 $(PKG)_DEPS := gcc freetype libpng jpeg libxml2 pthreads
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
1830
867b6165f31d improved wording in warning messages
Volker Grabsch <vog@notjusthosting.com>
parents: 1820
diff changeset
14 echo 'Warning: Updates are temporarily disabled for package gd.' >&2;
1820
d65f26802c7d disable update for package gd, because its website has been down for a long time
Volker Grabsch <vog@notjusthosting.com>
parents: 1758
diff changeset
15 echo $(gd_VERSION)
d65f26802c7d disable update for package gd, because its website has been down for a long time
Volker Grabsch <vog@notjusthosting.com>
parents: 1758
diff changeset
16 endef
d65f26802c7d disable update for package gd, because its website has been down for a long time
Volker Grabsch <vog@notjusthosting.com>
parents: 1758
diff changeset
17 define $(PKG)_UPDATE_orig
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
18 $(WGET) -q -O- 'http://www.libgd.org/releases/' | \
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 $(SED) -n 's,.*gd-\([0-9][^>]*\)\.tar.*,\1,p' | \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 head -1
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 endef
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 define $(PKG)_BUILD
169
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
24 touch '$(1)/aclocal.m4'
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
25 touch '$(1)/config.hin'
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
26 touch '$(1)/Makefile.in'
759
bf4bcb3370fa changed coding style: make "-i" always the first argument of $(SED) (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 714
diff changeset
27 $(SED) -i 's,-I@includedir@,-I@includedir@ -DNONDLL,' '$(1)/config/gdlib-config.in'
1082
34f5daca82f4 bugfix: support libpng-1.4 in package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 938
diff changeset
28 $(SED) -i 's,-lX11 ,,g' '$(1)/configure'
1620
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents: 1092
diff changeset
29 $(SED) -i 's,png12,png15,g' '$(1)/configure'
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 cd '$(1)' && ./configure \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --host='$(TARGET)' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --disable-shared \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --prefix='$(PREFIX)/$(TARGET)' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --with-freetype='$(PREFIX)/$(TARGET)' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --without-x \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 LIBPNG_CONFIG='$(PREFIX)/$(TARGET)/bin/libpng-config' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 CFLAGS='-DNONDLL -DXMD_H -L$(PREFIX)/$(TARGET)/lib' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 LIBS="`$(PREFIX)/$(TARGET)/bin/xml2-config --libs`"
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
1092
5e21272e05c9 test program for package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1082
diff changeset
40
5e21272e05c9 test program for package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1082
diff changeset
41 '$(TARGET)-gcc' \
5e21272e05c9 test program for package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1082
diff changeset
42 -W -Wall -Werror -ansi -pedantic \
5e21272e05c9 test program for package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1082
diff changeset
43 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gd.exe' \
5e21272e05c9 test program for package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1082
diff changeset
44 `'$(PREFIX)/$(TARGET)/bin/gdlib-config' --cflags` \
5e21272e05c9 test program for package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1082
diff changeset
45 -lgd `'$(PREFIX)/$(TARGET)/bin/gdlib-config' --libs`
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 endef