cairo.mk 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #############################################################
  2. #
  3. # cairo
  4. #
  5. #############################################################
  6. CAIRO_VERSION = 1.6.4
  7. CAIRO_SOURCE = cairo-$(CAIRO_VERSION).tar.gz
  8. CAIRO_SITE = http://cairographics.org/releases
  9. CAIRO_AUTORECONF = NO
  10. CAIRO_INSTALL_STAGING = YES
  11. CAIRO_INSTALL_TARGET = YES
  12. CAIRO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \
  13. glib_cv_uscore=no ac_cv_func_strtod=yes \
  14. ac_fsusage_space=yes fu_cv_sys_stat_statfs2_bsize=yes \
  15. ac_cv_func_closedir_void=no ac_cv_func_getloadavg=no \
  16. ac_cv_lib_util_getloadavg=no ac_cv_lib_getloadavg_getloadavg=no \
  17. ac_cv_func_getgroups=yes ac_cv_func_getgroups_works=yes \
  18. ac_cv_func_chown_works=yes ac_cv_have_decl_euidaccess=no \
  19. ac_cv_func_euidaccess=no ac_cv_have_decl_strnlen=yes \
  20. ac_cv_func_strnlen_working=yes ac_cv_func_lstat_dereferences_slashed_symlink=yes \
  21. ac_cv_func_lstat_empty_string_bug=no ac_cv_func_stat_empty_string_bug=no \
  22. vb_cv_func_rename_trailing_slash_bug=no ac_cv_have_decl_nanosleep=yes \
  23. jm_cv_func_nanosleep_works=yes gl_cv_func_working_utimes=yes \
  24. ac_cv_func_utime_null=yes ac_cv_have_decl_strerror_r=yes \
  25. ac_cv_func_strerror_r_char_p=no jm_cv_func_svid_putenv=yes \
  26. ac_cv_func_getcwd_null=yes ac_cv_func_getdelim=yes \
  27. ac_cv_func_mkstemp=yes utils_cv_func_mkstemp_limitations=no \
  28. utils_cv_func_mkdir_trailing_slash_bug=no jm_cv_func_gettimeofday_clobber=no \
  29. gl_cv_func_working_readdir=yes jm_ac_cv_func_link_follows_symlink=no \
  30. utils_cv_localtime_cache=no ac_cv_struct_st_mtim_nsec=no \
  31. gl_cv_func_tzset_clobber=no gl_cv_func_getcwd_null=yes \
  32. gl_cv_func_getcwd_path_max=yes ac_cv_func_fnmatch_gnu=yes \
  33. am_getline_needs_run_time_check=no am_cv_func_working_getline=yes \
  34. gl_cv_func_mkdir_trailing_slash_bug=no gl_cv_func_mkstemp_limitations=no \
  35. ac_cv_func_working_mktime=yes jm_cv_func_working_re_compile_pattern=yes \
  36. ac_use_included_regex=no gl_cv_c_restrict=no
  37. CAIRO_DEPENDENCIES = host-pkg-config fontconfig pixman
  38. ifeq ($(BR2_PACKAGE_DIRECTFB),y)
  39. CAIRO_CONF_OPT += --enable-directfb
  40. CAIRO_DEPENDENCIES += directfb
  41. else
  42. CAIRO_CONF_OPT += --disable-directfb
  43. endif
  44. ifeq ($(BR2_PACKAGE_XORG7),y)
  45. CAIRO_CONF_OPT += --enable-xlib --with-x
  46. CAIRO_DEPENDENCIES += xserver_xorg-server
  47. else
  48. CAIRO_CONF_OPT += --disable-xlib --without-x
  49. endif
  50. ifeq ($(BR2_PACKAGE_CAIRO_PS),y)
  51. CAIRO_CONF_OPT += --enable-ps
  52. CAIRO_DEPENDENCIES += zlib
  53. else
  54. CAIRO_CONF_OPT += --disable-ps
  55. endif
  56. ifeq ($(BR2_PACKAGE_CAIRO_PDF),y)
  57. CAIRO_CONF_OPT += --enable-pdf
  58. CAIRO_DEPENDENCIES += zlib
  59. else
  60. CAIRO_CONF_OPT += --disable-pdf
  61. endif
  62. ifeq ($(BR2_PACKAGE_CAIRO_PNG),y)
  63. CAIRO_CONF_OPT += --enable-png
  64. CAIRO_DEPENDENCIES += libpng
  65. else
  66. CAIRO_CONF_OPT += --disable-png
  67. endif
  68. ifeq ($(BR2_PACKAGE_CAIRO_SVG),y)
  69. CAIRO_CONF_OPT += --enable-svg
  70. else
  71. CAIRO_CONF_OPT += --disable-svg
  72. endif
  73. HOST_CAIRO_DEPENDENCIES = host-pkg-config host-pixman host-fontconfig
  74. HOST_CAIRO_CONF_OPT = \
  75. --enable-ps \
  76. --enable-pdf \
  77. --enable-xlib \
  78. --with-x \
  79. --disable-png \
  80. --disable-svg
  81. $(eval $(call AUTOTARGETS,package,cairo))
  82. $(eval $(call AUTOTARGETS,package,cairo,host))