aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/mapnik/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/mapnik/APKBUILD')
-rw-r--r--unmaintained/mapnik/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/unmaintained/mapnik/APKBUILD b/unmaintained/mapnik/APKBUILD
new file mode 100644
index 0000000000..d27f7c58e9
--- /dev/null
+++ b/unmaintained/mapnik/APKBUILD
@@ -0,0 +1,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"