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
|
|
|
|
2014-01-04 09:34:07 +01:00
|
|
|
IMAGEMAGICK_VERSION = 6.8.8-1
|
2013-10-21 08:25:55 +02:00
|
|
|
IMAGEMAGICK_SOURCE = ImageMagick-$(IMAGEMAGICK_VERSION).tar.xz
|
2012-06-24 13:30:08 +02:00
|
|
|
# The official ImageMagick site only keeps the latest versions
|
|
|
|
# available, which is annoying. Use an alternate site that keeps all
|
|
|
|
# older versions.
|
|
|
|
IMAGEMAGICK_SITE = ftp://ftp.nluug.nl/pub/ImageMagick/
|
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
|
2010-12-22 18:25:20 +01:00
|
|
|
IMAGEMAGICK_AUTORECONF = 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-02-21 13:35:19 +01:00
|
|
|
ifeq ($(BR2_LARGEFILE),y)
|
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
|
|
|
else
|
2010-10-02 22:51:22 +02:00
|
|
|
IMAGEMAGICK_CONF_ENV = ac_cv_sys_file_offset_bits=32
|
2010-02-21 13:35:19 +01:00
|
|
|
endif
|
|
|
|
|
2010-10-02 22:51:22 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT = --program-transform-name='s,,,' \
|
2007-07-23 11:06:34 +02:00
|
|
|
--without-perl \
|
|
|
|
--without-wmf \
|
|
|
|
--without-openexr \
|
|
|
|
--without-jp2 \
|
|
|
|
--without-jbig \
|
|
|
|
--without-gvc \
|
|
|
|
--without-djvu \
|
|
|
|
--without-dps \
|
|
|
|
--without-gslib \
|
|
|
|
--without-fpx \
|
2010-10-02 22:51:22 +02:00
|
|
|
--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)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-fontconfig
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += fontconfig
|
|
|
|
else
|
2010-10-06 11:45:47 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT += --without-fontconfig
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_FREETYPE),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --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
|
2010-10-06 11:45:47 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT += --without-freetype
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-jpeg
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += jpeg
|
|
|
|
else
|
2010-10-06 11:45:47 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT += --without-jpeg
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-png
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += libpng
|
|
|
|
else
|
2010-10-06 11:45:47 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT += --without-png
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRSVG),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-rsvg
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += librsvg
|
|
|
|
else
|
2010-10-06 11:45:47 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT += --without-rsvg
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --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
|
2010-10-06 11:45:47 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT += --without-xml
|
2010-10-04 21:11:10 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-tiff
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += tiff
|
|
|
|
else
|
2010-10-06 11:45:47 +02:00
|
|
|
IMAGEMAGICK_CONF_OPT += --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
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-fftw
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += fftw
|
|
|
|
else
|
|
|
|
IMAGEMAGICK_CONF_OPT += --without-fftw
|
|
|
|
endif
|
|
|
|
|
2012-03-03 22:52:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-zlib
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
IMAGEMAGICK_CONF_OPT += --without-zlib
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
IMAGEMAGICK_CONF_OPT += --with-bzlib
|
|
|
|
IMAGEMAGICK_DEPENDENCIES += bzip2
|
|
|
|
else
|
|
|
|
IMAGEMAGICK_CONF_OPT += --without-bzip2
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|