333257fb94
- enable on mipsel (closes: #4027) - set a reasonable max heap size for embedded devices (closes: #3157) can always be overridden with cmdline args - add dependency on libptread - remove duplicate use of TARGET_CFLAGS - bump release number git-svn-id: svn://svn.openwrt.org/openwrt/packages@12656 3c298f89-4303-0410-b956-a3cf2f4a3e73
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2006-2008 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.5.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@SF/jamvm
|
|
PKG_MD5SUM:=a965452442cdbfc94caba57d0dd25a8f
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/jamvm
|
|
SUBMENU:=Java
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
TITLE:=A compact Java Virtual Machine
|
|
URL:=http://sourceforge.net/projects/jamvm
|
|
DEPENDS:=+libffi-sable +libpthread @!mips
|
|
endef
|
|
|
|
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.
|
|
endef
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--enable-ffi \
|
|
--disable-int-threading \
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
|
|
all
|
|
endef
|
|
|
|
ifneq ($(ARCH),mips)
|
|
define Package/jamvm/install
|
|
$(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/
|
|
endef
|
|
endif
|
|
|
|
$(eval $(call BuildPackage,jamvm))
|
|
|