summaryrefslogtreecommitdiff
path: root/community/agg/PKGBUILD
blob: 0c235e8350ab5ed544d835c0095c3b1dc2441252 (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
# $Id: PKGBUILD 107181 2014-03-14 08:12:44Z andrea $
# Maintainer: Jonathan Conder <jonno dot conder at gmail dot com>

pkgname=agg
pkgver=2.5
pkgrel=5
pkgdesc="A High Quality Rendering Engine for C++"
arch=('i686' 'x86_64')
url="http://www.antigrain.com/"
license=('GPL')
depends=('gcc-libs' 'sdl' 'freetype2')
provides=('antigrain')
replaces=('antigrain')
options=('!makeflags')
source=("http://www.antigrain.com/${pkgname}-${pkgver}.tar.gz"
        agg-2.4-depends.patch
        agg-2.5-pkgconfig.patch
        autotools.patch)
md5sums=('0229a488bc47be10a2fee6cf0b2febd6'
         '22f8e48c137d25038181c86d5e40b110'
         '43a19a7b1564c591e56c8d09a0fd8da5'
         'e042231955a8daee5f3cdfa4ee4e866a')

prepare() {
  cd ${pkgname}-${pkgver}
  patch -p1 -i "${srcdir}/agg-2.4-depends.patch"
  patch -p1 -i "${srcdir}/agg-2.5-pkgconfig.patch"
  patch -p0 -i "${srcdir}/autotools.patch"
}

build() {
  cd ${pkgname}-${pkgver}
  sh ./autogen.sh
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}