Mercurial > mxe-octave
comparison src/graphicsmagick.mk @ 1492:c16a0b13337d
new package: graphicsmagick
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sat, 11 Dec 2010 22:50:57 +0100 |
parents | |
children | 9e587ca588dc |
comparison
equal
deleted
inserted
replaced
1491:f4ddc2aa91e3 | 1492:c16a0b13337d |
---|---|
1 # This file is part of mingw-cross-env. | |
2 # See doc/index.html for further information. | |
3 | |
4 # GraphicsMagick | |
5 PKG := graphicsmagick | |
6 $(PKG)_IGNORE := | |
7 $(PKG)_VERSION := 1.3.12 | |
8 $(PKG)_CHECKSUM := 6b8a414af162ad8679f2f04b10f128edc8ee3233 | |
9 $(PKG)_SUBDIR := GraphicsMagick-$($(PKG)_VERSION) | |
10 $(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2 | |
11 $(PKG)_WEBSITE := http://www.graphicsmagick.org/ | |
12 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE) | |
13 $(PKG)_DEPS := gcc pthreads libtool zlib bzip2 jpeg jasper lcms1 libpng tiff freetype libxml2 | |
14 | |
15 define $(PKG)_UPDATE | |
16 wget -q -O- 'http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/' | \ | |
17 $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ | |
18 head -1 | |
19 endef | |
20 | |
21 define $(PKG)_BUILD | |
22 # This can be removed once the patch "graphicsmagick-1-fix-xml2-config.patch" is accepted by upstream | |
23 cd '$(1)' && autoconf | |
24 cd '$(1)' && ./configure \ | |
25 --host='$(TARGET)' \ | |
26 --disable-shared \ | |
27 --prefix='$(PREFIX)/$(TARGET)' \ | |
28 --without-modules \ | |
29 --with-threads \ | |
30 --with-magick-plus-plus \ | |
31 --without-perl \ | |
32 --with-bzlib \ | |
33 --without-dps \ | |
34 --without-fpx \ | |
35 --without-gslib \ | |
36 --without-jbig \ | |
37 --with-jpeg \ | |
38 --with-jp2 \ | |
39 --with-lcms \ | |
40 --with-png \ | |
41 --with-tiff \ | |
42 --without-trio \ | |
43 --with-ttf='$(PREFIX)/$(TARGET)' \ | |
44 --without-wmf \ | |
45 --with-xml \ | |
46 --with-zlib \ | |
47 --without-x \ | |
48 ac_cv_prog_xml2_config='$(PREFIX)/$(TARGET)/bin/xml2-config' | |
49 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= | |
50 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= | |
51 | |
52 '$(TARGET)-g++' \ | |
53 -W -Wall -Werror -pedantic -std=gnu++0x \ | |
54 '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-graphicsmagick.exe' \ | |
55 `'$(TARGET)-pkg-config' GraphicsMagick++ --cflags --libs` | |
56 endef |