summaryrefslogtreecommitdiffstats
path: root/cairo/Pkgfile
blob: c8fd31f0758d7a5a2d2b51a2faaa575290f178f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Description: Librairie 2D graphique
# URL: http://www.cairographics.org/ 
# Packager: thierryn1 at hispeed dot ch
# Maintainer: git.cairographics.org/git/cairo
# Depends on: mesa3d, fontconfig, xorg-libxrender, xorg-libpixman, directfb
# Run on: mesa3d,fontconfig,xorg-libpixman,directfb

name=cairo
version=1.12.2
release=2
source=(http://cairographics.org/releases/$name-$version.tar.xz
	buggy_gradients.patch
	expose-snapshot-1.patch)

build() {
	cd $name-$version
	patch -Np1 < ../buggy_gradients.patch
	patch -Np1 < ../expose-snapshot-1.patch
	./configure --prefix=/usr \
		--enable-ps \
		--enable-pdf \
		--enable-xcb \
		--enable-gl \
		--enable-egl=yes \
		--enable-glx=yes \
		--enable-tee \
		--enable-xml \
		--disable-skia \
		--disable-glesv2 \
		--enable-vg \
		--enable-directfb \
		--disable-cogl \
		--disable-xlib-xcb \
		--disable-drm \
		--disable-gtk-doc
	make
	make DESTDIR=$PKG install
	rm -rf $PKG/usr/share
}