# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
categories graphics science
# actually a little more permissive than the standard LGPL, but the
# distinction doesn't matter to us.
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
homepage http://qwt.sourceforge.net
master_sites sourceforge:qwt
checksums sha1 90ec21bc42f7fae270482e1a0df3bc79cb10e5c7 \
sha256 f3ecd34e72a9a2b08422fb6c8e909ca76f4ce5fa77acad7a2883b701f4309733
# get qwt's version numbers
global qwt_major, qwt_minor, qwt_patch
set qwt_vers [split ${version} "."]
set qwt_major [lindex ${qwt_vers} 0]
set qwt_minor [lindex ${qwt_vers} 1]
set qwt_patch [lindex ${qwt_vers} 2]
set qwt_maj_min ${qwt_major}.${qwt_minor}
description QWT: Qt Widgets for Technical Applications
long_description ${description}\nThe 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 version ${qwt_maj_min} contains source incompatible \
changes versus other versions of QWT.
#install in the correct locations
patchfiles-append patch-qwtconfig.pri.diff
# have correct install_name in libraries
# install pkgconfig files
CONFIG+=absolute_library_soname \
# ${worksrcpath}/textengines/mathml/mathml.pro does not define QMAKE_PKGCONFIG_DESTDIR
configure.args-append QMAKE_PKGCONFIG_DESTDIR=pkgconfig
if {${subport} eq ${name}} {
qt5.depends_component qtsvg qttools
# put link to pkgconfig files in place where pkgconfig will find it