annotate src/gd.mk @ 3725:2acaa9943159

qscintilla: update 2.8.4 * src/qscintilla.mk: update to version and checksum for 2.8.4
author John Donoghue
date Mon, 20 Oct 2014 11:01:00 -0400
parents 13be64f9f16d
children
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 :=
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 := 2.0.35
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_CHECKSUM := ccf34a610abff2dbf133a20c4d2a4aa94939018a
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_SUBDIR := gd-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_FILE := gd-$($(PKG)_VERSION).tar.bz2
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(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
11 $(PKG)_URL_2 := http://ftp.uni-magdeburg.de/aftp/mirror/linux/slackware/source/l/gd/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3031
diff changeset
12 $(PKG)_DEPS := freetype libpng jpeg libxml2 pthreads
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 define $(PKG)_UPDATE
1830
867b6165f31d improved wording in warning messages
Volker Grabsch <vog@notjusthosting.com>
parents: 1820
diff changeset
15 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
16 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
17 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
18 define $(PKG)_UPDATE_orig
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
19 $(WGET) -q -O- 'http://www.libgd.org/releases/' | \
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 $(SED) -n 's,.*gd-\([0-9][^>]*\)\.tar.*,\1,p' | \
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 head -1
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 endef
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 define $(PKG)_BUILD
169
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
25 touch '$(1)/aclocal.m4'
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
26 touch '$(1)/config.hin'
6337081fd7fa bugfix in the build rules of packages 'gd' and 'libgeotiff'
Volker Grabsch <vog@notjusthosting.com>
parents: 158
diff changeset
27 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
28 $(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
29 $(SED) -i 's,-lX11 ,,g' '$(1)/configure'
1620
7cc1f4c38523 package gd: libpng15 compatibility
Tony Theodore <tonyt@logyst.com>
parents: 1092
diff changeset
30 $(SED) -i 's,png12,png15,g' '$(1)/configure'
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
33 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
34 --prefix='$(HOST_PREFIX)' \
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
35 --with-freetype='$(HOST_PREFIX)' \
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --without-x \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
37 LIBPNG_CONFIG='$(HOST_BINDIR)/libpng-config' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
38 CFLAGS='-DNONDLL -DXMD_H -L$(HOST_LIBDIR)' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
39 LIBS="`$(HOST_BINDIR)/xml2-config --libs`"
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 $(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
41
3031
951da75fd09c improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
42 '$(MXE_CC)' \
1092
5e21272e05c9 test program for package gd (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 1082
diff changeset
43 -W -Wall -Werror -ansi -pedantic \
3014
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
44 '$(2).c' -o '$(HOST_BINDIR)/test-gd.exe' \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
45 `'$(HOST_BINDIR)/gdlib-config' --cflags` \
b6c7244a2f66 Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents: 3013
diff changeset
46 -lgd `'$(HOST_BINDIR)/gdlib-config' --libs`
158
1cfaf9280af6 translated package: gd
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 endef