mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-04-29 00:32:14 +02:00
Reviewers: cordlandwehr Reviewed By: cordlandwehr Differential Revision: https://phabricator.kde.org/D7019
30 lines
902 B
Plaintext
30 lines
902 B
Plaintext
inherit cmake_qt5
|
|
|
|
EXTRA_OECMAKE += " \
|
|
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST} \
|
|
-DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/usr/lib/cmake \
|
|
-DBUILD_TESTING=OFF \
|
|
"
|
|
|
|
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"
|
|
|
|
FILES_${PN}-dev += " \
|
|
${libdir}/cmake/KF5*/*.cmake \
|
|
${prefix}/mkspecs/modules/qt_*.pri \
|
|
"
|