jamvm.mk 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 --enable-shared \
  42. --enable-static \
  43. --disable-glibtest --enable-explicit-deps=no \
  44. --disable-debug --with-classpath-install-dir=/usr
  45. JAMVM_DEPENDENCIES = host-pkg-config classpath
  46. #Include X libraries when we have an X server
  47. ifeq ($(BR2_PACKAGE_XORG7),y)
  48. JAMVM_DEPENDENCIES+= xserver_xorg-server
  49. JAMVM_CONF_OPT+= --with-x \
  50. --x-includes=$(STAGING_DIR)/usr/include/X11 \
  51. --x-libraries=$(STAGING_DIR)/usr/lib
  52. else
  53. JAMVM_CONF_OPT+= --without-x
  54. endif
  55. #Enable or disable alsa
  56. ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
  57. JAMVM_DEPENDENCIES+= alsa-lib
  58. JAMVM_CONF_OPT+= --with-alsa
  59. else
  60. JAMVM_CONF_OPT+= --without-alsa
  61. endif
  62. #Enable or disable gtk
  63. ifeq ($(BR2_PACKAGE_LIBGTK2),y)
  64. JAMVM_DEPENDENCIES+= libgtk2
  65. JAMVM_CONF_OPT+= --enable-gtk-peer
  66. else
  67. JAMVM_CONF_OPT+= --disable-gtk-peer
  68. endif
  69. #Enable or disable qt backend
  70. ifeq ($(BR2_PACKAGE_QT),y)
  71. JAMVM_DEPENDENCIES+= qt
  72. JAMVM_CONF_OPT+= --enable-qt-peer
  73. else
  74. JAMVM_CONF_OPT+= --disable-qt-peer
  75. endif
  76. # I have no clue but if this is not passed to configure, the assembler crashes
  77. ifeq ($(BR2_avr32),y)
  78. JAMVM_CONF_OPT+= \
  79. CFLAGS="-g0" \
  80. CC="$(STAGING_DIR)/usr/bin/avr32-linux-gcc"
  81. endif
  82. $(eval $(call AUTOTARGETS,package/java,jamvm))