summaryrefslogtreecommitdiffstats
path: root/redhat/dependencies/qt3/qt.sh
diff options
context:
space:
mode:
authoralbator <albator@aria.vtf>2011-09-04 16:45:16 +0200
committeralbator <albator@aria.vtf>2011-09-04 16:45:16 +0200
commit9763eb1822a7e4e9220c2cd006b73c25af53f4f5 (patch)
tree1adcbb55194d9650157e7160236ac8a78b7e4f21 /redhat/dependencies/qt3/qt.sh
parent8bb54d3c34809687b683704dbea4efdd7e344740 (diff)
downloadtde-packaging-9763eb1822a7e4e9220c2cd006b73c25af53f4f5.tar.gz
tde-packaging-9763eb1822a7e4e9220c2cd006b73c25af53f4f5.zip
Initial QT3 build for RHEL 6
Based on original RHEL 6 qt3 3.3.8b RPM.
Diffstat (limited to 'redhat/dependencies/qt3/qt.sh')
-rwxr-xr-xredhat/dependencies/qt3/qt.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/redhat/dependencies/qt3/qt.sh b/redhat/dependencies/qt3/qt.sh
new file mode 100755
index 000000000..f9ca654c1
--- /dev/null
+++ b/redhat/dependencies/qt3/qt.sh
@@ -0,0 +1,32 @@
+# Qt initialization script (sh)
+
+# In multilib environments there is a preferred architecture, 64 bit over 32 bit in x86_64,
+# 32 bit over 64 bit in ppc64. When a conflict is found between two packages corresponding
+# with different arches, the installed file is the one from the preferred arch. This is
+# very common for executables in /usr/bin, for example. If the file /usr/bin/foo is found
+# in an x86_64 package and in an i386 package, the executable from x86_64 will be installe
+
+if [ -z "${QTDIR}" ]; then
+
+case `uname -m` in
+ x86_64 | ia64 | s390x )
+ QT_PREFIXES="/usr/lib64/qt-3.3 /usr/lib/qt-3.3" ;;
+ * )
+ QT_PREFIXES="/usr/lib/qt-3.3 /usr/lib64/qt-3.3" ;;
+esac
+
+for QTDIR in ${QT_PREFIXES} ; do
+ test -d "${QTDIR}" && break
+done
+unset QT_PREFIXES
+
+if ! echo ${PATH} | /bin/grep -q $QTDIR/bin ; then
+ PATH=$QTDIR/bin:${PATH}
+fi
+
+QTINC="$QTDIR/include"
+QTLIB="$QTDIR/lib"
+
+export QTDIR QTINC QTLIB PATH
+
+fi