aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/cacao
diff options
context:
space:
mode:
authorHenning Heinold <henning@itconsulting-heinold.de>2014-01-04 22:11:55 +0100
committerHenning Heinold <henning@itconsulting-heinold.de>2014-01-09 01:25:58 +0100
commitff21c25720a75ac8740ea7a795ebf0c849f42522 (patch)
tree1ca5818033410a96dbba8acf14515228cbd39712 /recipes-core/cacao
parentf03bae2219cc56307f76d1a37e242803c8ea1f82 (diff)
downloadmeta-java-ff21c25720a75ac8740ea7a795ebf0c849f42522.tar.gz
meta-java-ff21c25720a75ac8740ea7a795ebf0c849f42522.tar.bz2
meta-java-ff21c25720a75ac8740ea7a795ebf0c849f42522.zip
cacao: add recipe for additional java vm cacao version 1.6.1
Diffstat (limited to 'recipes-core/cacao')
-rw-r--r--recipes-core/cacao/cacao_1.6.1.bb52
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-core/cacao/cacao_1.6.1.bb b/recipes-core/cacao/cacao_1.6.1.bb
new file mode 100644
index 0000000..006ee02
--- /dev/null
+++ b/recipes-core/cacao/cacao_1.6.1.bb
@@ -0,0 +1,52 @@
+DESCRIPTION = "CacaoVM for use as OpenEmbedded's Java VM"
+HOMEPAGE = "http://www.cacaojvm.org/"
+LICENSE = "GPL-2.0"
+LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
+SECTION = "interpreters"
+
+DEPENDS_class-native = "zlib-native libtool-native ecj-initial fastjar-native classpath-native"
+PROVIDES_class-native = "virtual/java-native"
+
+DEPENDS = "zlib libtool classpath virtual/javac-native"
+DEPENDS_${PN} = "classpath"
+RPROVIDES_${PN} = "java2-runtime"
+
+SRC_URI = "http://www.complang.tuwien.ac.at/cacaojvm/download/cacao-${PV}/cacao-${PV}.tar.xz"
+SRC_URI[md5sum] = "2c18478404afd1cffdd15ad1e9d85a57"
+SRC_URI[sha256sum] = "eecc8bd1b528a028f43d9d1d0c06b97855bbf1d40e03826d911ebbc0b6971e12"
+
+inherit java autotools update-alternatives
+# --with-vm-zip=${datadir}/cacao/vm.zip
+EXTRA_OECONF_class-native = "\
+ --enable-debug \
+ --with-vm-zip=${datadir}/cacao/vm.zip \
+ --disable-libjvm \
+ \
+ --with-classpath-libdir=${libdir_jni}:${libdir} \
+ --with-classpath-includedir=${includedir}/classpath \
+ --with-classpath-classes=${datadir}/classpath/glibj.zip \
+ \
+ --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
+ --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \
+ --with-jni_md_h=${includedir}/classpath \
+ --with-jni_h=${includedir}/classpath \
+ --disable-test-dependency-checks \
+"
+
+CACHED_CONFIGUREVARS_class-native += "ac_cv_prog_JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial"
+
+do_configure_prepend () {
+ rm src/mm/boehm-gc/ltmain.sh
+ mkdir -p src/mm/boehm-gc/m4
+}
+
+#FILES_${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}"
+#FILES_${PN}-doc = "${datadir}/man"
+#FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*"
+
+ALTERNATIVE_NAME = "java"
+ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"
+ALTERNATIVE_PATH = "${bindir}/cacao"
+ALTERNATIVE_PRIORITY = "10"
+
+BBCLASSEXTEND = "native"