dtc: update legal info
[buildroot-gz.git] / package / imagemagick / imagemagick.mk
blob2cae064bec2cd20310d2739b45a493c72e753055
1 ################################################################################
3 # imagemagick
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
19 endif
21 IMAGEMAGICK_CONF_ENV = ac_cv_sys_file_offset_bits=64
23 IMAGEMAGICK_CONF_OPTS = \
24 --program-transform-name='s,,,' \
25 --disable-openmp \
26 --without-djvu \
27 --without-dps \
28 --without-flif \
29 --without-fpx \
30 --without-gslib \
31 --without-gvc \
32 --without-jbig \
33 --without-lqr \
34 --without-openexr \
35 --without-perl \
36 --without-raqm \
37 --without-wmf \
38 --without-x \
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
46 else
47 IMAGEMAGICK_CONF_OPTS += --without-fontconfig
48 endif
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
55 else
56 IMAGEMAGICK_CONF_OPTS += --without-freetype
57 endif
59 ifeq ($(BR2_PACKAGE_JPEG),y)
60 IMAGEMAGICK_CONF_OPTS += --with-jpeg
61 IMAGEMAGICK_DEPENDENCIES += jpeg
62 else
63 IMAGEMAGICK_CONF_OPTS += --without-jpeg
64 endif
66 ifeq ($(BR2_PACKAGE_LCMS2),y)
67 IMAGEMAGICK_CONF_OPTS += --with-lcms
68 IMAGEMAGICK_DEPENDENCIES += lcms2
69 else
70 IMAGEMAGICK_CONF_OPTS += --without-lcms
71 endif
73 ifeq ($(BR2_PACKAGE_LIBPNG),y)
74 IMAGEMAGICK_CONF_OPTS += --with-png
75 IMAGEMAGICK_DEPENDENCIES += libpng
76 else
77 IMAGEMAGICK_CONF_OPTS += --without-png
78 endif
80 ifeq ($(BR2_PACKAGE_LIBRSVG),y)
81 IMAGEMAGICK_CONF_OPTS += --with-rsvg
82 IMAGEMAGICK_DEPENDENCIES += librsvg
83 else
84 IMAGEMAGICK_CONF_OPTS += --without-rsvg
85 endif
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
91 else
92 IMAGEMAGICK_CONF_OPTS += --without-xml
93 endif
95 ifeq ($(BR2_PACKAGE_PANGO),y)
96 IMAGEMAGICK_CONF_OPTS += --with-pango
97 IMAGEMAGICK_DEPENDENCIES += pango
98 else
99 IMAGEMAGICK_CONF_OPTS += --without-pango
100 endif
102 ifeq ($(BR2_PACKAGE_TIFF),y)
103 IMAGEMAGICK_CONF_OPTS += --with-tiff
104 IMAGEMAGICK_DEPENDENCIES += tiff
105 else
106 IMAGEMAGICK_CONF_OPTS += --without-tiff
107 endif
109 ifeq ($(BR2_PACKAGE_XZ),y)
110 IMAGEMAGICK_CONF_OPTS += --with-lzma
111 IMAGEMAGICK_DEPENDENCIES += xz
112 else
113 IMAGEMAGICK_CONF_OPTS += --without-lzma
114 endif
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
121 else
122 IMAGEMAGICK_CONF_OPTS += --without-fftw
123 endif
125 ifeq ($(BR2_PACKAGE_WEBP),y)
126 IMAGEMAGICK_CONF_OPTS += --with-webp
127 IMAGEMAGICK_DEPENDENCIES += webp
128 else
129 IMAGEMAGICK_CONF_OPTS += --without-webp
130 endif
132 ifeq ($(BR2_PACKAGE_ZLIB),y)
133 IMAGEMAGICK_CONF_OPTS += --with-zlib
134 IMAGEMAGICK_DEPENDENCIES += zlib
135 else
136 IMAGEMAGICK_CONF_OPTS += --without-zlib
137 endif
139 ifeq ($(BR2_PACKAGE_BZIP2),y)
140 IMAGEMAGICK_CONF_OPTS += --with-bzlib
141 IMAGEMAGICK_DEPENDENCIES += bzip2
142 else
143 IMAGEMAGICK_CONF_OPTS += --without-bzlib
144 endif
146 $(eval $(autotools-package))