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