diff options
-rw-r--r-- | libraries/qwt5/README | 15 | ||||
-rw-r--r-- | libraries/qwt5/qwt5.SlackBuild | 108 | ||||
-rw-r--r-- | libraries/qwt5/qwt5.info | 10 | ||||
-rw-r--r-- | libraries/qwt5/qwtconfig.pri.patch | 38 | ||||
-rw-r--r-- | libraries/qwt5/slack-desc | 19 |
5 files changed, 190 insertions, 0 deletions
diff --git a/libraries/qwt5/README b/libraries/qwt5/README new file mode 100644 index 0000000000000..b85ffd2c31aa1 --- /dev/null +++ b/libraries/qwt5/README @@ -0,0 +1,15 @@ +Qwt (GUI Components & utility for programs with technical background) + +The Qwt library contains GUI Components and utility classes which are +primarily useful for programs with a technical background. Beside a +2D plot widget it provides scales, sliders, dials, compasses, +thermometers, wheels and knobs to control or display values, arrays, +or ranges of type double. + +Qwt 5 is a legacy version of Qwt, but it is still used by some +applications. + +NOTE: You can install qwt5 and qwt (Qwt 6.x) simultaneously in Slackware. +qwt5.SlackBuild was written in a way that avoid any conflict with qwt +by applying a patch in the 'qwtconfig.pri' file and by removing qwt5 man +pages. diff --git a/libraries/qwt5/qwt5.SlackBuild b/libraries/qwt5/qwt5.SlackBuild new file mode 100644 index 0000000000000..95deec8a164c9 --- /dev/null +++ b/libraries/qwt5/qwt5.SlackBuild @@ -0,0 +1,108 @@ +#!/bin/sh + +# Slackware build script for qwt5 + +# Written by Zordrak +# Nobbled from Slacky and sanitised for sanity :) + +# Modified by the Slackbuilds.org project +# Modified by Fellype do Nascimento (2016) + +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=qwt5 +PRGNAMSRC=qwt +VERSION=${VERSION:-5.2.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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 + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAMSRC-$VERSION +tar xvf $CWD/$PRGNAMSRC-$VERSION.tar.bz2 +cd $PRGNAMSRC-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +## Patching qwtconfig.pri to: +## - Enable display svg images on the plot canvas +## - Fix installation location +## - Change some parameters in qwtconfig.pri file in order to avoid conflicts with Qwt 6 +patch -p1 < $CWD/qwtconfig.pri.patch qwtconfig.pri + +qmake +make \ + CFLAGS+="$SLKCFLAGS" \ + CXXFLAGS+="$SLKCFLAGS" +make install INSTALL_ROOT=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +## Do not overwrite Qwt 6 man pages +rm -Rf $PKG/usr/doc/man/ + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES COPYING INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/doc/html $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +if [ -e /usr/bin/requiredbuilder ]; then + requiredbuilder -v -y -s $CWD $PKG +fi + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/qwt5/qwt5.info b/libraries/qwt5/qwt5.info new file mode 100644 index 0000000000000..26689b39568d3 --- /dev/null +++ b/libraries/qwt5/qwt5.info @@ -0,0 +1,10 @@ +PRGNAM="qwt5" +VERSION="5.2.3" +HOMEPAGE="http://qwt.sourceforge.net/" +DOWNLOAD="http://ufpr.dl.sourceforge.net/project/qwt/qwt/5.2.3/qwt-5.2.3.tar.bz2" +MD5SUM="7d37a11d02bc7d095d0ca6427ec97b8d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Fellype do Nascimento" +EMAIL="fellype(at)gmail.com" diff --git a/libraries/qwt5/qwtconfig.pri.patch b/libraries/qwt5/qwtconfig.pri.patch new file mode 100644 index 0000000000000..fd81cf506d50d --- /dev/null +++ b/libraries/qwt5/qwtconfig.pri.patch @@ -0,0 +1,38 @@ +--- qwtconfig.pri 2016-12-13 10:08:11.000000000 -0200 ++++ qwtconfig.pri.new 2016-12-13 10:07:49.000000000 -0200 +@@ -8,7 +8,7 @@ + VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT} + + unix { +- INSTALLBASE = /usr/local/qwt-$$VERSION ++ INSTALLBASE = /usr + } + + win32 { +@@ -16,7 +16,7 @@ + } + + target.path = $$INSTALLBASE/lib +-headers.path = $$INSTALLBASE/include ++headers.path = $$INSTALLBASE/include/qwt5 + doc.path = $$INSTALLBASE/doc + + ###################################################################### +@@ -64,7 +64,7 @@ + ###################################################################### + + DEBUG_SUFFIX = +-RELEASE_SUFFIX = ++RELEASE_SUFFIX = 5 + + win32 { + DEBUG_SUFFIX = d +@@ -98,7 +98,7 @@ + # QwtSVGItem. + ###################################################################### + +-#CONFIG += QwtSVGItem ++CONFIG += QwtSVGItem + + ###################################################################### + # You can use the MathML renderer of the Qt solutions package to diff --git a/libraries/qwt5/slack-desc b/libraries/qwt5/slack-desc new file mode 100644 index 0000000000000..60144161e4552 --- /dev/null +++ b/libraries/qwt5/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +qwt5: qwt5 (GUI Components & utility) +qwt5: +qwt5: The Qwt library contains GUI Components and utility classes which are +qwt5: primarily useful for programs with a technical background. Beside a +qwt5: 2D plot widget it provides scales, sliders, dials, compasses, +qwt5: thermometers, wheels and knobs to control or display values, arrays, +qwt5: or ranges of type double. +qwt5: +qwt5: +qwt5: +qwt5: |