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