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.

68 lines
1.8 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:=2
  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 \
  27. @(i386||i686||x86_64||arm||armeb||mips||mipsel||powerpc||powerpc64) +CONFIG_powerpc64:libffi
  28. endef
  29. define Package/jamvm/description
  30. JamVM is a Java Virtual Machine which conforms to the JVM
  31. specification version 2 (a.k.a, 1.2). In comparison to most other VM's (free
  32. and commercial) it is extremely small. However, unlike other small VMs
  33. (e.g. KVM) it is designed to support the full specification, and includes
  34. support for object finalisation, Soft/Weak/Phantom References, the Java
  35. Native Interface (JNI) and the Reflection API.
  36. endef
  37. CONFIGURE_ARGS += \
  38. --with-java-runtime-library=gnuclasspath \
  39. --with-classpath-install-dir=/usr \
  40. --disable-int-inlining \
  41. --disable-shared \
  42. --without-pic
  43. MAKE_FLAGS += \
  44. GLIBJ_ZIP=$(STAGING_DIR)/usr/share/classpath/glibj.zip
  45. define Package/jamvm/install
  46. $(INSTALL_DIR) $(1)/usr
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/bin \
  49. $(PKG_INSTALL_DIR)/usr/share \
  50. $(1)/usr/
  51. endef
  52. define Build/InstallDev
  53. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  54. endef
  55. $(eval $(call BuildPackage,jamvm))