summaryrefslogtreecommitdiff
path: root/jtools
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-09 11:25:03 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-09 11:25:03 +0200
commitc8036728b0cc3e1efb72da0d1132e233c06ea4ff (patch)
tree6f4d8abdf9b075478e4e5bd214fe0a0042dd96be /jtools
parentf3ded116304e1a71bae106ed0a842984de88760d (diff)
add jamvm
Diffstat (limited to 'jtools')
-rw-r--r--jtools/jamvm/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/jtools/jamvm/Makefile b/jtools/jamvm/Makefile
new file mode 100644
index 000000000..defdbd713
--- /dev/null
+++ b/jtools/jamvm/Makefile
@@ -0,0 +1,39 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= jamvm
+PKG_VERSION:= 1.5.4
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 63220327925ace13756ae334c55a3baa
+PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=jamvm/}
+
+ifeq (Darwin,${OStype})
+CC_FOR_BUILD:=${CC_FOR_BUILD} -m32
+CXX_FOR_BUILD:=${CXX_FOR_BUILD} -m32
+endif
+
+include ../rules.mk
+
+install: ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm
+
+$(WRKBUILD)/.configured: ${WRKDIST}/.prepared
+ cd $(WRKBUILD); env \
+ CC='${CC_FOR_BUILD}' \
+ CXX='${CXX_FOR_BUILD}' \
+ ./configure \
+ --prefix=/usr \
+ --with-classpath-install-dir=$(STAGING_JAVA_HOST_DIR)/usr
+ touch $@
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.configured
+ ${MAKE} -C ${WRKBUILD} $(MAKE_TRACE)
+ touch $@
+
+${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm: $(WRKBUILD)/.compiled
+ ${MAKE} -C ${WRKBUILD} DESTDIR=$(STAGING_JAVA_HOST_DIR) install $(MAKE_TRACE)
+ $(CP) ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm ${STAGING_JAVA_HOST_DIR}/usr/lib/jvm/bin/java
+ $(CP) ${STAGING_JAVA_HOST_DIR}/usr/bin/jamvm ${STAGING_JAVA_HOST_DIR}/usr/lib/jvm/jre/bin/java
+
+include $(TOPDIR)/mk/tools.mk