summaryrefslogtreecommitdiff
path: root/libraries/qwt/qwt.SlackBuild
diff options
context:
space:
mode:
authordunkyp <dunkyp@gmail.com>2013-01-07 20:59:33 +0100
committerdsomero <xgizzmo@slackbuilds.org>2013-01-09 18:52:27 -0500
commitf60cbfa3e1f57e056665d02c8c463c92c0bb8a5c (patch)
tree10243f67137be525d88a81211c7539a86c1abdd9 /libraries/qwt/qwt.SlackBuild
parent9c669eb5dde24751f310b402d68f7ec04b96d48d (diff)
downloadslackbuilds-f60cbfa3e1f57e056665d02c8c463c92c0bb8a5c.tar.gz
libraries/qwt: Updated for version 6.0.2, changed maintainer.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/qwt/qwt.SlackBuild')
-rw-r--r--libraries/qwt/qwt.SlackBuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/libraries/qwt/qwt.SlackBuild b/libraries/qwt/qwt.SlackBuild
index d8572b5ac9..2dae61d879 100644
--- a/libraries/qwt/qwt.SlackBuild
+++ b/libraries/qwt/qwt.SlackBuild
@@ -5,11 +5,12 @@
# Written by Zordrak
# Nobbled from Slacky and sanitised for sanity :)
+# Modified by dunkyp <dunkyp@gmail.com>
# Modified by the Slackbuilds.org project
PRGNAM=qwt
-VERSION=${VERSION:-5.1.1}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-6.0.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -28,15 +29,15 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
- BASELIBDIR="lib${LIBDIRSUFFIX}"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
- BASELIBDIR="lib${LIBDIRSUFFIX}"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
- BASELIBDIR="lib${LIBDIRSUFFIX}"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
@@ -54,8 +55,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-patch -p1 < $CWD/qwt-5.1.1-qwtconfig.pri.patch
-sed -i "s%@BASELIBDIR@%$BASELIBDIR%" qwtconfig.pri
+patch -p1 < $CWD/qwt-6.0.2-qwtconfig.pri.patch
+sed -i -e "s%@LIBDIRSUFFIX@%$LIBDIRSUFFIX%" -e "s%@QT4DIR@%$QT4DIR%" qwtconfig.pri
qmake INSTALLBASE=/usr CONFIG+=QwtExamples
make \
@@ -67,6 +68,7 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mv $PKG/usr/doc/man $PKG/usr
+rm -f $PKG/usr/man/man3/_tmp*
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
@@ -74,7 +76,7 @@ mv $PKG/usr/doc/man $PKG/usr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/examples
cp -a CHANGES COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ./examples/bin/* $PKG/usr/doc/$PRGNAM-$VERSION/examples
+cp -a ./examples/* $PKG/usr/doc/$PRGNAM-$VERSION/examples
mv $PKG/usr/doc/html $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild