diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-09-05 13:53:08 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-09-05 13:53:08 -0500 |
commit | ed4fba5b52a126babf633ece832bed7cc50347e4 (patch) | |
tree | df4dda5b511fe6a3930c567d2391a9f574570618 /redhat/dependencies/qt3/qt.csh | |
parent | 9135c977131b957134d4b691542998b2dc397378 (diff) | |
parent | 3c86eeb8b77e5ea83ce7938d75c17b7bde9b31d5 (diff) | |
download | tde-packaging-ed4fba5b52a126babf633ece832bed7cc50347e4.tar.gz tde-packaging-ed4fba5b52a126babf633ece832bed7cc50347e4.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tde-packaging
Diffstat (limited to 'redhat/dependencies/qt3/qt.csh')
-rwxr-xr-x | redhat/dependencies/qt3/qt.csh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/redhat/dependencies/qt3/qt.csh b/redhat/dependencies/qt3/qt.csh new file mode 100755 index 000000000..93fd941ed --- /dev/null +++ b/redhat/dependencies/qt3/qt.csh @@ -0,0 +1,33 @@ +# Qt initialization script (csh) + +# 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 ( $?QTDIR ) then + exit +endif + +switch (`uname -m`) + case x86_64: + case ia64: + case s390x: + set QTPREFIXES = "/usr/lib64/qt-3.3 /usr/lib/qt-3.3" + breaksw + case *: + set QTPREFIXES = "/usr/lib/qt-3.3 /usr/lib64/qt-3.3" +endsw + +foreach QTPREFIX ( $QTPREFIXES ) + test -d "$QTPREFIX" && setenv QTDIR $QTPREFIX && break +end +unset QTPREFIX QTPREFIXES + +if ( "${path}" !~ *$QTDIR/bin* ) then + set path = ( $QTDIR/bin $path ) +endif + +setenv QTINC $QTDIR/include +setenv QTLIB $QTDIR/lib |