annotate src/graphicsmagick.mk @ 6234:97c5f8da5036 release

* src/librsb.mk: update to 1.2.0.11
author Markus Mützel <markus.muetzel@gmx.de>
date Fri, 27 May 2022 12:24:32 +0200
parents 7ac858194666
children d9280cef2ee4
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 :=
6014
7ac858194666 graphicsmagick: update to v1.3.37
John Donoghue <john.donoghue@ieee.org>
parents: 5770
diff changeset
6 $(PKG)_VERSION := 1.3.37
7ac858194666 graphicsmagick: update to v1.3.37
John Donoghue <john.donoghue@ieee.org>
parents: 5770
diff changeset
7 $(PKG)_CHECKSUM := 94e0103f7d2286d1ba46c633d68ab0e1bfa2b2d3
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := GraphicsMagick-$($(PKG)_VERSION)
2698
ecda920960a0 package graphicsmagick: switch to xz archive
Mark Brand <mabrand@mabrand.nl>
parents: 2643
diff changeset
9 $(PKG)_FILE := GraphicsMagick-$($(PKG)_VERSION).tar.xz
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
4527
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
11 $(PKG)_DEPS := zlib bzip2 libjbig jpeg jasper lcms libpng tiff freetype libxml2
3105
728a29b93060 [MSVC] enable GraphicsMagick compilation, bump lcms requirement to 2.X.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3048
diff changeset
12 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
13 $(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
14 endif
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15
4527
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
16 $(PKG)_CONFIGURE_OPTIONS :=
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
17 ifeq ($(MXE_WINDOWS_BUILD),yes)
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
18 $(PKG)_CONFIGURE_OPTIONS += ac_cv_func_clock_getres=no ac_cv_func_clock_gettime=no
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
19 endif
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
20
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
21
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2504
diff changeset
23 $(WGET) -q -O- 'http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/' | \
4601
dc3eb553f5e9 update UPDATE rule for sourceforge projects with version directories
John D
parents: 4583
diff changeset
24 $(SED) -n 's,.*tr title="\([0-9][^"]*\)".*,\1,p' | \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 head -1
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 endef
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 define $(PKG)_BUILD
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 # 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
30 cd '$(1)' && autoconf
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 cd '$(1)' && ./configure \
4527
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
32 $($(PKG)_CONFIGURE_OPTIONS) \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
33 $(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
34 $(ENABLE_SHARED_OR_STATIC) \
5770
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
35 $(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
36 --prefix='$(HOST_PREFIX)' \
4069
114be8cd075c graphicsmagick: disable use of openmp (Bug #46772)
John Donoghue <john.donoghue@ieee.org>
parents: 3881
diff changeset
37 --disable-openmp \
4773
7c3e3151bf58 graphicsmagic: enable modules, allow dynaic paths in windows
John Donoghue
parents: 4756
diff changeset
38 --with-modules \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --with-threads \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --with-magick-plus-plus \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 --without-perl \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 --with-bzlib \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 --without-dps \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 --without-fpx \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --without-gslib \
4527
d3c12e857e9b graphicsmagick: enable jbig
John D
parents: 4435
diff changeset
46 --with-jbig \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --with-jpeg \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --with-jp2 \
4435
d9c87a876215 graphicsmagick: update to 1.3.26
John D
parents: 4302
diff changeset
49 --with-lcms2 \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --with-png \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 --with-tiff \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --without-trio \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
53 --with-ttf='$(HOST_PREFIX)' \
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 --without-wmf \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 --with-xml \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 --with-zlib \
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
57 --without-x \
5770
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
58 --with-quantum-depth=16 \
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
59 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
60 ac_cv_path_xml2_config='$(HOST_BINDIR)/xml2-config' \
5770
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
61 && $(CONFIGURE_POST_HOOK)
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
62 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS=
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3105
diff changeset
63 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= DESTDIR='$(3)'
4302
3d168da55e47 disable instakll of docs
John D
parents: 4280
diff changeset
64
3d168da55e47 disable instakll of docs
John D
parents: 4280
diff changeset
65 if [ "$(ENABLE_DEP_DOCS)" == "no" ]; then \
3d168da55e47 disable instakll of docs
John D
parents: 4280
diff changeset
66 rm -rf "$(3)$(HOST_PREFIX)/share/doc/GraphicsMagick"; \
3d168da55e47 disable instakll of docs
John D
parents: 4280
diff changeset
67 fi
5770
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
68
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
69 # Build (and install) fork of dcraw
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
70 if [ "x$(MXE_WINDOWS_BUILD)" == "xyes" ]; then \
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
71 cd '$(1)/dcraw' && $(MXE_CC) -O4 -o $(3)$(HOST_PREFIX)/bin/dcraw dcraw.c \
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
72 -Wall -Wno-unused-result -Wno-array-bounds -Wno-maybe-uninitialized \
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
73 -Wno-unused-but-set-variable \
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
74 -I$(HOST_PREFIX)/include -L$(HOST_PREFIX)/lib \
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
75 -lm -ljasper -ljpeg -llcms2 -lws2_32 -s; \
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
76 fi
c23139e3560e GraphicsMagick: Build upstream version of dcraw (bug #60664).
Markus Mützel <markus.muetzel@gmx.de>
parents: 5630
diff changeset
77
1492
c16a0b13337d new package: graphicsmagick
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
78 endef