diff options
author | Niels Horn <niels.horn@slackbuilds.org> | 2011-03-24 23:54:54 -0300 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-25 23:26:21 -0500 |
commit | 4544e04b263f12baa34c1a57f38839d5a3c4e464 (patch) | |
tree | e6cd99d4aaf255e0dbc46ef9e81a2a06b702890f /libraries/qt3/profile.d | |
parent | d7277dab33344970e645a521bfe7cef240813e9b (diff) |
libraries/qt3: Added (dependency, was removed from Slackware 13.37)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/qt3/profile.d')
-rw-r--r-- | libraries/qt3/profile.d/qt.csh | 22 | ||||
-rw-r--r-- | libraries/qt3/profile.d/qt.sh | 23 |
2 files changed, 45 insertions, 0 deletions
diff --git a/libraries/qt3/profile.d/qt.csh b/libraries/qt3/profile.d/qt.csh new file mode 100644 index 0000000000000..490877c4fe8d8 --- /dev/null +++ b/libraries/qt3/profile.d/qt.csh @@ -0,0 +1,22 @@ +#!/bin/csh +# Environment path variables for the Qt package: +if ( ! $?QTDIR ) then + # It's best to use the generic directory to avoid + # compiling in a version-containing path: + if ( -d /opt/kde3/lib/qt3 ) then + setenv QTDIR /opt/kde3/lib/qt3 + else + # Find the newest Qt directory and set $QTDIR to that: + foreach qtd ( /opt/kde3/lib/qt-* ) + if ( -d $qtd ) then + setenv QTDIR $qtd + endif + end + endif +endif +set path = ( $path $QTDIR/bin /opt/kde3/bin ) +if ( $?CPLUS_INCLUDE_PATH ) then + setenv CPLUS_INCLUDE_PATH $QTDIR/include:$CPLUS_INCLUDE_PATH +else + setenv CPLUS_INCLUDE_PATH $QTDIR/include +endif diff --git a/libraries/qt3/profile.d/qt.sh b/libraries/qt3/profile.d/qt.sh new file mode 100644 index 0000000000000..c4e23bb599eef --- /dev/null +++ b/libraries/qt3/profile.d/qt.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 /opt/kde3/lib/qt3 ]; then + QTDIR=/opt/kde3/lib/qt3 +else + # Find the newest Qt directory and set $QTDIR to that: + for qtd in /opt/kde3/lib/qt-* ; do + if [ -d $qtd ]; then + QTDIR=$qtd + fi + done +fi +if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then + CPLUS_INCLUDE_PATH=$QTDIR/include:$CPLUS_INCLUDE_PATH +else + CPLUS_INCLUDE_PATH=$QTDIR/include +fi +PATH="$PATH:$QTDIR/bin:/opt/kde3/bin" +export QTDIR +export CPLUS_INCLUDE_PATH |