01d0cdccdb4e3a22c95233472216d6208cc56416
[packages.git] / lang / jamvm / Makefile
1 #
2 # Copyright (C) 2006-2008 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.5.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/jamvm
16 PKG_MD5SUM:=a965452442cdbfc94caba57d0dd25a8f
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/jamvm
21   SUBMENU:=Java
22   SECTION:=lang
23   CATEGORY:=Languages
24   TITLE:=A compact Java Virtual Machine
25   URL:=http://sourceforge.net/projects/jamvm
26   DEPENDS:=+libffi-sable +libpthread @!mips
27 endef
28
29 define Package/jamvm/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 (free 
32  and commercial) it is extremely small.However, unlike other small VMs 
33  (e.g. KVM) it is designed to support the full specification, and includes 
34  support for object finalisation, Soft/Weak/Phantom References, the Java 
35  Native Interface (JNI) and the Reflection API.
36 endef
37
38 CONFIGURE_ARGS+= \
39         --enable-ffi \
40         --disable-int-threading \
41
42 define Build/Compile    
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
45                 all
46 endef
47
48 ifneq ($(ARCH),mips)
49   define Package/jamvm/install  
50         $(INSTALL_DIR) $(1)/usr/bin
51         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/jamvm $(1)/usr/bin/
52         $(INSTALL_DIR) $(1)/usr/share/jamvm
53         $(INSTALL_DATA) $(PKG_BUILD_DIR)/lib/classes.zip $(1)/usr/share/jamvm/
54   endef
55 endif
56
57 $(eval $(call BuildPackage,jamvm))
58