libraries/qwt: Updated for version 5.1.1

This commit is contained in:
Zordrak 2010-05-13 00:33:27 +02:00 committed by Robby Workman
parent 46ee492621
commit a1836e17f6
4 changed files with 34 additions and 10 deletions

View file

@ -3,7 +3,3 @@ The Qwt library contains widgets and components which are
primarily useful for technical and scientifical purposes.
It includes a 2-D plotting widget, different kinds of sliders,
and much more.
NOTE: when building with qt3, using TMP=/tmp/SBo is strongly recommended.
Using symlinks or a TMP in /usr/* will lead to the application installing
files directly onto the system as opposed to the package DESTDIR.

View file

@ -0,0 +1,20 @@
diff -Nur qwt-5.1.1.orig/qwtconfig.pri qwt-5.1.1/qwtconfig.pri
--- qwt-5.1.1.orig/qwtconfig.pri 2008-05-24 11:47:36.000000000 -0500
+++ qwt-5.1.1/qwtconfig.pri 2009-06-25 02:06:19.375460237 -0500
@@ -8,14 +8,14 @@
VERSION = $$VER_MAJ.$$VER_MIN.$$VER_PAT
unix {
- INSTALLBASE = /usr/local/qwt-5.1.1
+ INSTALLBASE = /usr
}
win32 {
INSTALLBASE = C:/Qwt-5.1.1
}
-target.path = $$INSTALLBASE/lib
+target.path = $$INSTALLBASE/@BASELIBDIR@
headers.path = $$INSTALLBASE/include
doc.path = $$INSTALLBASE/doc

View file

@ -10,7 +10,7 @@
PRGNAM=qwt
VERSION=${VERSION:-5.1.1}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@ -18,14 +18,18 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
QMAKE=${QMAKE:-$(which qmake)}
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}"
fi
set -e # Exit on most errors
@ -43,8 +47,10 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
sed -i "s%/usr/local/qwt-5.1.1%/usr%" qwtconfig.pri
$QMAKE INSTALLBASE=/usr CONFIG+=QwtExamples
patch -p1 < $CWD/qwt-5.1.1-qwtconfig.pri.patch
sed -i "s%@BASELIBDIR@%$BASELIBDIR%" qwtconfig.pri
qmake INSTALLBASE=/usr CONFIG+=QwtExamples
make \
CFLAGS+="$SLKCFLAGS" \
CXXFLAGS+="$SLKCFLAGS"
@ -73,4 +79,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -2,7 +2,9 @@ PRGNAM="qwt"
VERSION="5.1.1"
HOMEPAGE="http://qwt.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/qwt/qwt-5.1.1.tar.bz2"
DOWNLOAD_x86_64=""
MD5SUM="218cef1a39ebda6cfa440a0727464275"
MD5SUM_x86_64=""
MAINTAINER="Zordrak"
EMAIL="slackbuilds@tpa.me.uk"
APPROVED="rworkman,michiel"