1 #############################################################
5 #############################################################
7 CAIRO_SOURCE
= cairo-
$(CAIRO_VERSION
).
tar.gz
8 CAIRO_SITE
= http
://cairographics.org
/releases
10 CAIRO_INSTALL_STAGING
= YES
11 CAIRO_INSTALL_TARGET
= YES
12 CAIRO_INSTALL_STAGING_OPT
= DESTDIR
=$(STAGING_DIR
) install
14 CAIRO_CONF_ENV
= ac_cv_func_posix_getpwuid_r
=yes glib_cv_stack_grows
=no \
15 glib_cv_uscore
=no ac_cv_func_strtod
=yes \
16 ac_fsusage_space
=yes fu_cv_sys_stat_statfs2_bsize
=yes \
17 ac_cv_func_closedir_void
=no ac_cv_func_getloadavg
=no \
18 ac_cv_lib_util_getloadavg
=no ac_cv_lib_getloadavg_getloadavg
=no \
19 ac_cv_func_getgroups
=yes ac_cv_func_getgroups_works
=yes \
20 ac_cv_func_chown_works
=yes ac_cv_have_decl_euidaccess
=no \
21 ac_cv_func_euidaccess
=no ac_cv_have_decl_strnlen
=yes \
22 ac_cv_func_strnlen_working
=yes ac_cv_func_lstat_dereferences_slashed_symlink
=yes \
23 ac_cv_func_lstat_empty_string_bug
=no ac_cv_func_stat_empty_string_bug
=no \
24 vb_cv_func_rename_trailing_slash_bug
=no ac_cv_have_decl_nanosleep
=yes \
25 jm_cv_func_nanosleep_works
=yes gl_cv_func_working_utimes
=yes \
26 ac_cv_func_utime_null
=yes ac_cv_have_decl_strerror_r
=yes \
27 ac_cv_func_strerror_r_char_p
=no jm_cv_func_svid_putenv
=yes \
28 ac_cv_func_getcwd_null
=yes ac_cv_func_getdelim
=yes \
29 ac_cv_func_mkstemp
=yes utils_cv_func_mkstemp_limitations
=no \
30 utils_cv_func_mkdir_trailing_slash_bug
=no ac_cv_func_memcmp_working
=yes \
31 ac_cv_have_decl_malloc
=yes gl_cv_func_malloc_0_nonnull
=yes \
32 ac_cv_func_malloc_0_nonnull
=yes ac_cv_func_calloc_0_nonnull
=yes \
33 ac_cv_func_realloc_0_nonnull
=yes jm_cv_func_gettimeofday_clobber
=no \
34 gl_cv_func_working_readdir
=yes jm_ac_cv_func_link_follows_symlink
=no \
35 utils_cv_localtime_cache
=no ac_cv_struct_st_mtim_nsec
=no \
36 gl_cv_func_tzset_clobber
=no gl_cv_func_getcwd_null
=yes \
37 gl_cv_func_getcwd_path_max
=yes ac_cv_func_fnmatch_gnu
=yes \
38 am_getline_needs_run_time_check
=no am_cv_func_working_getline
=yes \
39 gl_cv_func_mkdir_trailing_slash_bug
=no gl_cv_func_mkstemp_limitations
=no \
40 ac_cv_func_working_mktime
=yes jm_cv_func_working_re_compile_pattern
=yes \
41 ac_use_included_regex
=no gl_cv_c_restrict
=no
43 CAIRO_DEPENDENCIES
= uclibc pkgconfig fontconfig pixman
45 ifeq ($(BR2_PACKAGE_DIRECTFB
),y
)
46 CAIRO_CONF_OPT
+= --enable-directfb
47 CAIRO_DEPENDENCIES
+= directfb
49 CAIRO_CONF_OPT
+= --disable-directfb
52 ifneq ($(BR2_PACKAGE_XSERVER_none
),y
)
53 CAIRO_CONF_OPT
+= --enable-xlib
--with-x
54 CAIRO_DEPENDENCIES
+= $(XSERVER
)
56 CAIRO_CONF_OPT
+= --disable-xlib
--without-x
59 ifeq ($(BR2_PACKAGE_CAIRO_PS
),y
)
60 CAIRO_CONF_OPT
+= --enable-ps
61 CAIRO_DEPENDENCIES
+= zlib
63 CAIRO_CONF_OPT
+= --disable-ps
66 ifeq ($(BR2_PACKAGE_CAIRO_PDF
),y
)
67 CAIRO_CONF_OPT
+= --enable-pdf
68 CAIRO_DEPENDENCIES
+= zlib
70 CAIRO_CONF_OPT
+= --disable-pdf
73 ifeq ($(BR2_PACKAGE_CAIRO_PNG
),y
)
74 CAIRO_CONF_OPT
+= --enable-png
75 CAIRO_DEPENDENCIES
+= libpng
77 CAIRO_CONF_OPT
+= --disable-png
80 ifeq ($(BR2_PACKAGE_CAIRO_SVG
),y
)
81 CAIRO_CONF_OPT
+= --enable-svg
83 CAIRO_CONF_OPT
+= --disable-svg
86 $(eval
$(call AUTOTARGETS
,package
,cairo
))