diff options
Diffstat (limited to 'recipes-core/cacao/cacao_git.bb')
-rw-r--r-- | recipes-core/cacao/cacao_git.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes-core/cacao/cacao_git.bb b/recipes-core/cacao/cacao_git.bb new file mode 100644 index 0000000..1a61e12 --- /dev/null +++ b/recipes-core/cacao/cacao_git.bb | |||
@@ -0,0 +1,66 @@ | |||
1 | SUMMARY = "CacaoVM for use as OpenEmbedded's Java VM" | ||
2 | HOMEPAGE = "http://www.cacaojvm.org/" | ||
3 | LICENSE = "GPL-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
5 | SECTION = "interpreters" | ||
6 | |||
7 | DEPENDS_class-native = "zlib-native libtool-native ecj-initial-native fastjar-native classpath-initial-native classpath-native bdwgc-native virtual/java-initial-native" | ||
8 | PROVIDES_class-native = "virtual/java-native" | ||
9 | |||
10 | DEPENDS = "zlib libtool classpath virtual/javac-native bdwgc" | ||
11 | RPROVIDES_${PN} = "java2-runtime" | ||
12 | |||
13 | SRCREV = "6c4694f9bd175386a8c451531e9a5ad97aa23b6f" | ||
14 | SRC_URI = "git://bitbucket.org/cacaovm/cacao.git;protocol=https \ | ||
15 | file://0001-java.in-Do-not-use-hardcode-paths.patch \ | ||
16 | file://0002-cacao-use-system-s-boehm-garbage-collector.patch \ | ||
17 | " | ||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | inherit java autotools-brokensep update-alternatives pkgconfig features_check | ||
21 | |||
22 | REQUIRED_DISTRO_FEATURES = "x11" | ||
23 | REQUIRED_DISTRO_FEATURES_class-native := "" | ||
24 | |||
25 | EXTRA_OECONF_class-native = "\ | ||
26 | --enable-debug \ | ||
27 | --with-vm-zip=${datadir}/cacao/vm.zip \ | ||
28 | --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \ | ||
29 | --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \ | ||
30 | --with-jni_md_h=${includedir}/classpath \ | ||
31 | --with-jni_h=${includedir}/classpath \ | ||
32 | --disable-test-dependency-checks \ | ||
33 | --disable-libjvm \ | ||
34 | " | ||
35 | |||
36 | CACHED_CONFIGUREVARS_class-native += "ac_cv_prog_JAVAC=${STAGING_BINDIR_NATIVE}/ecj-initial" | ||
37 | |||
38 | EXTRA_OECONF = "\ | ||
39 | --with-vm-zip=${datadir}/cacao/vm.zip \ | ||
40 | --disable-libjvm \ | ||
41 | --with-build-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \ | ||
42 | --with-jni_h=${STAGING_INCDIR}/classpath \ | ||
43 | --with-jni_md_h=${STAGING_INCDIR}/classpath \ | ||
44 | --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \ | ||
45 | --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \ | ||
46 | --disable-test-dependency-checks \ | ||
47 | " | ||
48 | |||
49 | do_configure_prepend () { | ||
50 | # upgrade m4 macros in source tree | ||
51 | libtoolize --force --copy --install | ||
52 | rm -f src/mm/boehm-gc/ltmain.sh | ||
53 | mkdir -p src/mm/boehm-gc/m4 | ||
54 | } | ||
55 | |||
56 | do_install_append_class-target() { | ||
57 | rm ${D}/${bindir}/java | ||
58 | } | ||
59 | |||
60 | FILES_${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}" | ||
61 | FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*" | ||
62 | FILES_${PN}-doc += "${datadir}/gc" | ||
63 | |||
64 | BBCLASSEXTEND = "native" | ||
65 | |||
66 | COMPATIBLE_MACHINE_aarch64 = "-" | ||