# Maintainer: Erich Eckner # Contributor: Miguel de Val-Borro # Contributor: James Tappin # Contributor: Gergely Imreh # Contributor: Eric Belanger pkgname=plplot pkgver=5.15.0 pkgrel=62 pkgdesc="A cross-platform software package for creating scientific plots" arch=('i686' 'pentium4' 'x86_64') url="http://plplot.sourceforge.net/" license=("LGPL" "custom") _pinned_dependencies=( 'gcc-libs=14.2.1+r134+gab884fffe3fc' 'glibc>=2.31' 'libtool=2.5.4+r1+gbaa1fe41' 'libx11=1.8.10' 'tcl=8.6.14' ) depends=('tk' "${_pinned_dependencies[@]}") makedepends=('cmake') optdepends=('qhull: calculating convex hulls' 'agg: high quality rendering engine in C++' 'swig: connects Plplot C library to Python, Java and Lua (must be present at compile time for Java)' 'gd: ability to output png, jpeg and gif files' 'qt4: display plots, output various formats using the Qt UI framework' 'wxgtk3: displays plots using wxWidgets library' 'freetype2: enables use of ttf fonts for some drivers' 'ttf-freefont: enables use of ttf fonts for some drivers' 'cairo: displays plots and save to different file formats') options=('!libtool' '!makeflags') source=(http://downloads.sourceforge.net/sourceforge/plplot/${pkgname}-${pkgver}.tar.gz) build() { cd ${srcdir}/${pkgname}-${pkgver} if [ -d build ]; then rm -r build fi mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DENABLE_octave=off \ -DENABLE_tcl=ON \ -DENABLE_tk=ON \ -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF .. make } package() { cd ${srcdir}/${pkgname}-${pkgver}/build make DESTDIR=${pkgdir} install install -D -m644 ../Copyright ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } sha512sums=('54533245569b724a7ef90392cc6e9ae65873e6cbab923df0f841c8b43def5e4307690894c7681802209bd3c8df97f54285310a706428f79b3340cce3207087c8')