summaryrefslogtreecommitdiffstats
path: root/recipes-core/jamvm/jamvm.inc
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2011-11-12 20:58:34 +0100
committerHenning Heinold <heinold@inf.fu-berlin.de>2011-11-26 23:41:44 +0100
commit57e069cde6617f00ca8834a82c6f360af43d5067 (patch)
tree48cbe15e96d217c45acfa64b0c13aad8c6424980 /recipes-core/jamvm/jamvm.inc
downloadmeta-java-57e069cde6617f00ca8834a82c6f360af43d5067.tar.gz
meta-java: initial commit
* taken over mostly stuff from oe classic * cleaned up recipes * added license checksums * bump icedtea6-native to 1.8.11 * use jamvm from git as native
Diffstat (limited to 'recipes-core/jamvm/jamvm.inc')
-rw-r--r--recipes-core/jamvm/jamvm.inc47
1 files changed, 47 insertions, 0 deletions
diff --git a/recipes-core/jamvm/jamvm.inc b/recipes-core/jamvm/jamvm.inc
new file mode 100644
index 0000000..4eab1c1
--- /dev/null
+++ b/recipes-core/jamvm/jamvm.inc
@@ -0,0 +1,47 @@
1DESCRIPTION = "A compact Java Virtual Machine which conforms to the JVM specification version 2."
2HOMEPAGE = "http://jamvm.sourceforge.net/"
3LICENSE = "GPL"
4LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
5
6DEPENDS = "zlib classpath virtual/javac-native libffi"
7DEPENDS_virtclass-native = "zlib-native classpath-native ecj-initial libffi-native"
8
9RDEPENDS_${PN} = "classpath"
10RDEPENDS_${PN}_virtclass-native = ""
11
12PROVIDES_virtclass-native = "virtual/java-native"
13RPROVIDES_${PN} = "java2-runtime"
14RPROVIDES_${PN}_virtclass-native = ""
15
16BBCLASSEXTEND = "native"
17
18SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \
19 file://jamvm-jni_h-noinst.patch \
20 file://libffi.patch \
21 "
22
23
24inherit java autotools update-alternatives
25
26# This uses 32 bit arm, so force the instruction set to arm, not thumb
27ARM_INSTRUCTION_SET = "arm"
28
29
30EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi"
31
32# Enforce usage of ecj-initial.
33EXTRA_OMAKE_virtclass-native = "JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial"
34
35do_install_append_virtclass-native() {
36 install -d ${D}${bindir}
37 ln -s ${bindir}/jamvm ${D}${bindir}/java
38}
39
40PRIVATE_LIBS = "libjvm.so"
41
42FILES_${PN} += "${libdir}/jamvm/lib*.so"
43
44ALTERNATIVE_NAME = "java"
45ALTERNATIVE_PATH = "${bindir}/jamvm"
46ALTERNATIVE_PRIORITY = "4"
47