aboutsummaryrefslogtreecommitdiffstats
path: root/main/cairo/APKBUILD
blob: 660fe4cab0b2fbe004f033318a9fcb4d86b60bfa (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairo
pkgver=1.10.2
pkgrel=2
pkgdesc="Cairo vector graphics library"
url="http://cairographics.org/"
arch="all"
license="LGPL MPL"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="pkgconfig libpng-dev libxrender-dev fontconfig pixman-dev
	xcb-util-dev fontconfig-dev freetype-dev expat-dev zlib-dev
	libiconv-dev mesa-dev glib-dev"
depends_dev="fontconfig-dev freetype-dev libpng-dev libxrender-dev pixman-dev
	xcb-util-dev mesa-dev"
source="http://cairographics.org/releases/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
  	sed -i -e 's/libpng13/libpng14/g' configure || return 1
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-xcb \
		--enable-gl \
		--enable-gobject \
		--disable-static || return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="f101a9e88b783337b20b2e26dfd26d5f  cairo-1.10.2.tar.gz"