From ed95dbc32bb571fe7021dfebf763e1425211103c Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 24 Jan 2022 16:45:06 -0500 Subject: libraries/qt4: Added (legacy Qt version). Signed-off-by: Willy Sudiarto Raharjo --- libraries/qt4/profile.d/qt4.csh | 20 ++++++++++++++++++++ libraries/qt4/profile.d/qt4.sh | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 libraries/qt4/profile.d/qt4.csh create mode 100644 libraries/qt4/profile.d/qt4.sh (limited to 'libraries/qt4/profile.d') 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 -- cgit v1.2.3