diff --git a/classes/cmake_kf5.bbclass b/classes/cmake_kf5.bbclass index 7e9f11b..ce913ea 100644 --- a/classes/cmake_kf5.bbclass +++ b/classes/cmake_kf5.bbclass @@ -1,19 +1,23 @@ inherit cmake_qt5 EXTRA_OECMAKE += " \ - -DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST}" + -DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST} \ + -DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/usr/lib/cmake \ +" DEPENDS += "ecm" # FIXME: using tags gives us translations, translations require lrelease/lconvert host tools, the ecm recipe can't deal with that yet... do_configure_prepend() { rm -rf ${S}/po } # This function is rather offensive right now, but it seems to work do_install_prepend() { if [ "0" -ne $(find . -name \*.cmake | grep _usr | wc -l) ]; then sed -i 's/\"\/usr\//\"\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr) sed -i 's/\;\/usr\//\;\$\{OE_KF5_PATH_HOST_ROOT\}\/usr\//g' $(find . -name "*.cmake" | grep _usr) fi } + +BBCLASSEXTEND = "native nativesdk" diff --git a/recipes-kf5/tier1-deps/ecm.inc b/recipes-kf5/tier1-deps/ecm.inc index fa55171..4637256 100644 --- a/recipes-kf5/tier1-deps/ecm.inc +++ b/recipes-kf5/tier1-deps/ecm.inc @@ -1,21 +1,23 @@ DESCRIPTION = "Extra CMake Modules" HOMEPAGE = "https://projects.kde.org/projects/kdesupport/extra-cmake-modules" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING-CMAKE-SCRIPTS;md5=54c7042be62e169199200bc6477f04d1" PR = "r0" DEPENDS = "cmake-native qttools" SRC_URI = "git://anongit.kde.org/extra-cmake-modules;protocol=git" S = "${WORKDIR}/git" do_compile() { cmake -DCMAKE_INSTALL_PREFIX:PATH=${D}/${prefix}/ . make } do_install() { make install } FILES_${PN}-dev += " ${datadir}/ECM" + +BBCLASSEXTEND = "native nativesdk"