annotate src/gd.mk @ 1082:34f5daca82f4

bugfix: support libpng-1.4 in package gd (by Tony Theodore)
author Volker Grabsch <vog@notjusthosting.com>
date Fri, 16 Jul 2010 15:09:33 +0200
parents 795dbc19e055
children 5e21272e05c9
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: 306
diff changeset
3
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # GD (without support for xpm)
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 PKG := gd
448
e9afec55fd6b improved version recognition, enable the notation of ignored (bad) package versions
Volker Grabsch <vog@notjusthosting.com>
parents: 417
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 := 2.0.35
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_CHECKSUM := ccf34a610abff2dbf133a20c4d2a4aa94939018a
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_SUBDIR := gd-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_FILE := gd-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
11 $(PKG)_WEBSITE := http://www.libgd.org/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
12 $(PKG)_URL := http://www.libgd.org/releases/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
13 $(PKG)_URL_2 := http://www.libgd.org/releases/oldreleases/$($(PKG)_FILE)
938
795dbc19e055 detangle package pthreads from package gcc
Volker Grabsch <vog@notjusthosting.com>
parents: 893
diff changeset
14 $(PKG)_DEPS := gcc freetype libpng jpeg libxml2 pthreads
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 define $(PKG)_UPDATE
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 wget -q -O- 'http://www.libgd.org/releases/' | \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*gd-\([0-9][^>]*\)\.tar.*,\1,p' | \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 head -1
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 endef
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_BUILD
169
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
23 touch '$(1)/aclocal.m4'
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
24 touch '$(1)/config.hin'
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
25 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
26 $(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
27 $(SED) -i 's,-lX11 ,,g' '$(1)/configure'
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,png12,png14,g' '$(1)/configure'
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 cd '$(1)' && ./configure \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --host='$(TARGET)' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --disable-shared \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --prefix='$(PREFIX)/$(TARGET)' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --with-freetype='$(PREFIX)/$(TARGET)' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --without-x \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 LIBPNG_CONFIG='$(PREFIX)/$(TARGET)/bin/libpng-config' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 CFLAGS='-DNONDLL -DXMD_H -L$(PREFIX)/$(TARGET)/lib' \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 LIBS="`$(PREFIX)/$(TARGET)/bin/xml2-config --libs`"
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 endef