3 |
- |
1 |
# Qt initialization script (sh)
|
|
|
2 |
|
|
|
3 |
# In multilib environments there is a preferred architecture, 64 bit over 32 bit in x86_64,
|
|
|
4 |
# When a conflict is found between two packages corresponding with different arches,
|
|
|
5 |
# the installed file is the one from the preferred arch. This is very common for executables
|
|
|
6 |
# in /usr/bin, for example. If the file /usr/bin/foo is found in an x86_64 package and in an
|
|
|
7 |
# i386 package, the executable from x86_64 will be installe
|
|
|
8 |
|
|
|
9 |
if [ -z "${QTDIR}" ]; then
|
|
|
10 |
|
|
|
11 |
case `uname -m` in
|
|
|
12 |
x86_64 | ia64 | s390x | ppc64 )
|
|
|
13 |
QT_PREFIXES="/usr/lib64/qt-3.3 /usr/lib/qt-3.3" ;;
|
|
|
14 |
* )
|
|
|
15 |
QT_PREFIXES="/usr/lib/qt-3.3 /usr/lib64/qt-3.3" ;;
|
|
|
16 |
esac
|
|
|
17 |
|
|
|
18 |
for QTDIR in ${QT_PREFIXES} ; do
|
|
|
19 |
test -d "${QTDIR}" && break
|
|
|
20 |
done
|
|
|
21 |
unset QT_PREFIXES
|
|
|
22 |
|
|
|
23 |
if ! echo ${PATH} | /bin/grep -q $QTDIR/bin ; then
|
|
|
24 |
PATH=$QTDIR/bin:${PATH}
|
|
|
25 |
fi
|
|
|
26 |
|
|
|
27 |
QTINC="$QTDIR/include"
|
|
|
28 |
QTLIB="$QTDIR/lib"
|
|
|
29 |
|
|
|
30 |
export QTDIR QTINC QTLIB PATH
|
|
|
31 |
|
|
|
32 |
fi
|