1 # $Id: PKGBUILD 71210 2010-03-05 15:30:02Z jgc $
2 # Maintainer: Aljosha Papsch <papsch.al@gmail.com>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
4 # Contributor: Disfido <disfido@gmail.com>
10 pkgdesc="Cairo vector graphics library with GL and EGL enabled"
12 license=('LGPL' 'MPL')
13 url="http://cairographics.org/"
14 depends=('libpng' 'libxrender' 'fontconfig' 'pixman' 'libgl' 'libegl')
15 makedepends=('pkgconfig' 'gtk-doc' 'automake' 'autoconf' 'git')
17 conflicts=('cairo' 'cairo-git' 'cairo-xcb')
18 provides=("cairo=${_realver}" 'cairo-git' "cairo-xcb=${_realver}")
19 _gitroot='git://anongit.freedesktop.org/git/'
23 if [ -d ${srcdir}/$_gitname ]; then
28 git clone $_gitroot$_gitname
32 # glesv2 and gl cannot be enabled at the same time.
33 # Please take a look at: http://lists.freedesktop.org/archives/cairo/2011-July/022138.html
34 ./autogen.sh --prefix=/usr --sysconfdir=/etc \
35 --localstatedir=/var --enable-gl --enable-egl \
36 --enable-xcb --disable-static || return 1
38 make DESTDIR="${pkgdir}" install || return 1