diff options
Diffstat (limited to 'desktop/qt5ct/qt5ct.SlackBuild')
-rw-r--r-- | desktop/qt5ct/qt5ct.SlackBuild | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/desktop/qt5ct/qt5ct.SlackBuild b/desktop/qt5ct/qt5ct.SlackBuild index fbdca3ffbe..94d82086ff 100644 --- a/desktop/qt5ct/qt5ct.SlackBuild +++ b/desktop/qt5ct/qt5ct.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for <appname> -# Copyright 2016, Alexander Verbovetsky, Moscow, Russia +# Copyright 2016-2017, Alexander Verbovetsky, Moscow, Russia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qt5ct -VERSION=${VERSION:-0.27} +VERSION=${VERSION:-0.29} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,6 +40,16 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +else + SLKCFLAGS="-O2" +fi + set -e rm -rf $PKG @@ -55,7 +65,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -qmake-qt5 +qmake-qt5 \ + QMAKE_CFLAGS="$SLKCFLAGS" \ + QMAKE_CXXFLAGS="$SLKCFLAGS" make make install INSTALL_ROOT=$PKG |