diff options
author | B. Watson <yalhcru@gmail.com> | 2022-01-24 16:45:06 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-25 14:44:36 +0700 |
commit | ed95dbc32bb571fe7021dfebf763e1425211103c (patch) | |
tree | 94e530cdea603177e959437d33491a0493527077 /libraries/qt4/profile.d | |
parent | 599e1f6f578276d8eedeed8d6ed51217064d40fb (diff) |
libraries/qt4: Added (legacy Qt version).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/qt4/profile.d')
-rw-r--r-- | libraries/qt4/profile.d/qt4.csh | 20 | ||||
-rw-r--r-- | libraries/qt4/profile.d/qt4.sh | 22 |
2 files changed, 42 insertions, 0 deletions
diff --git a/libraries/qt4/profile.d/qt4.csh b/libraries/qt4/profile.d/qt4.csh new file mode 100644 index 0000000000000..f023c50759c4c --- /dev/null +++ b/libraries/qt4/profile.d/qt4.csh @@ -0,0 +1,20 @@ +#!/bin/csh + +# Environment path variables for the Qt package + +# It's a very bad idea to make this script executable. Anything that +# needs to build with qt4 should instead source this script. Failure +# to follow this advice will likely break various builds that use qt5. +# I seriously doubt anything will ever source this csh version, either. + +setenv QT4DIR /usr/lib/qt4 + +# put the qt4 stuff first in $PATH, so running e.g. 'qmake' will +# run the qt4 version, not the qt5 one. +set path = ( $QT4DIR/bin $path ) + +if ( $?CPLUS_INCLUDE_PATH ) then + setenv CPLUS_INCLUDE_PATH $QT4DIR/include:$CPLUS_INCLUDE_PATH +else + setenv CPLUS_INCLUDE_PATH $QT4DIR/include +endif diff --git a/libraries/qt4/profile.d/qt4.sh b/libraries/qt4/profile.d/qt4.sh new file mode 100644 index 0000000000000..96c9e7ce83bfb --- /dev/null +++ b/libraries/qt4/profile.d/qt4.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Environment variables for the qt4 package. + +# It's a very bad idea to make this script executable. Anything that +# needs to build with qt4 should instead source this script. Failure +# to follow this advice will likely break various builds that use qt5. + +QT4DIR=/usr/lib/qt4 + +if [ ! "$CPLUS_INCLUDE_PATH" = "" ]; then + CPLUS_INCLUDE_PATH=$QT4DIR/include:$CPLUS_INCLUDE_PATH +else + CPLUS_INCLUDE_PATH=$QT4DIR/include +fi + +# put the qt4 stuff first in $PATH, so running e.g. 'qmake' will +# run the qt4 version, not the qt5 one. +PATH="$QT4DIR/bin:$PATH" + +export QT4DIR +export CPLUS_INCLUDE_PATH |