1 # Maintainer: Gergely Imreh <imrehgATgmailDOTcom>
2 # Contributor: Eric Belanger <eric@archlinux.org>
7 pkgdesc="A cross-platform software package for creating scientific plots, SVN version"
9 url="http://plplot.sourceforge.net/"
10 license=("GPL" "custom")
13 depends=('libtool' 'tk')
14 makedepends=('cmake' 'svn')
15 optdepends=('qhull: calculating convex hulls'
16 'agg: high quality rendering engine in C++'
17 'swig: connects Plplot C library to Python, Java and Lua'
18 'gd: ability to output png, jpeg and gif files'
19 'qt: display plots, output various formats using the Qt UI framework'
20 'wxgtk: displays plots using wxWidgets library'
21 'freetype2: ttf fonts and some drivers'
22 'ttf-freefont: ttf fonts for some drivers'
23 'cairo: displays plots and save to different file formats')
24 options=('!libtool' '!makeflags')
27 _svntrunk=https://plplot.svn.sourceforge.net/svnroot/plplot/trunk
33 # Checkout or update SVN
34 if [ -d $_svnmod/.svn ]; then
35 (cd ${_svnmod} && svn up -r ${pkgver})
37 svn co ${_svntrunk} ${_svnmod} --config-dir ./ -r ${pkgver}
40 msg "SVN checkout done or server timeout"
41 msg "Starting make..."
43 # Setting CMAKE environmental parameters
44 export PKG_CONFIG_PATH=/usr/bin/pkg-config
47 export FC="gfortran -O2"
49 cd ${srcdir}/${_svnmod}
51 # Separate build directory, remove old one if exists
52 if [ -d "build_dir" ]; then
57 cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_octave=off -DENABLE_tcl=ON \
58 -DENABLE_tk=ON -DPL_FREETYPE_FONT_PATH=/usr/share/fonts/TTF \
61 make DESTDIR=${pkgdir} install || return 1
62 install -D -m644 ../Copyright ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1