aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mapnik/APKBUILD
blob: 2c8e50d5d10a816abb0b61ccd3422554a50e14c4 (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
66
67
68
69
70
# Contributor: Markus Juenemann <markus@juenemann.net>
# Maintainer: Markus Juenemann <markus@juenemann.net>
pkgname=mapnik
pkgver=3.0.22
pkgrel=2
pkgdesc="An open source toolkit for developing mapping applications"
url="http://mapnik.org/"
arch="x86_64"
license="LPGL-2.0-or-later"
makedepends="
	boost-dev
	cairo-dev
	freetype-dev
	gdal-dev
	harfbuzz-dev
	icu-dev
	libpng-dev
	libwebp-dev
	libxml2-dev
	postgresql-dev
	proj-dev
	python3
	py3-setuptools
	sqlite-dev
	tiff-dev
	zlib-dev
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/mapnik/mapnik/releases/download/v$pkgver/mapnik-v$pkgver.tar.bz2"

builddir="$srcdir/$pkgname-v$pkgver"
build() {
	python3 scons/scons.py configure \
		CUSTOM_CXXFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=ON" \
		CUSTOM_CFLAGS="-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=ON" \
		PREFIX=/usr \
		DESTDIR="$pkgdir" \
		--jobs=${JOBS:-2} \
		--config=cache \
		--implicit-cache \
		--max-drift=1
	python3 scons/scons.py \
		--jobs=${JOBS:-2} \
		--config=cache \
		--implicit-cache \
		--max-drift=1
}

package() {
	python scons/scons.py install \
		--jobs=${JOBS-2} \
		--config=cache \
		--implicit-cache \
		--max-drift=1
}

dev() {
	pkgdesc="Mapnik development files"
	mkdir -p "$subpkgdir"/usr/include/mapnik
	mv "$pkgdir"/usr/include/mapnik "$subpkgdir"/usr/include/mapnik
}

doc() {
	pkgdesc="Mapnik documentation"
	mkdir -p "$subpkgdir"/usr/share/docs/$pkgname/docs/
	install -Dm644 $builddir/*.md "$subpkgdir"/usr/share/docs/$pkgname/
	install -Dm644 $builddir/docs/* "$subpkgdir"/usr/share/docs/$pkgname/docs/
}

sha512sums="a558d5e52b249b439d7c4b574d909d781c877d91d3b1e707938fb9856661542c2d7b36742c394e5a0a38d88cf9f65078093dcc4190e5d3a5672c0ef054eb6358  mapnik-v3.0.22.tar.bz2"