summaryrefslogtreecommitdiffstats
path: root/src/graphicsmagick.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-12-11 21:50:57 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-12-11 21:50:57 (GMT)
commitb3cf720774cdc243b35d1c47bf8e7a6d4afe5328 (patch)
tree7d7a699d43c288f922d07faed563f9e5819f90ae /src/graphicsmagick.mk
parent16028ede6db1c91e4024554365cecc655212af00 (diff)
downloadmxe-b3cf720774cdc243b35d1c47bf8e7a6d4afe5328.zip
mxe-b3cf720774cdc243b35d1c47bf8e7a6d4afe5328.tar.gz
mxe-b3cf720774cdc243b35d1c47bf8e7a6d4afe5328.tar.bz2
new package: graphicsmagick
Diffstat (limited to 'src/graphicsmagick.mk')
-rw-r--r--src/graphicsmagick.mk56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/graphicsmagick.mk b/src/graphicsmagick.mk
new file mode 100644
index 0000000..20165de
--- /dev/null
+++ b/src/graphicsmagick.mk
@@ -0,0 +1,56 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# GraphicsMagick
+PKG := graphicsmagick
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 1.3.12
+$(PKG)_CHECKSUM := 6b8a414af162ad8679f2f04b10f128edc8ee3233
+$(PKG)_SUBDIR := GraphicsMagick-$($(PKG)_VERSION)
+$(PKG)_FILE := $($(PKG)_SUBDIR).tar.bz2
+$(PKG)_WEBSITE := http://www.graphicsmagick.org/
+$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/$(PKG)/$(PKG)/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc pthreads libtool zlib bzip2 jpeg jasper lcms1 libpng tiff freetype libxml2
+
+define $(PKG)_UPDATE
+ wget -q -O- 'http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/' | \
+ $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ # This can be removed once the patch "graphicsmagick-1-fix-xml2-config.patch" is accepted by upstream
+ cd '$(1)' && autoconf
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --without-modules \
+ --with-threads \
+ --with-magick-plus-plus \
+ --without-perl \
+ --with-bzlib \
+ --without-dps \
+ --without-fpx \
+ --without-gslib \
+ --without-jbig \
+ --with-jpeg \
+ --with-jp2 \
+ --with-lcms \
+ --with-png \
+ --with-tiff \
+ --without-trio \
+ --with-ttf='$(PREFIX)/$(TARGET)' \
+ --without-wmf \
+ --with-xml \
+ --with-zlib \
+ --without-x \
+ ac_cv_prog_xml2_config='$(PREFIX)/$(TARGET)/bin/xml2-config'
+ $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS=
+ $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS=
+
+ '$(TARGET)-g++' \
+ -W -Wall -Werror -pedantic -std=gnu++0x \
+ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-graphicsmagick.exe' \
+ `'$(TARGET)-pkg-config' GraphicsMagick++ --cflags --libs`
+endef