You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=jamvm
  9. PKG_VERSION:=2.0.0
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=GPL-2.0+
  12. PKG_MAINTAINER:=Dana H. Myers <k6jq@comcast.net>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  15. PKG_HASH:=76428e96df0ae9dd964c7a7c74c1e9a837e2f312c39e9a357fa8178f7eff80da
  16. PKG_USE_MIPS16:=0
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/jamvm
  21. SUBMENU:=Java
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=A compact Java Virtual Machine
  25. URL:=http://sourceforge.net/projects/jamvm
  26. DEPENDS:=+zlib +libpthread +librt +classpath @!avr32
  27. endef
  28. define Package/jamvm/description
  29. JamVM is a new Java Virtual Machine which conforms to the JVM
  30. specification version (blue book). In comparison to most other VM's (free
  31. and commercial) it is extremely small.However, unlike other small VMs
  32. (e.g. KVM) it is designed to support the full specification, and includes
  33. support for object finalisation, Soft/Weak/Phantom References, the Java
  34. Native Interface (JNI) and the Reflection API.
  35. endef
  36. CONFIGURE_ARGS += \
  37. --with-java-runtime-library=gnuclasspath \
  38. --with-classpath-install-dir=/usr \
  39. --disable-int-inlining \
  40. --disable-shared \
  41. --without-pic
  42. MAKE_FLAGS += \
  43. GLIBJ_ZIP=$(STAGING_DIR)/usr/share/classpath/glibj.zip
  44. define Package/jamvm/install
  45. $(INSTALL_DIR) $(1)/usr
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/bin \
  48. $(PKG_INSTALL_DIR)/usr/share \
  49. $(1)/usr/
  50. endef
  51. define Build/InstallDev
  52. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  53. endef
  54. $(eval $(call BuildPackage,jamvm))