blob: f7fe3f50e16aceeb4ef44d15a13fe0a91508872c (
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
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cairo
pkgver=1.14.8
pkgrel=0
pkgdesc="A vector graphics library"
url="http://cairographics.org/"
arch="all"
license="LGPL2+ MPL 1.1"
depends=
depends_dev="fontconfig-dev freetype-dev libxrender-dev pixman-dev
xcb-util-dev libxext-dev $pkgname-tools"
makedepends="$depends_dev zlib-dev expat-dev glib-dev libpng-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-gobject $pkgname-tools"
# fontconfig-ultimate https://github.com/bohoomil/fontconfig-ultimate
_ultver="2016-04-23"
source="http://cairographics.org/releases/$pkgname-$pkgver.tar.xz
fontconfig-ultimate-$_ultver.tar.gz::https://github.com/bohoomil/fontconfig-ultimate/archive/$_ultver.tar.gz
"
builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$builddir"
default_prepare || return 1
# infinality
for j in "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/*.patch; do
msg "Applying ${j}"
patch -p1 -i $j || return 1
done
}
build() {
cd "$builddir"
autoreconf -vif
./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
}
gobject() {
pkgdesc="$pkgdesc (gobject bindings)"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libcairo-gobject.so.* "$subpkgdir"/usr/lib/
}
tools() {
pkgdesc="$pkgdesc (development tools)"
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="4ef0db2eacb271c74f8a3fd87822aa98 cairo-1.14.8.tar.xz
66e377b2191f4852a1dc9ea53e8c340b fontconfig-ultimate-2016-04-23.tar.gz"
sha256sums="d1f2d98ae9a4111564f6de4e013d639cf77155baf2556582295a0f00a9bc5e20 cairo-1.14.8.tar.xz
9ea0e2455980be7c2ff649c1deb07838e9be64f4fad939716e0050fd5897b057 fontconfig-ultimate-2016-04-23.tar.gz"
sha512sums="dfe77a01ca72e21e11610243a5f6e92e6b0821c4ace11686fb0bac8f0bf9217a79974ff46bdf3d19fd85173f5f24f2c3f6d4e00cf729a55a6492e6798d6c4ec2 cairo-1.14.8.tar.xz
d8185f4ec74f44c4746acf7e79bba7ff7ffd9d35bdabeb25e10b4e12825942d910931aa857f1645e5c8185bcb40a1f1ffe1e7e647428e9ea66618b2aec52fac3 fontconfig-ultimate-2016-04-23.tar.gz"
|