kdesignerplugin: really fix cross

This commit is contained in:
Jürgen Buchmüller 2018-02-22 10:29:42 +01:00
parent da926218d5
commit 27c9d80299

View file

@ -18,9 +18,11 @@ if [ -n "$CROSS_BUILD" ]; then
configure_args+=" -DMEINPROC5_EXECUTABLE=/usr/bin/meinproc5"
fi
pre_configure() {
post_configure() {
if [ -n "$CROSS_BUILD" ]; then
sed -i KF5DesignerPluginConfig.cmake -e "s;KF5::;/usr/bin/;"
# Hack to use host's kgendesignerplugin
find build/src/CMakeFiles -name "*.make" -exec sed -i "{}" \
-e "s;KF5::\(kgendesignerplugin\);/usr/bin/\1;" \;
fi
}