jamvm.mk 4.0 KB

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