# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {nicos @NicosPavlov} openmaintainer
description Data Analysis and Scientific Plotting
long_description Similar to Origin or SigmaPlot, QtiPlot can be used to \
present 2D and 3D data and has various data analysis functions \
like curve fitting. Plotting of 3D data can be rendered using \
OpenGL using the Qwt3D libraries.\
It is a full-featured data analysis and plotting package available \
on Linux, Windows and Mac OS X platforms that supports python scripting.
homepage http://www.qtiplot.com/
master_sites sourceforge:${name}.berlios
depends_lib-append port:muparser \
checksums ${name}-${version}.zip \
rmd160 d0ae793b4fbf6eab723f049493d6d954ee8b747e \
sha256 3d2cc2503c8f3d4e72af904fd6c8a528f3c38dcfe5eeca5dae64324db9f12d38
# gsl patch from https://packages.debian.org/sid/math/qtiplot
patchfiles patch-ApplicationWindow.diff \
patch-scripting.pri.diff \
patch-qwt3d_openglhelper.diff \
# don't step into the manual dir, we don't have all the tools to build it
reinplace "/manual/d" ${worksrcpath}/qtiplot.pro
# create the configuration, see build.conf.example which comes with the package
set confFD [open ${worksrcpath}/build.conf "w"]
puts $confFD "SYS_INCLUDEPATH = ${prefix}/include"
# snow leopard seems to need zlib explicitly, see #23272
puts $confFD "SYS_LIBS = -L${prefix}/lib -lz"
puts $confFD "MUPARSER_LIBS = -lmuparser"
puts $confFD "GSL_LIBS = -lgsl -lgslcblas"
puts $confFD "BOOST_LIBS = -lboost_date_time-mt -lboost_thread-mt"
# till upstream catches up, we use a local copy of qwt
puts $confFD "QWT_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwt/src"
puts $confFD "QWT_LIBS = \$\$QTI_ROOT/3rdparty/qwt/lib/libqwt.a"
puts $confFD "QWT3D_INCLUDEPATH = \$\$QTI_ROOT/3rdparty/qwtplot3d/include"
puts $confFD "QWT3D_LIBS = \$\$QTI_ROOT/3rdparty/qwtplot3d/lib/libqwtplot3d.a"
puts $confFD "LIBPNG_LIBS = -lpng"
# Forcing TamuAnova to nothing
puts $confFD "TAMUANOVA_LIBS = "