annotate src/imagemagick.mk @ 3561:ae4193aad5fe

revise and enable more $(PKG)_UPDATE rules
author John W. Eaton <jwe@octave.org>
date Sat, 08 Mar 2014 17:40:00 -0500
parents 13be64f9f16d
children d5a5b8e659de
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: 2226
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.
1084
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := imagemagick
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
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 := 6.7.2-7
1990
a5e9e90cf187 update packages exiv2 gnutls imagemagick x264
Mark Brand <mabrand@mabrand.nl>
parents: 1985
diff changeset
7 $(PKG)_CHECKSUM := 13198d502e95abb305c23c3d56378e9139fcb7c3
1084
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := ImageMagick-$($(PKG)_VERSION)
1880
94df9b4e71ae upgrade packages: dbus fltk geos glib gnutls imagemagick lcms libass libevent libgsf pfstools x264 xvidcore xz
Mark Brand <mabrand@mabrand.nl>
parents: 1826
diff changeset
9 $(PKG)_FILE := ImageMagick-$($(PKG)_VERSION).tar.xz
1084
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_URL := http://ftp.nluug.nl/ImageMagick/$($(PKG)_FILE)
3048
5ef49fb3299d treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents: 3014
diff changeset
11 $(PKG)_DEPS := bzip2 ffmpeg fftw freetype jasper jpeg lcms libpng libtool openexr pthreads tiff
1084
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2365
diff changeset
14 $(WGET) -q -O- 'http://www.imagemagick.org/' | \
3561
ae4193aad5fe revise and enable more $(PKG)_UPDATE rules
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
15 $(SED) -n 's,.*<p>The current release is ImageMagick \([0-9][0-9.-]*\).*,\1,p' | \
1084
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 head -1
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 endef
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 define $(PKG)_BUILD
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
22 --prefix='$(HOST_PREFIX)' \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2525
diff changeset
23 $(ENABLE_SHARED_OR_STATIC) \
1304
49c8386a1326 bugfix for package imagemagick: use cross freetype-config
Tony Theodore <tonyt@logyst.com>
parents: 1302
diff changeset
24 --with-x=no \
2226
5edcb1f916a9 package imagemagick: build without zlib 1.2.6 due to incompatibility
Mark Brand <mabrand@mabrand.nl>
parents: 2153
diff changeset
25 --without-zlib \
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
26 ac_cv_prog_freetype_config='$(HOST_BINDIR)/freetype-config'
2226
5edcb1f916a9 package imagemagick: build without zlib 1.2.6 due to incompatibility
Mark Brand <mabrand@mabrand.nl>
parents: 2153
diff changeset
27 $(SED) -i 's/#define MAGICKCORE_ZLIB_DELEGATE 1//g' '$(1)/magick/magick-config.h'
1086
b91ec7149850 avoid trouble with parallel builds in package imagemagick
Volker Grabsch <vog@notjusthosting.com>
parents: 1085
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS=
b91ec7149850 avoid trouble with parallel builds in package imagemagick
Volker Grabsch <vog@notjusthosting.com>
parents: 1085
diff changeset
29 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS=
1084
518a0afe867e new package: imagemagick (by Martin Lambers)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef