diff options
author | Eric Hameleers <alien@slackware.com> | 2014-12-22 15:09:16 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2014-12-22 15:09:16 +0100 |
commit | 8d7dd4892e8aa73ce7c3ea73f48a5274e48f5428 (patch) | |
tree | f3e3dc663a60572cf6a7feb61af560b83ac81221 /deps/qt/profile.d/qt4.sh | |
parent | eb82fdc2eafc3d1b5f837fcda2c4903106d9d79a (diff) | |
download | ktown-8d7dd4892e8aa73ce7c3ea73f48a5274e48f5428.tar.gz ktown-8d7dd4892e8aa73ce7c3ea73f48a5274e48f5428.tar.xz |
KDE 4.9.5 for Slackware 14.0 (02jan2013)4.9.5
Diffstat (limited to 'deps/qt/profile.d/qt4.sh')
-rw-r--r-- | deps/qt/profile.d/qt4.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/deps/qt/profile.d/qt4.sh b/deps/qt/profile.d/qt4.sh new file mode 100644 index 0000000..5b4b830 --- /dev/null +++ b/deps/qt/profile.d/qt4.sh @@ -0,0 +1,23 @@ +#!/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/qt ]; then + QT4DIR=/usr/lib/qt +else + # Find the newest Qt directory and set $QT4DIR to that: + for qtd in /usr/lib/qt-* ; do + if [ -d $qtd ]; then + QT4DIR=$qtd + fi + done +fi +if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then + CPLUS_INCLUDE_PATH=$QT4DIR/include:$CPLUS_INCLUDE_PATH +else + CPLUS_INCLUDE_PATH=$QT4DIR/include +fi +PATH="$PATH:$QT4DIR/bin" +export QT4DIR +export CPLUS_INCLUDE_PATH |