packages/jamvm: fix whitespaces
[packages.git] / lang / jamvm / Makefile
1 #
2 # Copyright (C) 2006-2012 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.6.0-git
12 PKG_RELEASE:=2
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=git://git.berlios.de/jamvm
16 PKG_SOURCE_VERSION:=4617da717ecb05654ea5bb9572338061106a414d
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
19 PKG_MIRROR_MD5SUM:=66a728a3cb8dad0e3773035c4049eb5f
20
21 PKG_USE_MIPS16:=0
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
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://sourceforge.net/projects/jamvm
34   DEPENDS:=+zlib +libpthread +librt +classpath @!avr32
35 endef
36
37 define Package/jamvm/description
38  JamVM is a new Java Virtual Machine which conforms to the JVM
39  specification version (blue book). 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))