From f5a8de28b86c2c838a28e79aa54f8b4c3fbd869e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 31 May 2012 16:24:59 +0000 Subject: Thu May 31 16:24:59 UTC 2012 --- gis/qwt5/PKGBUILD | 47 ++++++++++++++++++++++ gis/qwt5/qwtconfig-archlinux.pri | 85 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 gis/qwt5/PKGBUILD create mode 100644 gis/qwt5/qwtconfig-archlinux.pri (limited to 'gis/qwt5') diff --git a/gis/qwt5/PKGBUILD b/gis/qwt5/PKGBUILD new file mode 100644 index 000000000..f998a0765 --- /dev/null +++ b/gis/qwt5/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Eugen Zagorodniy +# Contributor: Ronald van Haren + +pkgname=qwt5 +pkgver=5.2.2 +pkgrel=1 +pkgdesc="Qt Widgets for Technical Applications (version 5.X)" +arch=('i686' 'x86_64') +url="http://qwt.sourceforge.net/" +depends=('qt>=4.5.1') +options=('!makeflags') +license=("custom:$pkgname") +provides=('qwt') +source=("http://downloads.sourceforge.net/sourceforge/qwt/qwt-$pkgver.tar.bz2" \ + "qwtconfig-archlinux.pri") +md5sums=('70d77e4008a6cc86763737f0f24726ca' + '15db52c3312b5f8f7cbbdabc4831591b') +build() { + cd ${srcdir}/qwt-${pkgver} + + # copy our config file to the right place + install -Dm644 ${srcdir}/qwtconfig-archlinux.pri \ + ${srcdir}/qwt-${pkgver}/qwtconfig.pri + + # build qwt: + qmake qwt.pro + make || return 1 +} + +package() { + cd ${srcdir}/qwt-${pkgver} + + make INSTALL_ROOT=${pkgdir} QTDIR=/usr install + + # rename conlicting symlink + mv ${pkgdir}/usr/lib/libqwt.so ${pkgdir}/usr/lib/libqwt5.so + + # move html docs to propee place and move man pages to avoid conflict + # with qwt from [extra] + install -d ${pkgdir}/usr/share/doc/${pkgname} + mv ${pkgdir}/usr/share/html ${pkgdir}/usr/share/doc/${pkgname}/ + mv ${pkgdir}/usr/share/man ${pkgdir}/usr/share/doc/${pkgname}/ + + # install licence + install -Dm644 ${srcdir}/qwt-${pkgver}/COPYING \ + ${pkgdir}/usr/share/licenses/${pkgname}/license.txt +} diff --git a/gis/qwt5/qwtconfig-archlinux.pri b/gis/qwt5/qwtconfig-archlinux.pri new file mode 100644 index 000000000..045e53275 --- /dev/null +++ b/gis/qwt5/qwtconfig-archlinux.pri @@ -0,0 +1,85 @@ +###################################################################### +# Install paths +###################################################################### + +unix { + INSTALLBASE = /usr +} + +win32 { + INSTALLBASE = C:/Qwt +} + +target.path = $$INSTALLBASE/lib +headers.path = $$INSTALLBASE/include/qwt5 +doc.path = $$INSTALLBASE/share + +###################################################################### +# qmake internal options +###################################################################### + +CONFIG += qt # Also for Qtopia Core! +CONFIG += warn_on +CONFIG += thread + +###################################################################### +# release/debug mode +# The designer plugin is always built in release mode. +# If want to change this, you have to edit designer/designer.pro. +###################################################################### + +CONFIG += release # release/debug + +###################################################################### +# Build the static/shared libraries. +# If QwtDll is enabled, a shared library is built, otherwise +# it will be a static library. +###################################################################### + +CONFIG += QwtDll + +###################################################################### +# QwtPlot enables all classes, that are needed to use the QwtPlot +# widget. +###################################################################### + +CONFIG += QwtPlot + +###################################################################### +# QwtWidgets enables all classes, that are needed to use the all other +# widgets (sliders, dials, ...), beside QwtPlot. +###################################################################### + +CONFIG += QwtWidgets + +###################################################################### +# If you want to display svg images on the plot canvas, enable the +# line below. Note that Qwt needs the svg+xml, when enabling +# QwtSVGItem. +###################################################################### + +CONFIG += QwtSVGItem + +###################################################################### +# If you have a commercial license you can use the MathML renderer +# of the Qt solutions package to enable MathML support in Qwt. +# So if you want this, copy qtmmlwidget.h + qtmmlwidget.cpp to +# textengines/mathml and enable the line below. +###################################################################### + +#CONFIG += QwtMathML + +###################################################################### +# If you want to build the Qwt designer plugin, +# enable the line below. +# Otherwise you have to build it from the designer directory. +###################################################################### + +CONFIG += QwtDesigner + +###################################################################### +# If you want to auto build the examples, enable the line below +# Otherwise you have to build them from the examples directory. +###################################################################### + +#CONFIG += QwtExamples -- cgit v1.2.3-54-g00ecf