aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mapnik/APKBUILD
blob: d27f7c58e9df1b675e3573bca1e3296bb7f55acd (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
pkgname=mapnik
pkgver=3.0.0_rc1
_ver=${pkgver/_rc/-rc}
pkgrel=1
pkgdesc="Toolkit and API for developing mapping application"
url="http://mapnik.org/"
arch="all"
license="LGPL"
options=""
depends="python ttf-dejavu"
makedepends="freetype-dev libxml2-dev zlib-dev icu-dev proj4-dev
	     libjpeg-turbo-dev libpng-dev tiff-dev boost-dev
	     sqlite-dev postgresql-dev cairo-dev py-cairo-dev
	     harfbuzz-dev"
subpackages="$pkgname-dev"
source="$pkgname-$_ver.tar.gz::https://github.com/mapnik/mapnik/archive/v$_ver.tar.gz
	boost-1.57-geojson.patch
	"

_builddir="$srcdir"/$pkgname-$_ver
prepare() {
	cd "$_builddir" || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build () {
	cd "$_builddir"
	python scons/scons.py sh configure -j ${JOBS:-1} \
		DESTDIR="$pkgdir" \
		SYSTEM_FONTS="/usr/share/fonts/TTF/" \
		CUSTOM_CFLAGS="$CFLAGS" \
		CUSTOM_LDFLAGS="$LDFLAGS" \
		PREFIX="/usr" \
		|| return 1
	make
}

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

md5sums="c7231574639ec2688d957831a5c16341  mapnik-3.0.0-rc1.tar.gz
15fbf2b3478699f1d2f9c7c1f10256ab  boost-1.57-geojson.patch"
sha256sums="b4aef9a5910b25cb694b1a67beaf3e8dfbd4d629615d5012eb2378f39a63b379  mapnik-3.0.0-rc1.tar.gz
f2b49482abd85d62e80cef5602890385d4c39aa67a2a4d9341af83bc4485b32d  boost-1.57-geojson.patch"
sha512sums="00fd5479424dc06c9e22e201495fe6a178e5f656445bb5739045c87eda7985bad1598e1eb34bc9bcce6cae2b72200489728a059ba08f32283ddc45dd8d6dc47b  mapnik-3.0.0-rc1.tar.gz
88d830765b7c1404f9b14ca165b1dd546ba3da2fd69c89786cc80a24147acb5807f1bc0b8e5b7d55eadd9d18d3530fc14b254822984856508c04a22e2a14f978  boost-1.57-geojson.patch"