The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / cairo / cairo.mk
1 ################################################################################
2 #
3 # cairo
4 #
5 ################################################################################
6
7 CAIRO_VERSION = 1.14.2
8 CAIRO_SOURCE = cairo-$(CAIRO_VERSION).tar.xz
9 CAIRO_LICENSE = LGPLv2.1+
10 CAIRO_LICENSE_FILES = COPYING
11 CAIRO_SITE = http://cairographics.org/releases
12 CAIRO_INSTALL_STAGING = YES
13 CAIRO_AUTORECONF = YES
14
15 CAIRO_CONF_ENV = \
16         ac_cv_func_posix_getpwuid_r=yes \
17         glib_cv_stack_grows=no \
18         glib_cv_uscore=no \
19         ac_cv_func_strtod=yes \
20         ac_fsusage_space=yes \
21         fu_cv_sys_stat_statfs2_bsize=yes \
22         ac_cv_func_closedir_void=no \
23         ac_cv_func_getloadavg=no \
24         ac_cv_lib_util_getloadavg=no \
25         ac_cv_lib_getloadavg_getloadavg=no \
26         ac_cv_func_getgroups=yes \
27         ac_cv_func_getgroups_works=yes \
28         ac_cv_func_chown_works=yes \
29         ac_cv_have_decl_euidaccess=no \
30         ac_cv_func_euidaccess=no \
31         ac_cv_have_decl_strnlen=yes \
32         ac_cv_func_strnlen_working=yes \
33         ac_cv_func_lstat_dereferences_slashed_symlink=yes \
34         ac_cv_func_lstat_empty_string_bug=no \
35         ac_cv_func_stat_empty_string_bug=no \
36         vb_cv_func_rename_trailing_slash_bug=no \
37         ac_cv_have_decl_nanosleep=yes \
38         jm_cv_func_nanosleep_works=yes \
39         gl_cv_func_working_utimes=yes \
40         ac_cv_func_utime_null=yes \
41         ac_cv_have_decl_strerror_r=yes \
42         ac_cv_func_strerror_r_char_p=no \
43         jm_cv_func_svid_putenv=yes \
44         ac_cv_func_getcwd_null=yes \
45         ac_cv_func_getdelim=yes \
46         ac_cv_func_mkstemp=yes \
47         utils_cv_func_mkstemp_limitations=no \
48         utils_cv_func_mkdir_trailing_slash_bug=no \
49         jm_cv_func_gettimeofday_clobber=no \
50         gl_cv_func_working_readdir=yes \
51         jm_ac_cv_func_link_follows_symlink=no \
52         utils_cv_localtime_cache=no \
53         ac_cv_struct_st_mtim_nsec=no \
54         gl_cv_func_tzset_clobber=no \
55         gl_cv_func_getcwd_null=yes \
56         gl_cv_func_getcwd_path_max=yes \
57         ac_cv_func_fnmatch_gnu=yes \
58         am_getline_needs_run_time_check=no \
59         am_cv_func_working_getline=yes \
60         gl_cv_func_mkdir_trailing_slash_bug=no \
61         gl_cv_func_mkstemp_limitations=no \
62         ac_cv_func_working_mktime=yes \
63         jm_cv_func_working_re_compile_pattern=yes \
64         ac_use_included_regex=no \
65         gl_cv_c_restrict=no
66
67 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
68 CAIRO_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -DCAIRO_NO_MUTEX=1"
69 endif
70
71 CAIRO_CONF_OPTS = \
72         --enable-trace=no \
73         --enable-interpreter=no
74
75 CAIRO_DEPENDENCIES = host-pkgconf fontconfig pixman
76
77 # Just the bare minimum to make other host-* packages happy
78 HOST_CAIRO_CONF_OPTS = \
79         --enable-trace=no \
80         --enable-interpreter=no \
81         --disable-directfb \
82         --enable-ft \
83         --disable-gobject \
84         --disable-glesv2 \
85         --disable-vg \
86         --disable-xlib \
87         --disable-xcb \
88         --without-x \
89         --disable-xlib-xrender \
90         --disable-ps \
91         --disable-pdf \
92         --enable-png \
93         --disable-script \
94         --disable-svg \
95         --disable-tee \
96         --disable-xml
97 HOST_CAIRO_DEPENDENCIES = \
98         host-freetype \
99         host-fontconfig \
100         host-libpng \
101         host-pixman \
102         host-pkgconf
103
104 # DirectFB svg support rely on Cairo and Cairo DirectFB support depends on
105 # DirectFB. Break circular dependency by disabling DirectFB support in Cairo
106 # (which is experimental)
107 ifeq ($(BR2_PACKAGE_DIRECTFB)x$(BR2_PACKAGE_DIRECTFB_SVG),yx)
108 CAIRO_CONF_OPTS += --enable-directfb
109 CAIRO_DEPENDENCIES += directfb
110 else
111 CAIRO_CONF_OPTS += --disable-directfb
112 endif
113
114 ifeq ($(BR2_PACKAGE_FREETYPE),y)
115 CAIRO_CONF_OPTS += --enable-ft
116 CAIRO_DEPENDENCIES += freetype
117 else
118 CAIRO_CONF_OPTS += --disable-ft
119 endif
120
121 ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
122 CAIRO_CONF_OPTS += --enable-gobject
123 CAIRO_DEPENDENCIES += libglib2
124 else
125 CAIRO_CONF_OPTS += --disable-gobject
126 endif
127
128 ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
129 CAIRO_CONF_OPTS += --enable-glesv2
130 CAIRO_DEPENDENCIES += libgles
131 else
132 CAIRO_CONF_OPTS += --disable-glesv2
133 endif
134
135 ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y)
136 CAIRO_CONF_OPTS += --enable-vg
137 CAIRO_DEPENDENCIES += libopenvg
138 else
139 CAIRO_CONF_OPTS += --disable-vg
140 endif
141
142 ifeq ($(BR2_PACKAGE_XORG7),y)
143 CAIRO_CONF_OPTS += --enable-xlib --enable-xcb --with-x
144 CAIRO_DEPENDENCIES += xlib_libX11 xlib_libXext
145 else
146 CAIRO_CONF_OPTS += --disable-xlib --disable-xcb --without-x
147 endif
148
149 ifeq ($(BR2_PACKAGE_XLIB_LIBXRENDER),y)
150 CAIRO_CONF_OPTS += --enable-xlib-xrender
151 CAIRO_DEPENDENCIES += xlib_libXrender
152 else
153 CAIRO_CONF_OPTS += --disable-xlib-xrender
154 endif
155
156 ifeq ($(BR2_PACKAGE_CAIRO_PS),y)
157 CAIRO_CONF_OPTS += --enable-ps
158 CAIRO_DEPENDENCIES += zlib
159 else
160 CAIRO_CONF_OPTS += --disable-ps
161 endif
162
163 ifeq ($(BR2_PACKAGE_CAIRO_PDF),y)
164 CAIRO_CONF_OPTS += --enable-pdf
165 CAIRO_DEPENDENCIES += zlib
166 else
167 CAIRO_CONF_OPTS += --disable-pdf
168 endif
169
170 ifeq ($(BR2_PACKAGE_CAIRO_PNG),y)
171 CAIRO_CONF_OPTS += --enable-png
172 CAIRO_DEPENDENCIES += libpng
173 else
174 CAIRO_CONF_OPTS += --disable-png
175 endif
176
177 ifeq ($(BR2_PACKAGE_CAIRO_SCRIPT),y)
178 CAIRO_CONF_OPTS += --enable-script
179 else
180 CAIRO_CONF_OPTS += --disable-script
181 endif
182
183 ifeq ($(BR2_PACKAGE_CAIRO_SVG),y)
184 CAIRO_CONF_OPTS += --enable-svg
185 else
186 CAIRO_CONF_OPTS += --disable-svg
187 endif
188
189 ifeq ($(BR2_PACKAGE_CAIRO_TEE),y)
190 CAIRO_CONF_OPTS += --enable-tee
191 else
192 CAIRO_CONF_OPTS += --disable-tee
193 endif
194
195 ifeq ($(BR2_PACKAGE_CAIRO_XML),y)
196 CAIRO_CONF_OPTS += --enable-xml
197 else
198 CAIRO_CONF_OPTS += --disable-xml
199 endif
200
201 $(eval $(autotools-package))
202 $(eval $(host-autotools-package))