summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/imagemagick-test.cpp17
-rw-r--r--src/imagemagick.mk7
2 files changed, 23 insertions, 1 deletions
diff --git a/src/imagemagick-test.cpp b/src/imagemagick-test.cpp
new file mode 100644
index 0000000..7c7305a
--- /dev/null
+++ b/src/imagemagick-test.cpp
@@ -0,0 +1,17 @@
+/*
+ * This file is part of MXE.
+ * See index.html for further information.
+ */
+
+#include <Magick++.h>
+
+int main(int argc, char *argv[])
+{
+ (void)argc;
+ (void)argv;
+
+ Magick::Image image;
+ image.quality(90);
+
+ return 0;
+}
diff --git a/src/imagemagick.mk b/src/imagemagick.mk
index 195a377..8f695d8 100644
--- a/src/imagemagick.mk
+++ b/src/imagemagick.mk
@@ -25,8 +25,13 @@ define $(PKG)_BUILD
--with-x=no \
--without-zlib \
--disable-largefile \
- ac_cv_prog_freetype_config='$(PREFIX)/$(TARGET)/bin/freetype-config'
+ --with-freetype='$(PREFIX)/$(TARGET)/bin/freetype-config'
$(SED) -i 's/#define MAGICKCORE_ZLIB_DELEGATE 1//g' '$(1)/magick/magick-config.h'
$(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS=
$(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS=
+
+ '$(1)'/libtool --mode=link --tag=CXX \
+ '$(TARGET)-g++' -Wall -Wextra -std=gnu++0x \
+ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-imagemagick.exe' \
+ `'$(TARGET)-pkg-config' ImageMagick++ --cflags --libs`
endef