diff options
author | Larry Hajali <larryhaja@gmail.com> | 2013-12-16 06:39:45 +0100 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2013-12-17 11:00:31 -0600 |
commit | 64e3484c8e02bf5f8698dd6c8a8bbea47c05fb30 (patch) | |
tree | 13dd11802d47d331f590e87aab7c28db50d958b3 /libraries/qt5/profile.d | |
parent | c8db3823bedcfb6ed6aed3880f59e2ff6beed7ed (diff) | |
download | slackbuilds-64e3484c8e02bf5f8698dd6c8a8bbea47c05fb30.tar.gz |
libraries/qt5: Added (multi-platform C++ GUI toolkit).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/qt5/profile.d')
-rw-r--r-- | libraries/qt5/profile.d/qt5.csh | 17 | ||||
-rw-r--r-- | libraries/qt5/profile.d/qt5.sh | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/libraries/qt5/profile.d/qt5.csh b/libraries/qt5/profile.d/qt5.csh new file mode 100644 index 0000000000..ec1ecd9bef --- /dev/null +++ b/libraries/qt5/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/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 |