From 57e069cde6617f00ca8834a82c6f360af43d5067 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sat, 12 Nov 2011 20:58:34 +0100 Subject: 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 --- recipes-core/jamvm/jamvm.inc | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 recipes-core/jamvm/jamvm.inc (limited to 'recipes-core/jamvm/jamvm.inc') 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 @@ +DESCRIPTION = "A compact Java Virtual Machine which conforms to the JVM specification version 2." +HOMEPAGE = "http://jamvm.sourceforge.net/" +LICENSE = "GPL" +LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" + +DEPENDS = "zlib classpath virtual/javac-native libffi" +DEPENDS_virtclass-native = "zlib-native classpath-native ecj-initial libffi-native" + +RDEPENDS_${PN} = "classpath" +RDEPENDS_${PN}_virtclass-native = "" + +PROVIDES_virtclass-native = "virtual/java-native" +RPROVIDES_${PN} = "java2-runtime" +RPROVIDES_${PN}_virtclass-native = "" + +BBCLASSEXTEND = "native" + +SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \ + file://jamvm-jni_h-noinst.patch \ + file://libffi.patch \ + " + + +inherit java autotools update-alternatives + +# This uses 32 bit arm, so force the instruction set to arm, not thumb +ARM_INSTRUCTION_SET = "arm" + + +EXTRA_OECONF = "--with-classpath-install-dir=${prefix} --libdir=${libdir}/jamvm --enable-ffi" + +# Enforce usage of ecj-initial. +EXTRA_OMAKE_virtclass-native = "JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial" + +do_install_append_virtclass-native() { + install -d ${D}${bindir} + ln -s ${bindir}/jamvm ${D}${bindir}/java +} + +PRIVATE_LIBS = "libjvm.so" + +FILES_${PN} += "${libdir}/jamvm/lib*.so" + +ALTERNATIVE_NAME = "java" +ALTERNATIVE_PATH = "${bindir}/jamvm" +ALTERNATIVE_PRIORITY = "4" + -- cgit v1.2.3-54-g00ecf