summaryrefslogtreecommitdiff
path: root/libraries/qt5/profile.d/qt5.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/qt5/profile.d/qt5.sh')
-rw-r--r--libraries/qt5/profile.d/qt5.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/libraries/qt5/profile.d/qt5.sh b/libraries/qt5/profile.d/qt5.sh
new file mode 100644
index 0000000000..8ee075e17e
--- /dev/null
+++ b/libraries/qt5/profile.d/qt5.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+# Environment variables for the Qt package.
+#
+# It's best to use the generic directory to avoid
+# compiling in a version-containing path:
+if [ -d /usr/lib@LIBDIRSUFFIX@/qt5 ]; then
+ QT5DIR=/usr/lib@LIBDIRSUFFIX@/qt5
+else
+ # Find the newest Qt directory and set $QT5DIR to that:
+ for qtd in /usr/lib@LIBDIRSUFFIX@/qt5-* ; do
+ if [ -d $qtd ]; then
+ QT5DIR=$qtd
+ fi
+ done
+fi
+PATH="$PATH:$QT5DIR/bin"
+export QT5DIR