Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (42 sloc) 1.784 kb
defdff2 @vog Rebrand to new project name MXE
vog authored
1 # This file is part of MXE.
7badad8 @vog Move doc/index.html -> index.html
vog authored
2 # See index.html for further information.
343b7da @vog translated package: gd
vog authored
3
6a2cab9 @vog validate downloads using SHA-1 checksums
vog authored
4 PKG := gd
f162381 @vog improved version recognition, enable the notation of ignored (bad) packa...
vog authored
5 $(PKG)_IGNORE :=
6a2cab9 @vog validate downloads using SHA-1 checksums
vog authored
6 $(PKG)_CHECKSUM := ccf34a610abff2dbf133a20c4d2a4aa94939018a
7 $(PKG)_SUBDIR := gd-$($(PKG)_VERSION)
8 $(PKG)_FILE := gd-$($(PKG)_VERSION).tar.bz2
9 $(PKG)_URL := http://www.libgd.org/releases/$($(PKG)_FILE)
6e1765e @vog improved download URLs for packages: freetds gd
vog authored
10 $(PKG)_URL_2 := http://ftp.uni-magdeburg.de/aftp/mirror/linux/slackware/source/l/gd/$($(PKG)_FILE)
b2053a8 @vog detangle package pthreads from package gcc
vog authored
11 $(PKG)_DEPS := gcc freetype libpng jpeg libxml2 pthreads
343b7da @vog translated package: gd
vog authored
12
13 define $(PKG)_UPDATE
9028089 @vog improved wording in warning messages
vog authored
14 echo 'Warning: Updates are temporarily disabled for package gd.' >&2;
e788b87 @vog disable update for package gd, because its website has been down for a l...
vog authored
15 echo $(gd_VERSION)
16 endef
17 define $(PKG)_UPDATE_orig
4ed13a9 @tonytheodore all packages: use $(WGET) portability variable
tonytheodore authored
18 $(WGET) -q -O- 'http://www.libgd.org/releases/' | \
343b7da @vog translated package: gd
vog authored
19 $(SED) -n 's,.*gd-\([0-9][^>]*\)\.tar.*,\1,p' | \
20 head -1
21 endef
22
23 define $(PKG)_BUILD
e297bf6 @vog bugfix in the build rules of packages 'gd' and 'libgeotiff'
vog authored
24 touch '$(1)/aclocal.m4'
25 touch '$(1)/config.hin'
26 touch '$(1)/Makefile.in'
e1ab446 @vog changed coding style: make "-i" always the first argument of $(SED) (by...
vog authored
27 $(SED) -i 's,-I@includedir@,-I@includedir@ -DNONDLL,' '$(1)/config/gdlib-config.in'
14f98d2 @vog bugfix: support libpng-1.4 in package gd (by Tony Theodore)
vog authored
28 $(SED) -i 's,-lX11 ,,g' '$(1)/configure'
5abd6a1 @tonytheodore package gd: libpng15 compatibility
tonytheodore authored
29 $(SED) -i 's,png12,png15,g' '$(1)/configure'
343b7da @vog translated package: gd
vog authored
30 cd '$(1)' && ./configure \
31 --host='$(TARGET)' \
32 --disable-shared \
33 --prefix='$(PREFIX)/$(TARGET)' \
34 --with-freetype='$(PREFIX)/$(TARGET)' \
35 --without-x \
36 LIBPNG_CONFIG='$(PREFIX)/$(TARGET)/bin/libpng-config' \
37 CFLAGS='-DNONDLL -DXMD_H -L$(PREFIX)/$(TARGET)/lib' \
38 LIBS="`$(PREFIX)/$(TARGET)/bin/xml2-config --libs`"
39 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
418bbeb @vog test program for package gd (by Tony Theodore)
vog authored
40
41 '$(TARGET)-gcc' \
42 -W -Wall -Werror -ansi -pedantic \
43 '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gd.exe' \
44 `'$(PREFIX)/$(TARGET)/bin/gdlib-config' --cflags` \
45 -lgd `'$(PREFIX)/$(TARGET)/bin/gdlib-config' --libs`
343b7da @vog translated package: gd
vog authored
46 endef
Something went wrong with that request. Please try again.