Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/$(PKG_NAME)
  13. PKG_HASH:=76428e96df0ae9dd964c7a7c74c1e9a837e2f312c39e9a357fa8178f7eff80da
  14. PKG_MAINTAINER:=Dana H. Myers <k6jq@comcast.net>
  15. PKG_LICENSE:=GPL-2.0-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_USE_MIPS16:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/host-build.mk
  22. define Package/jamvm
  23. SUBMENU:=Java
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=A compact Java Virtual Machine
  27. URL:=http://jamvm.sourceforge.net/
  28. DEPENDS:=+zlib +libpthread +librt +CONFIG_powerpc64:libffi @!arc @!aarch64
  29. endef
  30. define Package/jamvm/description
  31. JamVM is a Java Virtual Machine which conforms to the JVM
  32. specification version 2 (a.k.a, 1.2). In comparison to most other VM's (free
  33. and commercial) it is extremely small. However, unlike other small VMs
  34. (e.g. KVM) it is designed to support the full specification, and includes
  35. support for object finalisation, Soft/Weak/Phantom References, the Java
  36. Native Interface (JNI) and the Reflection API.
  37. endef
  38. CONFIGURE_ARGS += \
  39. --with-java-runtime-library=gnuclasspath \
  40. --with-classpath-install-dir=/usr \
  41. --disable-int-inlining \
  42. --disable-shared \
  43. --without-pic
  44. MAKE_FLAGS += \
  45. GLIBJ_ZIP=$(STAGING_DIR)/usr/share/classpath/glibj.zip
  46. define Package/jamvm/install
  47. $(INSTALL_DIR) $(1)/usr
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/bin \
  50. $(PKG_INSTALL_DIR)/usr/share \
  51. $(1)/usr/
  52. endef
  53. define Build/InstallDev
  54. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  55. endef
  56. $(eval $(call BuildPackage,jamvm))
  57. $(eval $(call HostBuild))