merge of '49118a4c6035353c0f8cf1aa30297dd36e43241f'
[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 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 PROVIDES = "cacao virtual/java"
14 RPROVIDES_cacao = "java2-runtime"
15
16 inherit java autotools update-alternatives
17
18 # Old and new options do not interfere.
19 EXTRA_OECONF = "\
20         ${@['','--enable-softfloat'][bb.data.getVar('TARGET_FPU',d,1) == 'soft']} \
21         --enable-debug \
22         --with-vm-zip=${datadir}/cacao/vm.zip \
23         --with-cacaoh=${STAGING_BINDIR_NATIVE}/cacaoh-${PV} \
24   ${OLD_CACAO_OECONF} \
25   ${NEW_CACAO_OECONF} \
26   "
27
28 # Options needed for Cacao < 0.99 (including hg snapshots)
29 OLD_CACAO_OECONF = "\
30         --with-classpath-includedir=${STAGING_INCDIR}/classpath \
31         --with-classpath-classes=${STAGING_DATADIR}/classpath/glibj.zip \
32         --with-target-classpath-classes=${datadir}/classpath/glibj.zip \
33         --with-classpath-libdir=${libdir_jni}:${libdir} \
34         "
35
36 # Options needed for Cacao >= 0.99
37 NEW_CACAO_OECONF = "\
38   --with-build-java-runtime-library-classes=${STAGING_DATADIR}/classpath/glibj.zip \
39   --with-java-runtime-library-classes=${datadir}/classpath/glibj.zip \
40   --with-java-runtime-library-libdir=${libdir_jni}:${libdir} \
41   --with-jni_md_h=${STAGING_INCDIR}/classpath \
42   --with-jni_h=${STAGING_INCDIR}/classpath \
43   "
44
45 PACKAGES = "${PN} ${PN}-doc ${PN}-dbg"
46
47 FILES_${PN} = "${bindir}/${PN} ${libdir}/lib*.so* ${datadir}/${PN}"
48 FILES_${PN}-doc = "${datadir}/man"
49 FILES_${PN}-dbg += "${bindir}/.debug ${libdir}/.debug/lib*.so*"
50
51 ALTERNATIVE_NAME = "java"
52 ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"
53 ALTERNATIVE_PATH = "${bindir}/cacao"
54 ALTERNATIVE_PRIORITY = "10"