aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/cacao/cacao_2d6f6c14daf9.bb
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-core/cacao/cacao_2d6f6c14daf9.bb')
-rw-r--r--recipes-core/cacao/cacao_2d6f6c14daf9.bb66
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes-core/cacao/cacao_2d6f6c14daf9.bb b/recipes-core/cacao/cacao_2d6f6c14daf9.bb
new file mode 100644
index 0000000..91a03fc
--- /dev/null
+++ b/recipes-core/cacao/cacao_2d6f6c14daf9.bb
@@ -0,0 +1,66 @@
+SUMMARY = "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-native fastjar-native classpath-initial-native classpath-native bdwgc-native virtual/java-initial-native"
+PROVIDES_class-native = "virtual/java-native"
+
+DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc"
+RPROVIDES_${PN} = "java2-runtime"
+
+SRC_URI = "https://bitbucket.org/cacaovm/cacao-staging/get/${PV}.zip \
+ file://system-boehm-gc.patch \
+ file://cacao-1.6.1-do-not-rely-on-absolute-paths.patch \
+"
+S = "${WORKDIR}/cacaovm-cacao-staging-${PV}"
+
+SRC_URI[md5sum] = "5157d0bb9eb1332f7a6b6186eaac01aa"
+SRC_URI[sha256sum] = "34b51d660d69c2a83225fd75eab5e1fac002fb5974cb4a74b7478baf923a76cd"
+
+inherit java autotools-brokensep update-alternatives pkgconfig distro_features_check
+
+REQUIRED_DISTRO_FEATURES = "x11"
+REQUIRED_DISTRO_FEATURES_class-native := ""
+
+EXTRA_OECONF_class-native = "\
+ --enable-debug \
+ --with-vm-zip=${datadir}/cacao/vm.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 \
+ --disable-libjvm \
+"
+
+CACHED_CONFIGUREVARS_class-native += "ac_cv_prog_JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial"
+
+EXTRA_OECONF = "\
+ --with-vm-zip=${datadir}/cacao/vm.zip \
+ --disable-libjvm \
+ --with-build-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \
+ --with-jni_h=${STAGING_INCDIR}/classpath \
+ --with-jni_md_h=${STAGING_INCDIR}/classpath \
+ --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
+ --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \
+ --disable-test-dependency-checks \
+"
+
+do_configure_prepend () {
+ # upgrade m4 macros in source tree
+ libtoolize --force --copy --install
+ rm -f src/mm/boehm-gc/ltmain.sh
+ mkdir -p src/mm/boehm-gc/m4
+}
+
+do_install_append_class-target() {
+ rm ${D}/${bindir}/java
+}
+
+FILES_${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}"
+FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*"
+FILES_${PN}-doc += "${datadir}/gc"
+
+BBCLASSEXTEND = "native"