updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cairo-glitz / PKGBUILD
blob9fee68c05a838782d811dbe48257187b3ba5399e
1 # $Id$
2 # Contributor: Niccolò Forlini <nick@linuxbox360.org>
3 # Maintainer: Jan de Groot <jgc@archlinux.org>
4 # Contributor: Brice Carpentier <brice@daknet.org>
6 pkgname=cairo-glitz
7 _realname=cairo
8 pkgver=1.8.8
9 pkgrel=3
10 pkgdesc="Cairo vector graphics library with glitz backend."
11 arch=(i686 x86_64)
12 license=('LGPL' 'MPL')
13 url="http://cairographics.org/"
14 depends=('glitz' 'libpng>=1.2.31' 'libxrender' 'fontconfig>=2.6.0' 'pixman>=0.12.0' 'xcb-util>=0.3.0')
15 makedepends=('pkgconfig')
16 options=('!libtool')
17 provides=("$_realname=$pkgver")
18 conflicts=("$_realname" "cairo-wglitz" "cairo-glitz" "cairo-cleartype" "cairo-lcd" "cairo-xeffects" "cairo-glitz-cleartype" "cairo-glitz-ubuntu")
19 source=(http://cairographics.org/releases/$_realname-${pkgver}.tar.gz 
20         http://download.tuxfamily.org/ccm/glitz/0001-Fix-glitz-support-for-24.8-fixed-point.patch)
21 md5sums=('d3e1a1035ae563812d4dd44a74fb0dd0' 
22          'e9f6817d38bd02cae9d5958aaa31e8b8')
24 build() {
25   cd "${srcdir}/$_realname-${pkgver}"
26   patch -p1 < ${srcdir}/0001-Fix-glitz-support-for-24.8-fixed-point.patch || return 1
27   sed -i -e 's/libpng13/libpng14/g' configure || return 1
28   ./configure --prefix=/usr --sysconfdir=/etc --enable-glitz\
29     --localstatedir=/var --enable-xcb --disable-static || return 1
30   make || return 1
31   make DESTDIR="${pkgdir}" install || return 1