1 ################################################################################
5 ################################################################################
7 IMAGEMAGICK_VERSION
= 7.0.3-4
8 IMAGEMAGICK_SOURCE
= ImageMagick-
$(IMAGEMAGICK_VERSION
).
tar.xz
9 IMAGEMAGICK_SITE
= http
://www.imagemagick.org
/download
/releases
10 IMAGEMAGICK_LICENSE
= Apache-2.0
11 IMAGEMAGICK_LICENSE_FILES
= LICENSE
13 IMAGEMAGICK_INSTALL_STAGING
= YES
14 IMAGEMAGICK_CONFIG_SCRIPTS
= \
15 $(addsuffix -config
,MagickCore MagickWand
)
17 ifeq ($(BR2_INSTALL_LIBSTDCPP
)$(BR2_USE_WCHAR
),yy
)
18 IMAGEMAGICK_CONFIG_SCRIPTS
+= Magick
++-config
21 IMAGEMAGICK_CONF_ENV
= ac_cv_sys_file_offset_bits
=64
23 IMAGEMAGICK_CONF_OPTS
= \
24 --program-transform-name
='s,,,' \
39 --with-gs-font-dir
=/usr
/share
/fonts
/gs
41 IMAGEMAGICK_DEPENDENCIES
= host-pkgconf
43 ifeq ($(BR2_PACKAGE_FONTCONFIG
),y
)
44 IMAGEMAGICK_CONF_OPTS
+= --with-fontconfig
45 IMAGEMAGICK_DEPENDENCIES
+= fontconfig
47 IMAGEMAGICK_CONF_OPTS
+= --without-fontconfig
50 ifeq ($(BR2_PACKAGE_FREETYPE
),y
)
51 IMAGEMAGICK_CONF_OPTS
+= --with-freetype
52 IMAGEMAGICK_CONF_ENV
+= \
53 ac_cv_path_freetype_config
=$(STAGING_DIR
)/usr
/bin
/freetype-config
54 IMAGEMAGICK_DEPENDENCIES
+= freetype
56 IMAGEMAGICK_CONF_OPTS
+= --without-freetype
59 ifeq ($(BR2_PACKAGE_JPEG
),y
)
60 IMAGEMAGICK_CONF_OPTS
+= --with-jpeg
61 IMAGEMAGICK_DEPENDENCIES
+= jpeg
63 IMAGEMAGICK_CONF_OPTS
+= --without-jpeg
66 ifeq ($(BR2_PACKAGE_LCMS2
),y
)
67 IMAGEMAGICK_CONF_OPTS
+= --with-lcms
68 IMAGEMAGICK_DEPENDENCIES
+= lcms2
70 IMAGEMAGICK_CONF_OPTS
+= --without-lcms
73 ifeq ($(BR2_PACKAGE_LIBPNG
),y
)
74 IMAGEMAGICK_CONF_OPTS
+= --with-png
75 IMAGEMAGICK_DEPENDENCIES
+= libpng
77 IMAGEMAGICK_CONF_OPTS
+= --without-png
80 ifeq ($(BR2_PACKAGE_LIBRSVG
),y
)
81 IMAGEMAGICK_CONF_OPTS
+= --with-rsvg
82 IMAGEMAGICK_DEPENDENCIES
+= librsvg
84 IMAGEMAGICK_CONF_OPTS
+= --without-rsvg
87 ifeq ($(BR2_PACKAGE_LIBXML2
),y
)
88 IMAGEMAGICK_CONF_OPTS
+= --with-xml
89 IMAGEMAGICK_CONF_ENV
+= ac_cv_path_xml2_config
=$(STAGING_DIR
)/usr
/bin
/xml2-config
90 IMAGEMAGICK_DEPENDENCIES
+= libxml2
92 IMAGEMAGICK_CONF_OPTS
+= --without-xml
95 ifeq ($(BR2_PACKAGE_PANGO
),y
)
96 IMAGEMAGICK_CONF_OPTS
+= --with-pango
97 IMAGEMAGICK_DEPENDENCIES
+= pango
99 IMAGEMAGICK_CONF_OPTS
+= --without-pango
102 ifeq ($(BR2_PACKAGE_TIFF
),y
)
103 IMAGEMAGICK_CONF_OPTS
+= --with-tiff
104 IMAGEMAGICK_DEPENDENCIES
+= tiff
106 IMAGEMAGICK_CONF_OPTS
+= --without-tiff
109 ifeq ($(BR2_PACKAGE_XZ
),y
)
110 IMAGEMAGICK_CONF_OPTS
+= --with-lzma
111 IMAGEMAGICK_DEPENDENCIES
+= xz
113 IMAGEMAGICK_CONF_OPTS
+= --without-lzma
116 ifeq ($(BR2_PACKAGE_FFTW
),y
)
117 # configure script misdetects these leading to build errors
118 IMAGEMAGICK_CONF_ENV
+= ac_cv_func_creal
=yes ac_cv_func_cimag
=yes
119 IMAGEMAGICK_CONF_OPTS
+= --with-fftw
120 IMAGEMAGICK_DEPENDENCIES
+= fftw
122 IMAGEMAGICK_CONF_OPTS
+= --without-fftw
125 ifeq ($(BR2_PACKAGE_WEBP
),y
)
126 IMAGEMAGICK_CONF_OPTS
+= --with-webp
127 IMAGEMAGICK_DEPENDENCIES
+= webp
129 IMAGEMAGICK_CONF_OPTS
+= --without-webp
132 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
133 IMAGEMAGICK_CONF_OPTS
+= --with-zlib
134 IMAGEMAGICK_DEPENDENCIES
+= zlib
136 IMAGEMAGICK_CONF_OPTS
+= --without-zlib
139 ifeq ($(BR2_PACKAGE_BZIP2
),y
)
140 IMAGEMAGICK_CONF_OPTS
+= --with-bzlib
141 IMAGEMAGICK_DEPENDENCIES
+= bzip2
143 IMAGEMAGICK_CONF_OPTS
+= --without-bzlib
146 $(eval
$(autotools-package
))