diff options
Diffstat (limited to 'desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild')
-rw-r--r-- | desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild b/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild index 423aa69dfd..066f0bbf62 100644 --- a/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild +++ b/desktop/QtCurve-Gtk2/QtCurve-Gtk2.SlackBuild @@ -1,8 +1,9 @@ #!/bin/sh # Slackware build script for QtCurve-Gtk2 + # Written by bughunter2 (bughunter2@googlemail.com) -# Copyright 2008 Michiel van Wessem, Manchester, United Kingdom +# Copyright 2008-2009 Michiel van Wessem, Manchester, United Kingdom # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -25,7 +26,7 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=QtCurve-Gtk2 -VERSION=0.59.7 +VERSION=0.62.8 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -36,11 +37,14 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -55,19 +59,24 @@ find . \ -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; - + +# Make QtCurve-Gtk2 default to reading the KDE3 settings as this is shipped +# Slackware. Delete the line or set -DQTC_DEFAULT_TO_KDE3 to 'false'. cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DQTC_DEFAULT_TO_KDE3=true \ . make make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |