mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
4544e04b26
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
23 lines
585 B
Bash
23 lines
585 B
Bash
#!/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
|