summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2016-07-22 22:35:25 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-07-24 07:27:47 +0700
commitadbaf35a646b0ee65ef5b207ce662cb331b84923 (patch)
tree5ced03c628bcea3187866cdfd9b2166ea42a3eb9 /libraries
parentb4515c7b19cdfbf87b24980326a6909ce8ab9d1f (diff)
downloadslackbuilds-adbaf35a646b0ee65ef5b207ce662cb331b84923.tar.gz
libraries/qt3: Rework LD_LIBRARY_PATH to build everything.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/qt3/qt3.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/libraries/qt3/qt3.SlackBuild b/libraries/qt3/qt3.SlackBuild
index ef6f5f62f6..be55a88b8d 100644
--- a/libraries/qt3/qt3.SlackBuild
+++ b/libraries/qt3/qt3.SlackBuild
@@ -33,7 +33,7 @@
PRGNAM=qt3
VERSION=${VERSION:-3.3.8b}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
SRCNAM=qt-x11-free
@@ -131,17 +131,20 @@ CXXFLAGS="$SLKCFLAGS" \
-plugin-style-windows \
-enable-opengl
+# Set QTDIR...
+QTDIR=$PKG/opt/kde3/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
+
+# Point LD_LIBRARY_PATH to the new libs
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib:$TMP/$SRCNAM-$VERSION/lib
+
# Strip jobs number from the MAKEFLAGS (needed)
MAKEFLAGS=$(echo "$MAKEFLAGS" | sed "s/-j[0-999]//g")
# We're using '-i' to work around a bug where the build tries to strip html files.
# Build the important stuff:
make -i -j1
-# Now set QTDIR...
-QTDIR=$PKG/opt/kde3/lib${LIBDIRSUFFIX}/$PRGNAM-$VERSION
-
-# ... & point LD_LIBRARY_PATH to the new libs and "make + install" the rest...
-LD_LIBRARY_PATH=$QTDIR/lib make install INSTALL_ROOT=$PKG
+# "make + install" the rest...
+make install INSTALL_ROOT=$PKG
make -i symlinks sub-src sub-tools
make install INSTALL_ROOT=$PKG