1 # Maintainer: Jörg Hansen (joerg dot hansen at ymail dot com)
6 pkgdesc="Free toolkit for developing mapping applications."
7 url="http://mapnik.org/"
10 depends=('freetype2' 'libxml2' 'icu' 'boost' 'pycairo' 'cairomm' 'gdal' 'curl' )
11 makedepends=('subversion' 'scons' 'pkgconfig' 'python2')
15 _svntrunk=http://svn.mapnik.org/trunk
22 msg "SVN checking out..."
24 if [ -d $_svnname/.svn ]; then
25 (cd $_svnname && svn up -r $pkgver)
27 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnname
30 msg "SVN checkout done"
32 if [[ -d $srcdir/$_svnname-build ]]; then
33 msg "Removing previous build directory..."
34 rm -rf $srcdir/$_svnname-build
37 msg "Creating build directory..."
38 cp -r $srcdir/$_svnname $srcdir/$_svnname-build
40 # Patch SConstruct so libs end up in /usr/lib and not in /usr/lib64 on x86_64
41 msg "Fixing LIBDIR_SCHEMA..."
42 cd $srcdir/$_svnname-build
43 sed -i -e "/LIBDIR_SCHEMA=/s/lib64/lib/" SConstruct
46 python2 scons/scons.py configure
48 msg "Compiling and installing..."
49 python2 scons/scons.py install DESTDIR="$pkgdir" PREFIX=/usr