From 7b2c3667b7ad202320ba8a9a8be2ad6502a9661b Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sat, 16 Nov 2019 20:54:57 +0700 Subject: libraries/qwt-qt5: Added (Qt5 widgets for technical applications). Signed-off-by: Willy Sudiarto Raharjo --- libraries/qwt-qt5/README | 5 ++ libraries/qwt-qt5/patch-6.1.3-pkgconfig.diff | 22 +++++ libraries/qwt-qt5/patch-6.1.3-qwtconfig.diff | 54 +++++++++++++ libraries/qwt-qt5/patch-6.1.3-qwtfunctions.diff | 27 +++++++ libraries/qwt-qt5/qwt-qt5.SlackBuild | 103 ++++++++++++++++++++++++ libraries/qwt-qt5/qwt-qt5.info | 10 +++ libraries/qwt-qt5/slack-desc | 19 +++++ 7 files changed, 240 insertions(+) create mode 100644 libraries/qwt-qt5/README create mode 100644 libraries/qwt-qt5/patch-6.1.3-pkgconfig.diff create mode 100644 libraries/qwt-qt5/patch-6.1.3-qwtconfig.diff create mode 100644 libraries/qwt-qt5/patch-6.1.3-qwtfunctions.diff create mode 100644 libraries/qwt-qt5/qwt-qt5.SlackBuild create mode 100644 libraries/qwt-qt5/qwt-qt5.info create mode 100644 libraries/qwt-qt5/slack-desc (limited to 'libraries') diff --git a/libraries/qwt-qt5/README b/libraries/qwt-qt5/README new file mode 100644 index 0000000000..22d5b69653 --- /dev/null +++ b/libraries/qwt-qt5/README @@ -0,0 +1,5 @@ +Qwt is an extension to the Qt5 GUI library that contains widgets and components +which are primarily useful for programs with a technical background. Beside a +framework for 2D plots it provides scales, sliders, dials, compasses, +thermometers, wheels and knobs to control or display values, arrays, or ranges +of type double. diff --git a/libraries/qwt-qt5/patch-6.1.3-pkgconfig.diff b/libraries/qwt-qt5/patch-6.1.3-pkgconfig.diff new file mode 100644 index 0000000000..91c5ed4c78 --- /dev/null +++ b/libraries/qwt-qt5/patch-6.1.3-pkgconfig.diff @@ -0,0 +1,22 @@ +--- src/src.pro.orig 2014-12-12 00:13:13.461186493 +1000 ++++ src/src.pro 2015-10-05 08:55:43.504194164 +1000 +@@ -21,6 +21,19 @@ + + DESTDIR = $${QWT_OUT_ROOT}/lib + ++# Add pkgconfig support ++unix { ++ CONFIG += create_pc create_prl no_install_prl ++ QMAKE_PKGCONFIG_NAME = qwt-qt5 ++ QMAKE_PKGCONFIG_DESCRIPTION = GUI components ++ QMAKE_PKGCONFIG_PREFIX = $${QWT_INSTALL_PREFIX} ++ QMAKE_PKGCONFIG_LIBDIR = $${QWT_INSTALL_LIBS} ++ QMAKE_PKGCONFIG_INCDIR = $${QWT_INSTALL_HEADERS} ++ QMAKE_PKGCONFIG_REQUIRES = QtCore ++ QMAKE_PKGCONFIG_DESTDIR = pkgconfig ++} ++ ++ + contains(QWT_CONFIG, QwtDll) { + + CONFIG += dll diff --git a/libraries/qwt-qt5/patch-6.1.3-qwtconfig.diff b/libraries/qwt-qt5/patch-6.1.3-qwtconfig.diff new file mode 100644 index 0000000000..815013bd06 --- /dev/null +++ b/libraries/qwt-qt5/patch-6.1.3-qwtconfig.diff @@ -0,0 +1,54 @@ +--- qwtconfig.pri.orig 2014-12-11 14:13:13.513186492 +0000 ++++ qwtconfig.pri 2015-09-27 08:33:01.948490369 +0000 +@@ -16,11 +16,8 @@ + # Install paths + ###################################################################### + +-QWT_INSTALL_PREFIX = $$[QT_INSTALL_PREFIX] +- + unix { +- QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION +- # QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION-qt-$$QT_VERSION ++ QWT_INSTALL_PREFIX = /usr + } + + win32 { +@@ -29,8 +26,10 @@ + } + + QWT_INSTALL_DOCS = $${QWT_INSTALL_PREFIX}/doc +-QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include +-QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib ++QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include/qt5/qwt ++QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib$${LIBDIRSUFFIX} ++ ++ + + ###################################################################### + # Designer plugin +@@ -42,14 +41,12 @@ + # runtime environment of designer/creator. + ###################################################################### + +-QWT_INSTALL_PLUGINS = $${QWT_INSTALL_PREFIX}/plugins/designer +- + # linux distributors often organize the Qt installation + # their way and QT_INSTALL_PREFIX doesn't offer a good + # path. Also QT_INSTALL_PREFIX is only one of the default + # search paths of the designer - not the Qt creator + +-#QWT_INSTALL_PLUGINS = $$[QT_INSTALL_PREFIX]/plugins/designer ++QWT_INSTALL_PLUGINS = $$[QT_INSTALL_PLUGINS]/designer + + ###################################################################### + # Features +@@ -63,8 +60,7 @@ + # with every Qt upgrade. + ###################################################################### + +-QWT_INSTALL_FEATURES = $${QWT_INSTALL_PREFIX}/features +-# QWT_INSTALL_FEATURES = $$[QT_INSTALL_PREFIX]/features ++QWT_INSTALL_FEATURES = $$[QMAKE_MKSPECS]/features + + ###################################################################### + # Build the static/shared libraries. diff --git a/libraries/qwt-qt5/patch-6.1.3-qwtfunctions.diff b/libraries/qwt-qt5/patch-6.1.3-qwtfunctions.diff new file mode 100644 index 0000000000..b31dc22de6 --- /dev/null +++ b/libraries/qwt-qt5/patch-6.1.3-qwtfunctions.diff @@ -0,0 +1,27 @@ +diff -up qwt-6.1.2/qwtfunctions.pri.qt5 qwt-6.1.2/qwtfunctions.pri +--- qwt-6.1.2/qwtfunctions.pri.qt5 2014-12-11 08:13:13.511186492 -0600 ++++ qwt-6.1.2/qwtfunctions.pri 2014-12-12 20:45:24.556261966 -0600 +@@ -12,7 +12,12 @@ + defineReplace(qwtLibraryTarget) { + + unset(LIBRARY_NAME) ++ ++ greaterThan(QT_MAJOR_VERSION, 4) { ++ LIBRARY_NAME = $${1}-qt$${QT_MAJOR_VERSION} ++ } else { + LIBRARY_NAME = $$1 ++ } + + mac:contains(QWT_CONFIG, QwtFramework) { + +@@ -36,7 +41,11 @@ defineReplace(qwtLibraryTarget) { + defineTest(qwtAddLibrary) { + + LIB_PATH = $$1 ++ greaterThan(QT_MAJOR_VERSION, 4) { ++ LIB_NAME = $${2}-qt$${QT_MAJOR_VERSION} ++ } else { + LIB_NAME = $$2 ++ } + + mac:contains(QWT_CONFIG, QwtFramework) { diff --git a/libraries/qwt-qt5/qwt-qt5.SlackBuild b/libraries/qwt-qt5/qwt-qt5.SlackBuild new file mode 100644 index 0000000000..9e9f7ed016 --- /dev/null +++ b/libraries/qwt-qt5/qwt-qt5.SlackBuild @@ -0,0 +1,103 @@ +#!/bin/sh + +# Slackware build script for qwt-qt5 + +# Modified from libraries/qwt +# Copyright 2019 Benjamin Trigona-Harany +# All rights reserved. +# +# 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. + +SRCNAM=qwt +PRGNAM=$SRCNAM-qt5 +VERSION=${VERSION:-6.1.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="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 +cd $SRCNAM-$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 {} \; + +patch -p0 < $CWD/patch-6.1.3-qwtconfig.diff +patch -p0 < $CWD/patch-6.1.3-pkgconfig.diff +patch -p1 < $CWD/patch-6.1.3-qwtfunctions.diff # OpenSUSE + +mkdir build +cd build + qmake-qt5 LIBDIRSUFFIX=$LIBDIRSUFFIX .. + make \ + CFLAGS+="$SLKCFLAGS" \ + CXXFLAGS+="$SLKCFLAGS -std=c++11 -fPIC" + make install INSTALL_ROOT=$PKG +cd - + +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 + +rm -rf $PKG/usr/doc/man + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/doc/html $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + CHANGES-6.1 COPYING INSTALL README \ + $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 + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/qwt-qt5/qwt-qt5.info b/libraries/qwt-qt5/qwt-qt5.info new file mode 100644 index 0000000000..a00136ac5e --- /dev/null +++ b/libraries/qwt-qt5/qwt-qt5.info @@ -0,0 +1,10 @@ +PRGNAM="qwt-qt5" +VERSION="6.1.3" +HOMEPAGE="http://qwt.sourceforge.net" +DOWNLOAD="http://downloads.sourceforge.net/qwt/qwt-6.1.3.tar.bz2" +MD5SUM="19d1f5fa5e22054d22ee3accc37c54ba" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="qt5" +MAINTAINER="Benjamin Trigona-Harany" +EMAIL="slackbuilds@jaxartes.net" diff --git a/libraries/qwt-qt5/slack-desc b/libraries/qwt-qt5/slack-desc new file mode 100644 index 0000000000..cd5febaac0 --- /dev/null +++ b/libraries/qwt-qt5/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------------------------------------------------------| +qwt-qt5: qwt-qt5 (Qt5 widgets for technical applications) +qwt-qt5: +qwt-qt5: Qwt is an extension to the Qt5 GUI library that contains widgets and +qwt-qt5: components which are primarily useful for programs with a technical +qwt-qt5: background. Beside a framework for 2D plots it provides scales, +qwt-qt5: sliders, dials, compasses, thermometers, wheels and knobs to control +qwt-qt5: or display values, arrays, or ranges of type double. +qwt-qt5: +qwt-qt5: +qwt-qt5: +qwt-qt5: -- cgit v1.2.3