0859da2f29936ee266ebfc2156ade86ae931168a
[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.1
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=ed79d6b60e50b007614831f8c28321ac
15
16 PKG_SOURCE_URL:=@SF/jamvm
17
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
19 PKG_CAT:=zcat
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/jamvm
26 SECTION:=lang
27 CATEGORY:=Languages
28 DEPENDS:=+libffi-sable
29 TITLE:=A compact Java Virtual Machine
30 DESCRIPTION:=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,--enable-ffi)
42 endef
43
44 define Build/Compile
45 rm -rf $(PKG_INSTALL_DIR)
46 mkdir -p $(PKG_INSTALL_DIR)/usr/bin
47 mkdir -p $(PKG_INSTALL_DIR)/usr/share/jamvm
48 $(MAKE) -C $(PKG_BUILD_DIR)/src \
49 $(TARGET_CONFIGURE_OPTS)
50 $(CP) $(PKG_BUILD_DIR)/src/jamvm $(PKG_INSTALL_DIR)/usr/bin
51 $(MAKE) -C $(PKG_BUILD_DIR)/lib
52 $(CP) $(PKG_BUILD_DIR)/lib/classes.zip $(PKG_INSTALL_DIR)/usr/share/jamvm
53 endef
54
55
56 define Package/jamvm/install
57 install -d -m0755 $(1)/usr/bin
58 install -d -m0755 $(1)/usr/share/jamvm
59 $(CP) $(PKG_INSTALL_DIR)/usr/bin/jamvm $(1)/usr/bin
60 $(CP) $(PKG_INSTALL_DIR)/usr/share/jamvm/classes.zip $(1)/usr/share/jamvm
61 endef
62
63 $(eval $(call BuildPackage,jamvm))