summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-05-29 14:25:32 +0200
committergregory guy <g-gregory@gmx.fr>2019-06-01 13:48:12 +0200
commit6131b4262eeb4093cc5c44ddee97b3da75c5f523 (patch)
treec36975d5d110ca73c46d0b82caab98d108bc6e7d /configure
parentfd634b0c147bef3af1fa68454e4d8a9cda4f9243 (diff)
downloadtqt3-6131b4262eeb4093cc5c44ddee97b3da75c5f523.tar.gz
tqt3-6131b4262eeb4093cc5c44ddee97b3da75c5f523.zip
This fixes bug: 639
Add desktop files for: - tqassistant - tqdesigner - tqlinguist - tqtconfig These files have been made with the contribution of Laurent Dard's patch (see bugzilla:639) with little change/addition from I. Add 'sysshare' option to the configure script. Signed-off-by: gregory guy <g-gregory@gmx.fr>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 13 insertions, 3 deletions
diff --git a/configure b/configure
index 86b92f94..e3d15e3f 100755
--- a/configure
+++ b/configure
@@ -171,7 +171,7 @@ QT_INSTALL_PLUGINS=
QT_INSTALL_DATA=
QT_INSTALL_TRANSLATIONS=
QT_INSTALL_SYSCONF=
-
+QT_INSTALL_SHARE=
#-------------------------------------------------------------------------------
# check SQL drivers and styles available in this package
@@ -241,7 +241,7 @@ while [ "$#" -gt 0 ]; do
UNKNOWN_ARG=yes
fi
;;
- -prefix|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey)
+ -prefix|-sysshare|-docdir|-headerdir|-plugindir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-depths|-make|-nomake|-platform|-xplatform|-buildkey)
VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
shift
VAL=$1
@@ -371,6 +371,9 @@ while [ "$#" -gt 0 ]; do
sysconfdir)
QT_INSTALL_SYSCONF="$VAL"
;;
+ sysshare)
+ QT_INSTALL_SHARE="$VAL"
+ ;;
qconfig)
CFG_QCONFIG="$VAL"
;;
@@ -940,6 +943,8 @@ done
[ -z "$QT_INSTALL_TRANSLATIONS" ] && QT_INSTALL_TRANSLATIONS=$QT_INSTALL_PREFIX/translations
# default PREFIX/etc/settings
[ -z "$QT_INSTALL_SYSCONF" ] && QT_INSTALL_SYSCONF=$QT_INSTALL_PREFIX/etc/settings
+# default PREFIX/share
+[ -z "$QT_INSTALL_SHARE" ] && QT_INSTALL_SHARE=$QT_INSTALL_PREFIX/share
# generate qconfig.cpp
[ -d $outpath/src/tools ] || mkdir -p $outpath/src/tools
@@ -956,6 +961,7 @@ static const char QT_INSTALL_PLUGINS [267] = "qt_plgpath=$QT_INSTALL_PLUGINS
static const char QT_INSTALL_DATA [267] = "qt_datpath=$QT_INSTALL_DATA";
static const char QT_INSTALL_TRANSLATIONS[267] = "qt_trnpath=$QT_INSTALL_TRANSLATIONS";
static const char QT_INSTALL_SYSCONF [267] = "qt_cnfpath=$QT_INSTALL_SYSCONF";
+static const char QT_INSTALL_SHARE [267] = "qt_shapath=$QT_INSTALL_SHARE";
/* strlen( "qt_xxxpath=" ) == 11 */
const char *tqInstallPath() { return QT_INSTALL_PREFIX + 11; }
@@ -967,6 +973,7 @@ const char *tqInstallPathPlugins() { return QT_INSTALL_PLUGINS + 11; }
const char *tqInstallPathData() { return QT_INSTALL_DATA + 11; }
const char *tqInstallPathTranslations() { return QT_INSTALL_TRANSLATIONS + 11; }
const char *tqInstallPathSysconf() { return QT_INSTALL_SYSCONF + 11; }
+const char *tqInstallPathShare() { return QT_INSTALL_SHARE + 11; }
EOF
# avoid unecessary rebuilds by copying only if qconfig.cpp has changed
@@ -1851,7 +1858,7 @@ if [ "$OPT_HELP" = "yes" ]; then
cat <<EOF
Usage: $relconf [-prefix dir] [-buildkey key] [-docdir dir] [-headerdir dir]
- [-libdir dir] [-bindir dir] [-plugindir dir ] [-datadir dir]
+ [-libdir dir] [-bindir dir] [-plugindir dir ] [-datadir dir] [-sysshare dir]
[-translationdir dir] [-sysconfdir dir] [-debug] [-release]
[-no-gif] [-qt-gif] [-no-sm] [-sm] [-qt-zlib] [-system-zlib]
[-qt-libpng] [-system-libpng]
@@ -1886,6 +1893,8 @@ Installation options:
(default PREFIX/translations)
-sysconfdir dir ... Settings used by TQt programs will be looked for in dir
(default PREFIX/etc/settings)
+ -sysshare dir ..... System shared data will be installed in dir
+ (default PREFIX/share)
You may use these options to turn on strict plugin loading.
@@ -2752,6 +2761,7 @@ QMAKE_VARS="$QMAKE_VARS \"libs.path=${QT_INSTALL_LIBS}\""
QMAKE_VARS="$QMAKE_VARS \"bins.path=${QT_INSTALL_BINS}\""
QMAKE_VARS="$QMAKE_VARS \"data.path=${QT_INSTALL_DATA}\""
QMAKE_VARS="$QMAKE_VARS \"translations.path=${QT_INSTALL_TRANSLATIONS}\""
+QMAKE_VARS="$QMAKE_VARS \"share.path=${QT_INSTALL_SHARE}\""
# turn off exceptions for the compilers that support it
COMPILER=`echo $PLATFORM | cut -f 2- -d-`