aboutsummaryrefslogtreecommitdiffstats
path: root/main/freetype/APKBUILD
blob: 49fddcee7a6f027b11255ff08e026bc6ad0e5957 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=freetype
pkgver=2.5.2
pkgrel=1
pkgdesc="TrueType font rendering library"
url="http://freetype.sourceforge.net"
arch="all"
license="GPL"
depends=
depends_dev="zlib-dev libpng-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
20-enable-spr.patch
30-enable-valid.patch
40-memcpy-fix.patch
"

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

prepare() {
	cd "$_builddir"
        for i in "$srcdir"/*.patch; do
                msg "Applying ${i}"
                patch -p0 -i $i || return 1
        done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-static \
		|| return 1
	make || return 1
}

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

	# for compat. This should be removed once all apps are properly using
	# pkg-config
	ln -s freetype2 "$pkgdir"/usr/include/freetype
}

md5sums="004320381043d275c4e28bbacf05a1b7  freetype-2.5.2.tar.gz
605e03a5d95b858f566cadca1dbd316b  20-enable-spr.patch
3f6c5739843dcbc110ee0f243c4f6bdb  30-enable-valid.patch
bd2d808a0c00dcf9f1d1c0a9a8227ad9  40-memcpy-fix.patch"
sha256sums="376bc32bd907cb6f1a826a9c52627747b6d95259129df0f2c8faf99491168b55  freetype-2.5.2.tar.gz
9ec2c8c126fa9bda4eaec779ae6234f094f8a8d85d20f947e910716df9d703ca  20-enable-spr.patch
5f1b3b767dc1fdb1fcd3963399ac3c2263d07fe3f1f14f677d08cd0d2161ae5c  30-enable-valid.patch
574c265c7a7032c5afb32a9807e5d04354ad0def656194cfcfff1ccca6a5540e  40-memcpy-fix.patch"
sha512sums="7d52e63423fc8c7597e6395ca70d6fb73b3e12b409a76644ca9a5ae239cac6b9bb313f5d0d292d33e26a3e4482e019ffce5c648b641961e67eb05d9ac1af3700  freetype-2.5.2.tar.gz
bd30f76003ae4e7fd324fdbdbc70f930bda418ae819e7c611c90cb2d8299dca5995edb543c7991121c3990fab6ffff03a183a08c1975d083009f7272586fc266  20-enable-spr.patch
fdfa3c633a32bd9142f62454e12dd92442e8e02831fd34aca348aec6d00e7813130fbf267a7f4048a272596a478cfe3064df0ee9f9c06531378710f41bc2e40f  30-enable-valid.patch
1553f7f0514238012e300bc8d0b1e260145db17fb56f13e4aa667435e98c3749c00e150caa0e318289b84bca33b9a06a68b8342575e10ac3bf5af3d5cc861537  40-memcpy-fix.patch"