mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
inherit cmake_qt5
|
|
|
|
EXTRA_OECMAKE += " \
|
|
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST} \
|
|
-DBUILD_TESTING=OFF \
|
|
"
|
|
|
|
DEPENDS += "extra-cmake-modules qttools-native"
|
|
|
|
# don't bother with translations for host tools
|
|
do_configure_prepend_class-native() {
|
|
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} += " \
|
|
${datadir}/dbus-1/services/*.service \
|
|
${datadir}/knotifications5/*.notifyrc \
|
|
${datadir}/kservices5/*.desktop \
|
|
${datadir}/kservices5/*.protocol \
|
|
${datadir}/kservicetypes5/*.desktop \
|
|
${datadir}/kservices5/*.desktop \
|
|
"
|
|
|
|
FILES_${PN}-dev += " \
|
|
${datadir}/dbus-1/interfaces/*.xml \
|
|
${datadir}/kdevappwizard/templates/*.tar.bz2 \
|
|
${libdir}/cmake/KF5*/*.cmake \
|
|
${prefix}/mkspecs/modules/qt_*.pri \
|
|
"
|