2
1

jamvm.mk 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
  13. JAMVM_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \
  14. glib_cv_uscore=no ac_cv_func_strtod=yes \
  15. ac_fsusage_space=yes fu_cv_sys_stat_statfs2_bsize=yes \
  16. ac_cv_func_closedir_void=no ac_cv_func_getloadavg=no \
  17. ac_cv_lib_util_getloadavg=no ac_cv_lib_getloadavg_getloadavg=no \
  18. ac_cv_func_getgroups=yes ac_cv_func_getgroups_works=yes \
  19. ac_cv_func_chown_works=yes ac_cv_have_decl_euidaccess=no \
  20. ac_cv_func_euidaccess=no ac_cv_have_decl_strnlen=yes \
  21. ac_cv_func_strnlen_working=yes ac_cv_func_lstat_dereferences_slashed_symlink=yes \
  22. ac_cv_func_lstat_empty_string_bug=no ac_cv_func_stat_empty_string_bug=no \
  23. vb_cv_func_rename_trailing_slash_bug=no ac_cv_have_decl_nanosleep=yes \
  24. jm_cv_func_nanosleep_works=yes gl_cv_func_working_utimes=yes \
  25. ac_cv_func_utime_null=yes ac_cv_have_decl_strerror_r=yes \
  26. ac_cv_func_strerror_r_char_p=no jm_cv_func_svid_putenv=yes \
  27. ac_cv_func_getcwd_null=yes ac_cv_func_getdelim=yes \
  28. ac_cv_func_mkstemp=yes utils_cv_func_mkstemp_limitations=no \
  29. utils_cv_func_mkdir_trailing_slash_bug=no \
  30. ac_cv_have_decl_malloc=yes gl_cv_func_malloc_0_nonnull=yes \
  31. ac_cv_func_malloc_0_nonnull=yes ac_cv_func_calloc_0_nonnull=yes \
  32. ac_cv_func_realloc_0_nonnull=yes jm_cv_func_gettimeofday_clobber=no \
  33. gl_cv_func_working_readdir=yes jm_ac_cv_func_link_follows_symlink=no \
  34. utils_cv_localtime_cache=no ac_cv_struct_st_mtim_nsec=no \
  35. gl_cv_func_tzset_clobber=no gl_cv_func_getcwd_null=yes \
  36. gl_cv_func_getcwd_path_max=yes ac_cv_func_fnmatch_gnu=yes \
  37. am_getline_needs_run_time_check=no am_cv_func_working_getline=yes \
  38. gl_cv_func_mkdir_trailing_slash_bug=no gl_cv_func_mkstemp_limitations=no \
  39. ac_cv_func_working_mktime=yes jm_cv_func_working_re_compile_pattern=yes \
  40. ac_use_included_regex=no gl_cv_c_restrict=no \
  41. ac_cv_prog_F77=no ac_cv_prog_CXX=no ac_cv_path_CUPS_CONFIG=no
  42. JAMVM_CONF_OPT = \
  43. --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/man \
  44. --infodir=/usr/info --enable-shared \
  45. --enable-static \
  46. --disable-glibtest --enable-explicit-deps=no \
  47. --disable-debug --with-classpath-install-dir=/usr
  48. JAMVM_DEPENDENCIES = uclibc host-pkgconfig classpath
  49. #Include X libraries when we have an X server
  50. ifneq ($(BR2_PACKAGE_XSERVER_none),y)
  51. JAMVM_DEPENDENCIES+= $(XSERVER)
  52. JAMVM_CONF_OPT+= --with-x \
  53. --x-includes=$(STAGING_DIR)/usr/include/X11 \
  54. --x-libraries=$(STAGING_DIR)/usr/lib
  55. else
  56. JAMVM_CONF_OPT+= --without-x
  57. endif
  58. #Enable or disable alsa
  59. ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
  60. JAMVM_DEPENDENCIES+= alsa-lib
  61. JAMVM_CONF_OPT+= --with-alsa
  62. else
  63. JAMVM_CONF_OPT+= --without-alsa
  64. endif
  65. #Enable or disable gtk
  66. ifeq ($(BR2_PACKAGE_LIBGTK2),y)
  67. JAMVM_DEPENDENCIES+= libgtk2
  68. JAMVM_CONF_OPT+= --enable-gtk-peer
  69. else
  70. JAMVM_CONF_OPT+= --disable-gtk-peer
  71. endif
  72. #Enable or disable qt backend
  73. ifeq ($(BR2_PACKAGE_QTOPIA4),y)
  74. JAMVM_DEPENDENCIES+= qtopia4
  75. JAMVM_CONF_OPT+= --enable-qt-peer
  76. else
  77. JAMVM_CONF_OPT+= --disable-qt-peer
  78. endif
  79. # I have no clue but if this is not passed to configure, the assembler crashes
  80. ifeq ($(BR2_avr32),y)
  81. JAMVM_CONF_OPT+= \
  82. CFLAGS="-g0" \
  83. CC="$(STAGING_DIR)/usr/bin/avr32-linux-gcc"
  84. endif
  85. $(eval $(call AUTOTARGETS,package/java,jamvm))