2006-10-30 13:51:50 +00:00
|
|
|
#
|
2006-08-03 11:27:59 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=jamvm
|
|
|
|
PKG_VERSION:=1.4.1
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-31 08:44:54 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/jamvm
|
|
|
|
PKG_MD5SUM:=ed79d6b60e50b007614831f8c28321ac
|
2006-08-03 11:27:59 +00:00
|
|
|
PKG_CAT:=zcat
|
2006-10-31 08:44:54 +00:00
|
|
|
|
2006-08-03 11:27:59 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/jamvm
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
DEPENDS:=+libffi-sable
|
|
|
|
TITLE:=A compact Java Virtual Machine
|
2006-10-31 08:44:54 +00:00
|
|
|
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
|
|
|
URL:=http://sourceforge.net/projects/jamvm
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
2006-10-31 08:44:54 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-ffi \
|
|
|
|
)
|
2006-08-03 11:27:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src \
|
|
|
|
$(TARGET_CONFIGURE_OPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
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/
|
2006-08-03 11:27:59 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,jamvm))
|