mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
The change was performed as follows: - it was checked that the COPYING.MIT license was present with the initial commit and such each contributor was awere of the license - mail was around to all previous contributors to check this assumption (mail was not replied by Hannah and Sebastian); every reply was a confirmation of the assumed MIT licensing - all copyright information were recovered from the respective Git commits - reuse lint was to used to check the REUSE conformance
64 lines
2.0 KiB
Plaintext
64 lines
2.0 KiB
Plaintext
# SPDX-FileCopyrightText: 2014 Johan Thelin <johan.thelin@pelagicore.com>
|
|
# SPDX-FileCopyrightText: 2016 Sébastien Taylor <sebastien@au-zone.com>
|
|
# SPDX-FileCopyrightText: 2017-2019 Volker Krause <vkrause@kde.org>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
inherit cmake_qt5
|
|
|
|
EXTRA_OECMAKE_class-native += " \
|
|
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST} \
|
|
-DBUILD_TESTING=OFF \
|
|
-DBUILD_DESIGNERPLUGIN=OFF \
|
|
"
|
|
|
|
EXTRA_OECMAKE_class-target += " \
|
|
-DOE_KF5_PATH_HOST_ROOT=${STAGING_DIR_HOST} \
|
|
-DBUILD_TESTING=OFF \
|
|
-DKF5_HOST_TOOLING=${STAGING_DIR_NATIVE}/${libdir}/cmake \
|
|
-DBUILD_DESIGNERPLUGIN=OFF \
|
|
"
|
|
|
|
DEPENDS += "extra-cmake-modules qttools-native"
|
|
|
|
# don't bother with translations for host tools
|
|
do_configure_prepend_class-native() {
|
|
rm -rf ${S}/po
|
|
}
|
|
|
|
do_compile_prepend() {
|
|
export XDG_DATA_DIRS=${STAGING_DATADIR}:$XDG_DATA_DIRS
|
|
export LD_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE}:$LD_LIBRARY_PATH
|
|
}
|
|
|
|
# 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}/dbus-1/system-services/*.service \
|
|
${datadir}/dbus-1/system.d/*.conf \
|
|
${datadir}/knotifications5/*.notifyrc \
|
|
${datadir}/kservices5/*.desktop \
|
|
${datadir}/kservices5/*.protocol \
|
|
${datadir}/kservicetypes5/*.desktop \
|
|
${datadir}/kservices5/*.desktop \
|
|
${datadir}/polkit-1/actions/*.policy \
|
|
"
|
|
|
|
FILES_${PN}-dev += " \
|
|
${datadir}/dbus-1/interfaces/*.xml \
|
|
${datadir}/kdevappwizard/templates/*.tar.bz2 \
|
|
${datadir}/qlogging-categories5 \
|
|
${libdir}/cmake \
|
|
${libdir}/plugins/designer/*.so \
|
|
${prefix}/mkspecs/modules/qt_*.pri \
|
|
"
|