2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-07-23 11:06:34 +02:00
|
|
|
#
|
|
|
|
# imagemagick
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-02-02 13:22:21 +01:00
|
|
|
|
2015-07-06 08:58:51 +02:00
|
|
|
IMAGEMAGICK_VERSION = 6.9.1-7
|
2013-10-21 08:25:55 +02:00
|
|
|
IMAGEMAGICK_SOURCE = ImageMagick-$(IMAGEMAGICK_VERSION).tar.xz
|
2015-02-17 09:40:36 +01:00
|
|
|
IMAGEMAGICK_SITE = http://www.imagemagick.org/download/releases
|
2014-01-02 14:01:48 +01:00
|
|
|
IMAGEMAGICK_LICENSE = Apache-2.0
|
2012-11-21 15:18:17 +01:00
|
|
|
IMAGEMAGICK_LICENSE_FILES = LICENSE
|
|
|
|
|
2010-10-02 22:51:22 +02:00
|
|
|
IMAGEMAGICK_INSTALL_STAGING = YES
|
2013-02-07 13:35:05 +01:00
|
|
|
IMAGEMAGICK_CONFIG_SCRIPTS = \
|
2013-02-09 12:13:59 +01:00
|
|
|
$(addsuffix -config,Magick MagickCore MagickWand Wand)
|
|
|
|
|
2013-08-12 14:06:58 +02:00
|
|
|
ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_USE_WCHAR),yy)
|
2013-02-09 12:13:59 +01:00
|
|
|
IMAGEMAGICK_CONFIG_SCRIPTS += Magick++-config
|
|
|
|
endif
|
2007-07-23 11:06:34 +02:00
|
|
|
|
2010-10-02 22:51:22 +02:00
|
|
|
IMAGEMAGICK_CONF_ENV = ac_cv_sys_file_offset_bits=64
|
2010-02-21 13:35:19 +01:00
|
|
|
|
2014-12-24 08:54:24 +01:00
|
|
|
IMAGEMAGICK_CONF_OPTS = \
|
|
|
|
--program-transform-name='s,,,' \
|
|
|
|
--disable-openmp \
|
|
|
|
--without-perl \
|
|
|
|
--without-wmf \
|
|
|
|
--without-openexr \
|
|
|
|
--without-jp2 \
|
|
|
|
--without-jbig \
|
|
|
|
--without-gvc \
|
|
|
|
--without-djvu \
|
|
|
|
--without-dps \
|
|
|
|
--without-gslib \
|
|
|
|
--without-fpx \
|
|
|
|
--without-x
|
2007-07-27 09:48:56 +02:00
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES = host-pkgconf
|
2012-03-03 22:52:14 +01:00
|
|
|
|
2010-10-04 21:11:10 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-fontconfig
|
2010-10-04 21:11:10 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += fontconfig
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-fontconfig
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-freetype
|
2012-06-25 23:25:44 +02:00
|
|
|
IMAGEMAGICK_CONF_ENV += \
|
|
|
|
ac_cv_path_freetype_config=$(STAGING_DIR)/usr/bin/freetype-config
|
2010-10-04 21:11:10 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += freetype
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-freetype
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-jpeg
|
2010-10-04 21:11:10 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += jpeg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-jpeg
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-png
|
2010-10-04 21:11:10 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += libpng
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-png
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-rsvg
|
2010-10-04 21:11:10 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += librsvg
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-rsvg
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-xml
|
2012-03-03 22:52:14 +01:00
|
|
|
IMAGEMAGICK_CONF_ENV += ac_cv_path_xml2_config=$(STAGING_DIR)/usr/bin/xml2-config
|
2010-10-04 21:11:10 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += libxml2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-xml
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-tiff
|
2010-10-04 21:11:10 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += tiff
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-tiff
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
2011-10-05 00:15:47 +02:00
|
|
|
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
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-fftw
|
2011-10-05 00:15:47 +02:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += fftw
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-fftw
|
2011-10-05 00:15:47 +02:00
|
|
|
endif
|
|
|
|
|
2012-03-03 22:52:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-zlib
|
2012-03-03 22:52:14 +01:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += zlib
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-zlib
|
2012-03-03 22:52:14 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --with-bzlib
|
2012-03-03 22:52:14 +01:00
|
|
|
IMAGEMAGICK_DEPENDENCIES += bzip2
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IMAGEMAGICK_CONF_OPTS += --without-bzlib
|
2012-03-03 22:52:14 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|