mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
13 lines
582 B
Plaintext
13 lines
582 B
Plaintext
# SPDX-FileCopyrightText: 2023 Justin Hammond <justin@dynam.ac>
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
#The Cmake files include the sysroot directory to various library include files, delete the actual sysroot from the path.
|
|
do_install:prepend:class-target() {
|
|
if [ "0" -ne $(find . -name \*.cmake | grep '_usr\|Export' | wc -l) ]; then
|
|
echo sed -i 's#'${RECIPE_SYSROOT}/usr'#\$\{_IMPORT_PREFIX\}#g' $(find . -name "*.cmake" | grep '_usr\|Export' )
|
|
sed -i 's#'${RECIPE_SYSROOT}/usr'#\$\{_IMPORT_PREFIX\}#g' $(find . -name "*.cmake" | grep '_usr\|Export' )
|
|
fi
|
|
}
|