add missing codepage closes #1619 Thanks Luboš Staněk
[openwrt/svn-archive/archive.git] / lang / jamvm / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=jamvm
12 PKG_VERSION:=1.4.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/jamvm
17 PKG_MD5SUM:=1b7bc9928c534412e062685a4191651d
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/jamvm
25 SECTION:=lang
26 CATEGORY:=Languages
27 DEPENDS:=+libffi-sable @!mips
28 TITLE:=A compact Java Virtual Machine
29 DESCRIPTION:=\
30 JamVM is a new Java Virtual Machine which conforms to the JVM \\\
31 specification version (blue book). In comparison to most other VM's \\\
32 (free and commercial) it is extremely small.However, unlike other \\\
33 small VMs (e.g. KVM) it is designed to support the full \\\
34 specification, and includes support for object finalisation, \\\
35 Soft/Weak/Phantom References, the Java Native Interface (JNI) and the \\\
36 Reflection API.
37 URL:=http://sourceforge.net/projects/jamvm
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --enable-ffi \
43 --disable-int-threading \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) all
49 endef
50
51 ifneq ($(ARCH),mips)
52 define Package/jamvm/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/jamvm $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/share/jamvm
56 $(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/classes.zip $(1)/usr/share/jamvm/
57 endef
58 endif
59
60 $(eval $(call BuildPackage,jamvm))