aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/cacao/cacao-native.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/cacao/cacao-native.inc')
-rw-r--r--recipes/cacao/cacao-native.inc36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/cacao/cacao-native.inc b/recipes/cacao/cacao-native.inc
new file mode 100644
index 0000000000..fc86e684c5
--- /dev/null
+++ b/recipes/cacao/cacao-native.inc
@@ -0,0 +1,36 @@
+DESCRIPTION = "CacaoVM for use as OpenEmbedded's Java VM"
+HOMEPAGE = "http://www.cacaojvm.org/"
+LICENSE = "GPL"
+PRIORITY = "optional"
+SECTION = "interpreters"
+
+DEPENDS = "zlib-native libtool-native classpath-native ecj-initial fastjar-native"
+
+PROVIDES = "virtual/java-native"
+
+S = "${WORKDIR}/cacao-${PV}"
+
+inherit native autotools
+
+EXTRA_OECONF = "\
+ --enable-debug \
+ --with-vm-zip=${datadir}/cacao/vm.zip \
+ \
+ --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 \
+ "
+
+# force usage of ecj-initial
+# Important: Not specifying the bootclasspath argument here is only supported
+# for Cacao >= 0.99. Earlier Cacao may need the BCP set to a Java5-capable
+# class library.
+export JAVAC="${STAGING_BINDIR_NATIVE}/ecj-initial"
+
+# force usage of fastjar
+export JAR="fastjar"