2022-04-05 06:48:20 +02:00
|
|
|
#!@TERMUX_PREFIX@/bin/sh
|
2021-10-26 18:34:57 +02:00
|
|
|
|
2022-04-05 06:48:20 +02:00
|
|
|
PREFIX="@TERMUX_PREFIX@"
|
2021-10-26 18:34:57 +02:00
|
|
|
|
|
|
|
if [ `uname -o` = 'Android' ]; then
|
|
|
|
echo "Patching Qt installation configuration files ..."
|
|
|
|
|
|
|
|
## Make sure the cmake configurations point to the on-device programs instead of the host tools
|
|
|
|
sed -i \
|
|
|
|
's|install_prefix}/opt/qt/cross/|install_prefix}/|g' \
|
|
|
|
"${PREFIX}/lib/cmake/Qt5Help/Qt5HelpConfigExtras.cmake"
|
|
|
|
sed -i \
|
|
|
|
's|install_prefix}/opt/qt/cross/|install_prefix}/|g' \
|
|
|
|
"${PREFIX}/lib/cmake/Qt5LinguistTools/Qt5LinguistToolsConfig.cmake"
|
|
|
|
fi
|