2
1

jamvm.mk 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #############################################################
  2. #
  3. # jamvm 1.5.0
  4. #
  5. #############################################################
  6. JAMVM_VERSION = 1.5.0
  7. JAMVM_SOURCE = jamvm-$(JAMVM_VERSION).tar.gz
  8. JAMVM_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/jamvm/
  9. JAMVM_AUTORECONF = NO
  10. JAMVM_INSTALL_STAGING = YES
  11. JAMVM_INSTALL_TARGET = YES
  12. JAMVM_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 \
  29. jm_cv_func_gettimeofday_clobber=no \
  30. gl_cv_func_working_readdir=yes jm_ac_cv_func_link_follows_symlink=no \
  31. utils_cv_localtime_cache=no ac_cv_struct_st_mtim_nsec=no \
  32. gl_cv_func_tzset_clobber=no gl_cv_func_getcwd_null=yes \
  33. gl_cv_func_getcwd_path_max=yes ac_cv_func_fnmatch_gnu=yes \
  34. am_getline_needs_run_time_check=no am_cv_func_working_getline=yes \
  35. gl_cv_func_mkdir_trailing_slash_bug=no gl_cv_func_mkstemp_limitations=no \
  36. ac_cv_func_working_mktime=yes jm_cv_func_working_re_compile_pattern=yes \
  37. ac_use_included_regex=no gl_cv_c_restrict=no \
  38. ac_cv_prog_F77=no ac_cv_prog_CXX=no ac_cv_path_CUPS_CONFIG=no
  39. JAMVM_CONF_OPT = \
  40. --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/man \
  41. --infodir=/usr/info \
  42. --disable-glibtest --enable-explicit-deps=no \
  43. --disable-debug --with-classpath-install-dir=/usr
  44. JAMVM_DEPENDENCIES = host-pkg-config classpath
  45. #Include X libraries when we have an X server
  46. ifeq ($(BR2_PACKAGE_XORG7),y)
  47. JAMVM_DEPENDENCIES+= xserver_xorg-server
  48. JAMVM_CONF_OPT+= --with-x \
  49. --x-includes=$(STAGING_DIR)/usr/include/X11 \
  50. --x-libraries=$(STAGING_DIR)/usr/lib
  51. else
  52. JAMVM_CONF_OPT+= --without-x
  53. endif
  54. #Enable or disable alsa
  55. ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
  56. JAMVM_DEPENDENCIES+= alsa-lib
  57. JAMVM_CONF_OPT+= --with-alsa
  58. else
  59. JAMVM_CONF_OPT+= --without-alsa
  60. endif
  61. #Enable or disable gtk
  62. ifeq ($(BR2_PACKAGE_LIBGTK2),y)
  63. JAMVM_DEPENDENCIES+= libgtk2
  64. JAMVM_CONF_OPT+= --enable-gtk-peer
  65. else
  66. JAMVM_CONF_OPT+= --disable-gtk-peer
  67. endif
  68. #Enable or disable qt backend
  69. ifeq ($(BR2_PACKAGE_QT),y)
  70. JAMVM_DEPENDENCIES+= qt
  71. JAMVM_CONF_OPT+= --enable-qt-peer
  72. else
  73. JAMVM_CONF_OPT+= --disable-qt-peer
  74. endif
  75. # I have no clue but if this is not passed to configure, the assembler crashes
  76. ifeq ($(BR2_avr32),y)
  77. JAMVM_CONF_OPT+= \
  78. CFLAGS="-g0" \
  79. CC="$(STAGING_DIR)/usr/bin/avr32-linux-gcc"
  80. endif
  81. $(eval $(call AUTOTARGETS))