2007-07-23 11:06:34 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# imagemagick
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-02-02 13:22:21 +01:00
|
|
|
|
2012-08-06 21:15:18 +02:00
|
|
|
IMAGEMAGICK_MAJOR = 6.7.8
|
|
|
|
IMAGEMAGICK_VERSION = $(IMAGEMAGICK_MAJOR)-8
|
2010-10-02 22:51:22 +02:00
|
|
|
IMAGEMAGICK_SOURCE = ImageMagick-$(IMAGEMAGICK_VERSION).tar.bz2
|
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/
|
2010-10-02 22:51:22 +02:00
|
|
|
IMAGEMAGICK_INSTALL_STAGING = YES
|
2010-12-22 18:25:20 +01:00
|
|
|
IMAGEMAGICK_AUTORECONF = YES
|
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-03-03 22:52:14 +01:00
|
|
|
IMAGEMAGICK_DEPENDENCIES = host-pkg-config
|
|
|
|
|
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
|
|
|
|
|
2010-12-22 18:21:35 +01:00
|
|
|
define IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS
|
|
|
|
$(RM) -f $(addprefix $(TARGET_DIR)/usr/bin/, \
|
|
|
|
$(addsuffix -config, \
|
|
|
|
Magick MagickCore MagickWand Wand Magick++))
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifneq ($(BR2_HAVE_DEVFILES),y)
|
|
|
|
IMAGEMAGICK_POST_INSTALL_TARGET_HOOKS += IMAGEMAGICK_REMOVE_CONFIG_SCRIPTS
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|