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