jamvm: remove unneeded host build
[feed/packages.git] / lang / jamvm / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=2.0.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_HASH:=76428e96df0ae9dd964c7a7c74c1e9a837e2f312c39e9a357fa8178f7eff80da
17
18 PKG_MAINTAINER:=Dana H. Myers <k6jq@comcast.net>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_USE_MIPS16:=0
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/jamvm
29 SUBMENU:=Java
30 SECTION:=lang
31 CATEGORY:=Languages
32 TITLE:=A compact Java Virtual Machine
33 URL:=http://jamvm.sourceforge.net/
34 DEPENDS:=+zlib +libpthread +librt +CONFIG_powerpc64:libffi @!arc @!aarch64
35 endef
36
37 define Package/jamvm/description
38 JamVM is a Java Virtual Machine which conforms to the JVM
39 specification version 2 (a.k.a, 1.2). In comparison to most other VM's (free
40 and commercial) it is extremely small. However, unlike other small VMs
41 (e.g. KVM) it is designed to support the full specification, and includes
42 support for object finalisation, Soft/Weak/Phantom References, the Java
43 Native Interface (JNI) and the Reflection API.
44 endef
45
46 CONFIGURE_ARGS += \
47 --with-java-runtime-library=gnuclasspath \
48 --with-classpath-install-dir=/usr \
49 --disable-int-inlining \
50 --disable-shared \
51 --without-pic
52
53 MAKE_FLAGS += \
54 GLIBJ_ZIP=$(STAGING_DIR)/usr/share/classpath/glibj.zip
55
56 define Package/jamvm/install
57 $(INSTALL_DIR) $(1)/usr
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/bin \
60 $(PKG_INSTALL_DIR)/usr/share \
61 $(1)/usr/
62 endef
63
64 define Build/InstallDev
65 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
66 endef
67
68 $(eval $(call BuildPackage,jamvm))