1 DESCRIPTION = "Kaffe is a clean room implementation of the Java Virtual Machine"
2 HOMEPAGE = "http://www.kaffe.org/"
3 LICENSE = "GPL LGPL W3C Classpath BSD"
5 DEPENDS = "jikes-native fastjar-native libffi zip-native"
7 SRC_URI += "file://disable-automake-checks.patch;patch=1"
9 inherit autotools gettext
11 EXTRA_OECONF = "--with-engine=intrp \
13 --with-threads=unix-pthreads \
19 CFLAGS += "-D_GNU_SOURCE"
21 # kaffe installs to non-standard locations. apply a similar workaround to
22 # the one used in debian. i.e. override prefix
24 if [ -x ${S}/configure ] ; then
25 cfgcmd="${S}/configure \
26 --build=${BUILD_SYS} \
28 --target=${TARGET_SYS} \
29 --prefix=${libdir}/${PN} \
30 --datadir=${datadir} \
31 --sysconfdir=${sysconfdir} \
32 --sharedstatedir=${sharedstatedir}/${PN} \
33 --includedir=${includedir} \
34 --oldincludedir=${oldincludedir} \
35 --infodir=${infodir} \
39 oenote "Running $cfgcmd..."
40 $cfgcmd || oefatal "oe_runconf failed"
42 oefatal "no configure script found"
46 PACKAGES =+ "${PN}-common"
47 FILES_${PN} += "${libdir}/${PN}"
48 RDEPENDS_${PN} = "${PN}-common (>= ${PV})"
49 FILES_${PN}-common = "${libdir}/${PN}/jre/lib/*.jar"
54 # move partially duplicate stuff to a single location
55 mv -f ${D}${libdir}/${PN}/bin/* ${D}${libdir}/${PN}/jre/bin
56 rmdir ${D}${libdir}/${PN}/bin
57 cd ${D}${libdir}/${PN} && ln -s jre/bin
60 # use update-alternatives for the various wrapper scripts
61 alternative_names = "appletviewer \
76 pkg_postinst_${PN} () {
77 for name in ${alternative_names}; do
78 update-alternatives --install ${bindir}/$name $name ${libdir}/${PN}/jre/bin/$name 300
83 for name in ${alternative_names}; do
84 update-alternatives --remove $name ${libdir}/${PN}/jre/bin/$name