3c15444fbe933ae63029cc6f08ea33fe075d773e
[packages.git] / lang / jamvm / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=jamvm
11 PKG_VERSION:=1.6.0-git
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=git://git.berlios.de/jamvm
16 PKG_SOURCE_VERSION:=4617da717ecb05654ea5bb9572338061106a414d
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19 PKG_MIRROR_MD5SUM:=66a728a3cb8dad0e3773035c4049eb5f
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/jamvm
27   SUBMENU:=Java
28   SECTION:=lang
29   CATEGORY:=Languages
30   TITLE:=A compact Java Virtual Machine
31   URL:=http://sourceforge.net/projects/jamvm
32   DEPENDS:=+zlib +libpthread +librt +classpath @!avr32
33 endef
34
35 define Package/jamvm/description
36  JamVM is a new Java Virtual Machine which conforms to the JVM 
37  specification version (blue book). In comparison to most other VM's (free 
38  and commercial) it is extremely small.However, unlike other small VMs 
39  (e.g. KVM) it is designed to support the full specification, and includes 
40  support for object finalisation, Soft/Weak/Phantom References, the Java 
41  Native Interface (JNI) and the Reflection API.
42 endef
43
44 CONFIGURE_ARGS += \
45         --with-java-runtime-library=gnuclasspath \
46         --with-classpath-install-dir=/usr \
47         --disable-int-inlining \
48         --disable-shared \
49         --without-pic
50
51 MAKE_FLAGS += \
52         GLIBJ_ZIP=$(STAGING_DIR)/usr/share/classpath/glibj.zip
53
54 define Package/jamvm/install
55         $(INSTALL_DIR) $(1)/usr
56         $(CP) \
57                 $(PKG_INSTALL_DIR)/usr/bin \
58                 $(PKG_INSTALL_DIR)/usr/share \
59                 $(1)/usr/
60 endef
61
62 define Build/InstallDev
63         $(CP) $(PKG_INSTALL_DIR)/* $(1)/
64 endef
65
66 $(eval $(call BuildPackage,jamvm))
67