aboutsummaryrefslogtreecommitdiffstats
path: root/testing/agg/APKBUILD
blob: 91e5d27f7583753696ed135fa8f357a45affc4f1 (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
# Contributor: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
# Maintainer: Elizabeth Jennifer Myers <elizabeth@sporksirc.net>
pkgname=agg
pkgver=2.5
pkgrel=3
pkgdesc="A Rendering Engine for C++"
url="http://antigrain.com"
license="GPL2+"
depends=""
makedepends="autoconf automake libtool libx11-dev freetype-dev sdl-dev"
install=""
arch="all"
subpackages="$pkgname-dev"
source="http://www.antigrain.com/$pkgname-$pkgver.tar.gz
	agg-2.4-depends.patch
	agg-2.5-pkgconfig.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd $_builddir
	for i in "$srcdir"/*.patch; do
		msg "Applying ${i}"
		patch -Np1 -i "$i" || return 1
	done
	# fix building against automake-1.12
	sed -i '/^AM_C_PROTOTYPES/d' configure.in
	sh ./autogen.sh || return 1
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr --disable-static || return 1
	make || return 1
}

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

md5sums="0229a488bc47be10a2fee6cf0b2febd6  agg-2.5.tar.gz
22f8e48c137d25038181c86d5e40b110  agg-2.4-depends.patch
43a19a7b1564c591e56c8d09a0fd8da5  agg-2.5-pkgconfig.patch"