1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: Nick Parastatidis <nparasta@auth.gr>
4 # Contributor: Stefan Husmann <stefan-husmann@t-online.de>
5 # Contributor: oslik <oslik@mail.ru>
10 pkgdesc='A library for making high-quality scientific graphics, fast data plotting and handling of large data arrays.'
11 arch=('i686' 'x86_64')
12 url='http://mathgl.sourceforge.net'
14 depends=('qt' 'fltk' 'wxgtk' 'giflib' 'libharu' 'gsl' 'freeglut' 'u3d' 'python2-numpy')
15 makedepends=('libtiff' 'swig' 'texi2html' 'u3d' 'octave')
17 install="$pkgname.install"
18 source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname%20${pkgver%%.1}/$pkgname-$pkgver.tar.gz"
19 "http://mathgl.sourceforge.net/${pkgname}_en.pdf")
20 md5sums=('acd33e68911d9506f60d769dce23f95e'
21 '0767e2d1dc6356dbf4fadb94b4f854f4')
24 cd "$srcdir/$pkgname-$pkgver"
27 export CPPFLAGS="-I/usr/lib/python2.7/site-packages/numpy/core/include"
30 export PYTHON="python2"
31 sed -i "s|\(python\).*|\12|" texinfo/filter.py
32 sed -i "s|\(python\)\(-config\)|\12\2|g" configure*
35 sed -i "s|Fl/|FL/|" include/mgl/mgl_fltk.h
37 ./configure --prefix=/usr \
58 cd "$srcdir/$pkgname-$pkgver"
60 make DESTDIR="$pkgdir/" install
63 install -D -m644 "$srcdir/${pkgname}_en.pdf" \
64 "$pkgdir/usr/share/doc/$pkgname/${pkgname}_en.pdf"