1 # Maintainer: Giovanni Scafora <giovanni@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
7 pkgdesc="C++ rendering engine for MathML documents"
9 url="http://helm.cs.unibo.it/mml-widget/"
11 depends=('popt' 't1lib' 'libxml2' 'glib2')
12 source=(http://helm.cs.unibo.it/mml-widget/sources/${pkgname}-${pkgver}.tar.gz
13 gtkmathview-0.8.0-gcc43.patch
14 gtkmathview-0.8.0-cond-t1.patch
15 gtkmathview-0.8.0-gcc47.patch
16 gtkmathview-0.8.0-includes.patch
17 gtkmathview-gcc6.patch
18 gtkmathview-gcc7.patch)
19 sha256sums=('1dc30175da6a3c560a7d62d1abe1c2f9829d988e6f1a7c5e766544575c558c43'
20 'e55785f4dafedfe97679ce51e0753ffdd5eb8036b1dd00653b22e6e89aa02beb'
21 '731894b852a8f692a3a1778bf6666a43e6afaa38e30b73d90272ae56d65bf709'
22 '1437647e6782547021a774df6ee3efd23c1b80941044d4bf44b283879636fb3e'
23 '09641f1547c5a526fc901b417ba1b1ae59ea251e56164dbf765ee7132e0c988b'
24 '4ed73eb412392adbb48ea069290bb2a4d0c2de98597f55171b35ab01f72e7734'
25 '7921e647ef4bd5d94c5218a15b636fc1f01c4dc33f60175b6046bce726c9cfb9')
28 cd ${pkgname}-${pkgver}
29 patch -p1 -i ../gtkmathview-0.8.0-gcc43.patch
30 patch -p1 -i ../gtkmathview-0.8.0-gcc47.patch
31 patch -p1 -i ../gtkmathview-0.8.0-includes.patch
32 patch -p1 -i ../gtkmathview-0.8.0-cond-t1.patch
33 patch -p1 -i ../gtkmathview-gcc6.patch # Debian patch
34 patch -p1 -i ../gtkmathview-gcc7.patch # Debian patch
36 # AM_BINRELOC missing, just ignore
37 echo 'AC_DEFUN([AM_BINRELOC], [])' > acinclude.m4
42 cd ${pkgname}-${pkgver}
43 ./configure --prefix=/usr \
48 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
53 cd ${pkgname}-${pkgver}
54 make DESTDIR="${pkgdir}/" install