diff options
author | David Woodfall <dave@dawoodfall.net> | 2018-08-25 00:37:02 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-09-23 06:11:02 +0700 |
commit | fc730b801383c0943af4706fc1f9b83a7073e509 (patch) | |
tree | c5f2fb6130362184e0ff9f0223f88894e8beb111 /libraries/qt5-legacy/profile.d | |
parent | 8a3430f7e7ae4b79cfde2366c227a6e66a1e38c6 (diff) |
libraries/qt5-legacy: Added (a multi-platform C++ GUI toolkit).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/qt5-legacy/profile.d')
-rw-r--r-- | libraries/qt5-legacy/profile.d/qt5.csh | 17 | ||||
-rw-r--r-- | libraries/qt5-legacy/profile.d/qt5.sh | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/libraries/qt5-legacy/profile.d/qt5.csh b/libraries/qt5-legacy/profile.d/qt5.csh new file mode 100644 index 0000000000000..ec1ecd9befee1 --- /dev/null +++ b/libraries/qt5-legacy/profile.d/qt5.csh @@ -0,0 +1,17 @@ +#!/bin/csh +# Environment path variables for the Qt package: +if ( ! $?QT5DIR ) then + # It's best to use the generic directory to avoid + # compiling in a version-containing path: + if ( -d /usr/lib@LIBDIRSUFFIX@/qt5 ) then + setenv QT5DIR /usr/lib@LIBDIRSUFFIX@/qt5 + else + # Find the newest Qt directory and set $QT5DIR to that: + foreach qtd ( /usr/lib@LIBDIRSUFFIX@/qt5-* ) + if ( -d $qtd ) then + setenv QT5DIR $qtd + endif + end + endif +endif +set path = ( $path $QT5DIR/bin ) diff --git a/libraries/qt5-legacy/profile.d/qt5.sh b/libraries/qt5-legacy/profile.d/qt5.sh new file mode 100644 index 0000000000000..8ee075e17eea4 --- /dev/null +++ b/libraries/qt5-legacy/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 |