diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-12 20:58:34 +0100 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2011-11-26 23:41:44 +0100 |
commit | 57e069cde6617f00ca8834a82c6f360af43d5067 (patch) | |
tree | 48cbe15e96d217c45acfa64b0c13aad8c6424980 /recipes-core/jamvm/jamvm.inc | |
download | meta-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.inc | 47 |
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 @@ | |||
1 | DESCRIPTION = "A compact Java Virtual Machine which conforms to the JVM specification version 2." | ||
2 | HOMEPAGE = "http://jamvm.sourceforge.net/" | ||
3 | LICENSE = "GPL" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | ||
5 | |||
6 | DEPENDS = "zlib classpath virtual/javac-native libffi" | ||
7 | DEPENDS_virtclass-native = "zlib-native classpath-native ecj-initial libffi-native" | ||
8 | |||
9 | RDEPENDS_${PN} = "classpath" | ||
10 | RDEPENDS_${PN}_virtclass-native = "" | ||
11 | |||
12 | PROVIDES_virtclass-native = "virtual/java-native" | ||
13 | RPROVIDES_${PN} = "java2-runtime" | ||
14 | RPROVIDES_${PN}_virtclass-native = "" | ||
15 | |||
16 | BBCLASSEXTEND = "native" | ||
17 | |||
18 | SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \ | ||
19 | file://jamvm-jni_h-noinst.patch \ | ||
20 | file://libffi.patch \ | ||
21 | " | ||
22 | |||
23 | |||
24 | inherit java autotools update-alternatives | ||
25 | |||
26 | # This uses 32 bit arm, so force the instruction set to arm, not thumb | ||
27 | ARM_INSTRUCTION_SET = "arm" | ||
28 | |||
29 | |||
30 | EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi" | ||
31 | |||
32 | # Enforce usage of ecj-initial. | ||
33 | EXTRA_OMAKE_virtclass-native = "JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial" | ||
34 | |||
35 | do_install_append_virtclass-native() { | ||
36 | install -d ${D}${bindir} | ||
37 | ln -s ${bindir}/jamvm ${D}${bindir}/java | ||
38 | } | ||
39 | |||
40 | PRIVATE_LIBS = "libjvm.so" | ||
41 | |||
42 | FILES_${PN} += "${libdir}/jamvm/lib*.so" | ||
43 | |||
44 | ALTERNATIVE_NAME = "java" | ||
45 | ALTERNATIVE_PATH = "${bindir}/jamvm" | ||
46 | ALTERNATIVE_PRIORITY = "4" | ||
47 | |||