1 # Maintainer: Gergely Imreh <imrehgATgmailDOTcom>
2 # Contributor: Eric Belanger <eric@archlinux.org>
6 pkgdesc="A cross-platform software package for creating scientific plots"
8 url="http://plplot.sourceforge.net/"
9 license=("LGPL" "custom")
10 depends=('libtool' 'tk')
12 optdepends=('qhull: calculating convex hulls'
13 'agg: high quality rendering engine in C++'
14 'swig: connects Plplot C library to Python, Java and Lua'
15 'gd: ability to output png, jpeg and gif files'
16 'qt: display plots, output various formats using the Qt UI framework'
17 'wxgtk: displays plots using wxWidgets library'
18 'freetype2: enables use of ttf fonts for some drivers'
19 'ttf-freefont: enables use of ttf fonts for some drivers'
20 'cairo: displays plots and save to different file formats')
21 options=('!libtool' '!makeflags')
22 source=(http://downloads.sourceforge.net/sourceforge/plplot/${pkgname}-${pkgver}.tar.gz)
24 cd ${srcdir}/${pkgname}-${pkgver}
25 cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_octave=off -DENABLE_tcl=ON -DENABLE_tk=ON \
26 -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF || return 1
28 make DESTDIR=${pkgdir} install
29 install -D -m644 Copyright ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
31 md5sums=('9f2c8536a58875d97ab6b29bbed67d26')