annotate src/graphicsmagick.mk @ 3105:728a29b93060

[MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 27 Jun 2013 21:52:26 -0400
parents 5ef49fb3299d
children cf6f40cededb
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: 2258
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.
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 PKG := graphicsmagick
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
2823
c9b15d4d4f7d update package graphicsmagick
Mark Brand <mabrand@mabrand.nl>
parents: 2698
diff changeset
6 $(PKG)_CHECKSUM := 6428eb4bd19635c833750ac9d56c9b89bef4c975
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := GraphicsMagick-$($(PKG)_VERSION)
2698
ecda920960a0 package graphicsmagick: switch to xz archive
Mark Brand <mabrand@mabrand.nl>
parents: 2643
diff changeset
8 $(PKG)_FILE := GraphicsMagick-$($(PKG)_VERSION).tar.xz
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
3105
728a29b93060 [MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
10 $(PKG)_DEPS := zlib bzip2 jpeg jasper lcms libpng tiff freetype libxml2
728a29b93060 [MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
11 ifneq ($(MXE_SYSTEM),msvc)
728a29b93060 [MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
12 $(PKG)_DEPS += pthreads libtool
728a29b93060 [MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
13 endif
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2504
diff changeset
16 $(WGET) -q -O- 'http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/' | \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 # This can be removed once the patch "graphicsmagick-1-fix-xml2-config.patch" is accepted by upstream
2918
42b1909a6159 revert autoconf -> autoreconf change
John W. Eaton <jwe@octave.org>
parents: 2912
diff changeset
23 cd '$(1)' && autoconf
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 cd '$(1)' && ./configure \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2912
990071494633 use libtool for building graphics magick libs; restore build of test program
John W. Eaton <jwe@octave.org>
parents: 2876
diff changeset
26 $(ENABLE_SHARED_OR_STATIC) \
3024
15cbbf983fa0 Update graphicsmagick and pstoedit to use XME_CONFIGURE flags.
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
27 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
28 --prefix='$(HOST_PREFIX)' \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 --without-modules \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 --with-threads \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 --with-magick-plus-plus \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --without-perl \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --with-bzlib \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --without-dps \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --without-fpx \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --without-gslib \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --without-jbig \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --with-jpeg \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --with-jp2 \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --with-lcms \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --with-png \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --with-tiff \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --without-trio \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
44 --with-ttf='$(HOST_PREFIX)' \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --without-wmf \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 --with-xml \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --with-zlib \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --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
49 ac_cv_prog_xml2_config='$(HOST_BINDIR)/xml2-config' \
3105
728a29b93060 [MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
50 ac_cv_path_xml2_config='$(HOST_BINDIR)/xml2-config' \
728a29b93060 [MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
51 && $(CONFIGURE_POST_HOOK)
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS=
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS=
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 endef