2006-10-30 13:51:50 +00:00
|
|
|
#
|
2009-04-29 12:56:17 +00:00
|
|
|
# Copyright (C) 2006-2009 OpenWrt.org
|
2006-08-03 11:27:59 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=jamvm
|
2009-05-20 21:47:23 +00:00
|
|
|
PKG_VERSION:=1.5.3
|
|
|
|
PKG_RELEASE:=1
|
2006-08-03 11:27:59 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-31 08:44:54 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/jamvm
|
2009-05-20 21:47:23 +00:00
|
|
|
PKG_MD5SUM:=ce886163658d748113b0570dfae12aea
|
2006-08-03 11:27:59 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/jamvm
|
2007-09-23 18:16:45 +00:00
|
|
|
SUBMENU:=Java
|
2006-08-03 11:27:59 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=A compact Java Virtual Machine
|
|
|
|
URL:=http://sourceforge.net/projects/jamvm
|
2009-05-20 21:47:23 +00:00
|
|
|
DEPENDS:=+libffi +zlib +libpthread @!mips
|
2006-08-03 11:27:59 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-23 18:16:45 +00:00
|
|
|
define Package/jamvm/description
|
|
|
|
JamVM is a new Java Virtual Machine which conforms to the JVM
|
|
|
|
specification version (blue book). In comparison to most other VM's (free
|
|
|
|
and commercial) it is extremely small.However, unlike other small VMs
|
|
|
|
(e.g. KVM) it is designed to support the full specification, and includes
|
|
|
|
support for object finalisation, Soft/Weak/Phantom References, the Java
|
|
|
|
Native Interface (JNI) and the Reflection API.
|
2006-08-03 11:27:59 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-23 18:16:45 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
2009-05-22 13:09:45 +00:00
|
|
|
--with-classpath-install-dir=/usr \
|
|
|
|
--disable-tls \
|
2007-09-23 18:16:45 +00:00
|
|
|
--enable-ffi \
|
|
|
|
--disable-int-threading \
|
|
|
|
|
2006-08-03 11:27:59 +00:00
|
|
|
define Build/Compile
|
2008-01-03 23:08:58 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2009-04-29 12:56:17 +00:00
|
|
|
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
2008-01-03 23:08:58 +00:00
|
|
|
all
|
2006-08-03 11:27:59 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-04 15:13:56 +00:00
|
|
|
ifneq ($(ARCH),mips)
|
|
|
|
define Package/jamvm/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/jamvm $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/share/jamvm
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/classes.zip $(1)/usr/share/jamvm/
|
2007-04-04 15:13:56 +00:00
|
|
|
endef
|
|
|
|
endif
|
2006-08-03 11:27:59 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,jamvm))
|
2007-09-23 18:16:45 +00:00
|
|
|
|