updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / plplot / PKGBUILD
blobe202d827c87d244788e17e225ee7d87d9ffe2443
1 # Maintainer: Gergely Imreh <imrehgATgmailDOTcom>
2 # Contributor: Eric Belanger <eric@archlinux.org>
3 pkgname=plplot
4 pkgver=5.9.9
5 pkgrel=1
6 pkgdesc="A cross-platform software package for creating scientific plots"
7 arch=('i686' 'x86_64')
8 url="http://plplot.sourceforge.net/"
9 license=("LGPL" "custom")
10 depends=('libtool' 'tk')
11 makedepends=('cmake')
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)
23 build() {
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
27   make || return 1
28   make DESTDIR=${pkgdir} install
29   install -D -m644 Copyright ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
31 md5sums=('9f2c8536a58875d97ab6b29bbed67d26')