aboutsummaryrefslogtreecommitdiffstats
path: root/main/freetype/APKBUILD
blob: a9881a33f1cfd5b384d0a8fd4c1df65236d28741 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=freetype
pkgver=2.4.11
pkgrel=0
pkgdesc="TrueType font rendering library"
url="http://freetype.sourceforge.net"
arch="all"
license="GPL"
depends=
depends_dev="zlib-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 --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-static
	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 DESTDIR="$pkgdir" install
}

md5sums="5af8234cf36f64dc2b97f44f89325117  freetype-2.4.11.tar.gz
376b94c06b113a62a3437e4130bb3fc3  20-enable-spr.patch
3f6c5739843dcbc110ee0f243c4f6bdb  30-enable-valid.patch
bd2d808a0c00dcf9f1d1c0a9a8227ad9  40-memcpy-fix.patch"