cornucopia: bump SRCREV
[openembedded.git] / recipes / cacao / cacao.inc
blobba781e21287bd3bdad04639331ad0ac1192e4cdc
1 DESCRIPTION = "Cacao is a Java Virtual Machine, which uses GNU Classpath as default Java core library"
2 HOMEPAGE = "http://www.cacaojvm.org/"
3 LICENSE  = "GPL"
4 PRIORITY = "optional"
5 SECTION  = "interpreters"
7 DEPENDS = "zlib libtool classpath cacaoh-native virtual/javac-native"
9 PR = "r1"
11 # Avoid version number here, otherwise dpkg will expect a package name
12 # and cannot be satisfied with a package that provides classpath.
13 RDEPENDS_${PN} = "classpath"
15 RPROVIDES_cacao = "java2-runtime"
17 inherit java autotools update-alternatives
19 ARM_INSTRUCTION_SET = "arm"
21 PRIVATE_LIBS = "libjvm.so"
23 # Configure options compatible with Cacao >= 0.99 only!
24 EXTRA_OECONF = "\
25         ${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
26         --enable-debug \
27         --with-vm-zip=${datadir}/cacao/vm.zip \
28         --with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-${PV}/cacaoh \
29     --with-build-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \
30     --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
31     --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \
32     --with-jni_md_h=${STAGING_INCDIR}/classpath \
33     --with-jni_h=${STAGING_INCDIR}/classpath \
34         --libdir=${libdir}/cacao \
37 PACKAGES = "${PN} ${PN}-doc ${PN}-dbg"
39 FILES_${PN} = "${bindir}/${PN} ${libdir}/cacao/lib*.so ${libdir}/lib*.so* ${datadir}/${PN}"
40 FILES_${PN}-doc = "${datadir}/man"
41 FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*"
43 ALTERNATIVE_NAME = "java"
44 ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"
45 ALTERNATIVE_PATH = "${bindir}/cacao"
46 ALTERNATIVE_PRIORITY = "10"