aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install-qt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/install-qt.sh')
-rwxr-xr-xscripts/install-qt.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/install-qt.sh b/scripts/install-qt.sh
index c2793b3ce..c395cb6a7 100755
--- a/scripts/install-qt.sh
+++ b/scripts/install-qt.sh
@@ -288,6 +288,13 @@ for COMPONENT in ${COMPONENTS}; do
echo "[Paths]" > ${CONF_FILE}
echo "Prefix = .." >> ${CONF_FILE}
+ # Adjust the license to be able to run qmake
+ # sed with -i requires intermediate file on Mac OS
+ PRI_FILE="${INSTALL_DIR}/${VERSION}/${SUBDIR}/mkspecs/qconfig.pri"
+ sed -i.bak 's/Enterprise/OpenSource/g' "${PRI_FILE}"
+ sed -i.bak 's/licheck.*//g' "${PRI_FILE}"
+ rm "${PRI_FILE}.bak"
+
# Print the directory so that the caller can
# adjust the PATH variable.
echo $(dirname "${CONF_FILE}")