jamvm.mk 3.4 KB

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