Mercurial > mxe-octave
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 |
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 | 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 | 15 |
16 define $(PKG)_UPDATE | |
17 wget -q -O- 'http://www.libgd.org/releases/' | \ | |
18 $(SED) -n 's,.*gd-\([0-9][^>]*\)\.tar.*,\1,p' | \ | |
19 head -1 | |
20 endef | |
21 | |
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 | 29 cd '$(1)' && ./configure \ |
30 --host='$(TARGET)' \ | |
31 --disable-shared \ | |
32 --prefix='$(PREFIX)/$(TARGET)' \ | |
33 --with-freetype='$(PREFIX)/$(TARGET)' \ | |
34 --without-x \ | |
35 LIBPNG_CONFIG='$(PREFIX)/$(TARGET)/bin/libpng-config' \ | |
36 CFLAGS='-DNONDLL -DXMD_H -L$(PREFIX)/$(TARGET)/lib' \ | |
37 LIBS="`$(PREFIX)/$(TARGET)/bin/xml2-config --libs`" | |
38 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= | |
39 endef |