aboutsummaryrefslogtreecommitdiffstats
path: root/main/cairo/APKBUILD
blob: 9f424f8976ce647b61da39e4951e59d84f8c954c (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairo
pkgver=1.12.16
pkgrel=0
pkgdesc="Cairo vector graphics library"
url="http://cairographics.org/"
arch="all"
license="LGPL MPL"
depends=
depends_dev="fontconfig-dev freetype-dev libpng-dev libxrender-dev pixman-dev
	xcb-util-dev glib-dev libxext-dev"
makedepends="$depends_dev zlib-dev expat-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-gobject $pkgname-tools"
source="http://cairographics.org/releases/$pkgname-$pkgver.tar.xz"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-ft \
		--enable-gobject \
		--enable-pdf \
		--enable-png \
		--enable-ps \
		--enable-tee \
		--enable-xcb \
		--enable-xlib-xrender \
		--disable-xlib-xcb \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/lib/*/*.la
}

gobject() {
	pkgdesc="GObject bindings for cairo"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libcairo-gobject.so.* "$subpkgdir"/usr/lib/
}

tools() {
	pkgdesc="Development tools for cairo"
	mkdir -p "$subpkgdir"/usr/lib/cairo
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ || return 1
	mv "$pkgdir"/usr/lib/cairo/libcairo-trace.* \
		"$subpkgdir"/usr/lib/cairo/
}

md5sums="a1304edcdc99282f478b995ee5f8f854  cairo-1.12.16.tar.xz"
sha256sums="2505959eb3f1de3e1841023b61585bfd35684b9733c7b6a3643f4f4cbde6d846  cairo-1.12.16.tar.xz"
sha512sums="35389305ba0906e2e1beab92966650fc7d7f8f41231e355ea2bf8693a333946f0693c125d1c50681e12b7f2aff85ae1fdcf957f3d83bc7eaacd52569884c6b2f  cairo-1.12.16.tar.xz"