mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
Summary: Also, add a temporary workaround for ECM requiring lrelease/lconvert host tools if the KF5 sources include translations (which they do when using tags). We of course need to fix that eventually, but right now that just prevents anything from building. Reviewers: cordlandwehr Reviewed By: cordlandwehr Subscribers: #frameworks Tags: #frameworks Differential Revision: https://phabricator.kde.org/D6976
20 lines
674 B
Plaintext
20 lines
674 B
Plaintext
inherit cmake_qt5
|
|
|
|
EXTRA_OECMAKE += " \
|
|
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST}"
|
|
|
|
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
|
|
}
|