base.bbclass: Use 'unzip' for *.jar files as well.
[vuplus_openembedded] / packages / cacao / cacao.inc
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"
6
7 DEPENDS = "zlib libtool classpath binutils cacaoh-native virtual/javac-native"
8
9 # Avoid version number here, otherwise dpkg will expect a package name
10 # and cannot be satisfied with a package that provides classpath.
11 RDEPENDS = "classpath"
12
13 RPROVIDES_cacao = "java2-runtime"
14
15 inherit java autotools update-alternatives
16
17 # Configure options compatible with Cacao >= 0.99 only!
18 EXTRA_OECONF = "\
19         ${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
20         --enable-debug \
21         --enable-disassembler \
22         --with-vm-zip=${datadir}/cacao/vm.zip \
23         --with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-${PV} \
24     --with-build-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \
25     --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
26     --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \
27     --with-jni_md_h=${STAGING_INCDIR}/classpath \
28     --with-jni_h=${STAGING_INCDIR}/classpath \
29   "
30
31 PACKAGES = "${PN} ${PN}-doc ${PN}-dbg"
32
33 FILES_${PN} = "${bindir}/${PN} ${libdir}/lib*.so* ${datadir}/${PN}"
34 FILES_${PN}-doc = "${datadir}/man"
35 FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*"
36
37 ALTERNATIVE_NAME = "java"
38 ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"
39 ALTERNATIVE_PATH = "${bindir}/cacao"
40 ALTERNATIVE_PRIORITY = "10"