imagemagick: add optional fftw support
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 4 Oct 2011 22:15:47 +0000 (00:15 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 4 Oct 2011 22:15:47 +0000 (00:15 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/imagemagick/imagemagick.mk

index 0bb76f38ee420a4fe4279648aed39d574da2bab5..b2a65e13636ebfe82fe6d3c4991049546b78e6ee 100644 (file)
@@ -80,6 +80,15 @@ else
 IMAGEMAGICK_CONF_OPT += --without-tiff
 endif
 
+ifeq ($(BR2_PACKAGE_FFTW),y)
+# configure script misdetects these leading to build errors
+IMAGEMAGICK_CONF_ENV += ac_cv_func_creal=yes ac_cv_func_cimag=yes
+IMAGEMAGICK_CONF_OPT += --with-fftw
+IMAGEMAGICK_DEPENDENCIES += fftw
+else
+IMAGEMAGICK_CONF_OPT += --without-fftw
+endif
+
 define IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS
        $(RM) -f $(addprefix $(TARGET_DIR)/usr/bin/,    \
                   $(addsuffix -config,                 \