DESCRIPTION = "GNU Classpath standard Java libraries" HOMEPAGE = "http://www.gnu.org/software/classpath/" SECTION = "libs" PRIORITY = "optional" LICENSE = "Classpath" PBN = "classpath" DEPENDS = "virtual/javac-native fastjar-native zip-native" RPROVIDES = "" RDEPENDS_${PN} = "${PBN}-common (>= ${PV})" RDEPENDS_${PN}-examples = "java2-runtime ${PN}-awt" RDEPENDS_${PN}-tools = "java2-runtime" RPROVIDES_${PN} = "${PBN}" RPROVIDES_${PN}-common = "${PBN}-common" RPROVIDES_${PN}-gtk = "${PBN}-awt" SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz" S = "${WORKDIR}/${PBN}-${PV}" EXTRA_OECONF = "\ --with-glibj \ --with-ecj=javac \ --with-fastjar=fastjar \ --includedir=${includedir}/classpath \ --with-vm=java \ " inherit autotools # hack to get config.rpath in, it comes from gettext do_configure_prepend () { ${@['','cp ${STAGING_DATADIR_NATIVE}/automake-1.10/config.rpath ${S}'][bb.data.getVar('PREFERRED_VERSION_automake-native',d,1) == '1.10']} } do_stage() { install -d ${STAGING_INCDIR}/classpath install -m 0644 include/jni* ${STAGING_INCDIR}/classpath install -m 0644 include/jni_md.h ${STAGING_INCDIR}/classpath/ install -d ${STAGING_DATADIR}/classpath install -m 0644 lib/glibj.zip ${STAGING_DATADIR}/classpath } do_install() { autotools_do_install mv ${D}${libdir}/security ${D}${libdir}/${PBN} } # Defines the packages that this classpath recipe creates. # This allows the classpath-minimal variants to override this # again. CPPACKAGES = "${PBN}-common ${PN}-examples \ ${PN}-tools ${PN}-tools-doc \ ${PN}-gtk ${PN}-gconf" PACKAGES =+ "${CPPACKAGES}" FILES_${PN}-dev += "${libdir}/${PBN}/*.la ${incdir}/${PBN}" FILES_${PBN}-common = "${datadir}/${PBN}/glibj.zip ${libdir}/logging.properties ${libdir}/${PBN}/security" FILES_${PN}-examples = "${datadir}/${PBN}/examples" FILES_${PN}-tools = "${datadir}/${PBN}/tools.zip ${bindir}" FILES_${PN}-tools-doc = "${mandir}" FILES_${PN}-dbg += "${libdir}/${PBN}/.debug" FILES_${PN}-doc = "${infodir}" # gcjwebplugin - not built yet #FILES_${PN}-gcjwebplugin = "${libdir}/${PBN}/libgcjwebplugin.so" FILES_${PN}-gtk = "${libdir}/${PBN}/libgtkpeer.so ${libdir}/${PBN}/libjawt.so" FILES_${PN}-gconf = "${libdir}/${PBN}/libgconfpeer.so" FILES_${PN} = "${libdir}/${PBN}/lib*so*"