# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name py26-mapnik version 0.6.0 categories python gis maintainers gmail.com:dbsgeo homepage http://mapnik.org/ platforms darwin master_sites http://download.berlios.de/mapnik/ \ http://download2.berlios.de/mapnik/ distname mapnik-${version} worksrcdir mapnik-${version} checksums md5 981271ac1cd1432314a963809c245fe1 \ sha1 4a092f27fe66b8a9f9800a3944a50c6f5b97473a \ rmd160 aa1cbe18a9d0ce96b5c826ea3c8546e1fdf0cc86 use_bzip2 yes universal_variant no patchfiles patch-src-Sconscript.diff description Open Source C++/Python mapping toolkit. long_description \ Mapnik is a Open Source tookit for developing mapping \ applications. It is written in C++ and there are \ Python bindings to facilitate fast-paced agile \ development. It can comfortably be used for both \ desktop and web development. \ \ Mapnik is about making beautiful maps. It uses the \ AGG library and offers world class anti-aliasing \ rendering with subpixel accuracy for geographic \ data. It is written from scratch in modern C++ and \ does not suffer from design decisions made a decade \ ago. When it comes to handling common software tasks \ such as memory management, filesystem access, \ regular expressions, parsing and so on, Mapnik \ does not re-invent the wheel, but utilises best of \ breed industry standard libraries from boost.org. \ depends_lib port:boost \ port:libpng \ port:jpeg \ port:tiff \ port:icu \ port:zlib \ port:freetype \ port:proj \ port:libxml2 \ port:python26 \ set python "${prefix}/bin/python2.6" configure.pkg_config ${prefix}/bin/pkg-config variant cairo description {Builds port with Cairo Support} { configure.pkg_config_path ${prefix}/lib/pkgconfig:${x11prefix}/lib/pkgconfig:${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/pkgconfig depends_lib-append port:cairo depends_lib-append port:cairomm depends_lib-append port:py26-cairo configure.args-delete CAIRO=False configure.args-append CAIRO=True } variant postgis description {Builds port with PostGIS plugin} { depends_lib-append port:postgresql83 depends_lib-append port:postgresql83-server depends_lib-append port:postgis configure.args-append PG_CONFIG=${prefix}/lib/postgresql83/bin/pg_config } variant gdal description {Builds port with GDAL/OGR plugin} { depends_lib-append port:gdal configure.args-append GDAL_CONFIG=${prefix}/bin/gdal-config } variant sqlite description {Builds port with SQLite3 plugin} { depends_lib-append port:sqlite3 configure.args-append SQLITE_INCLUDES=${prefix}/include \ SQLITE_LIBS=${prefix}/lib } use_parallel_build yes configure.args PREFIX=${prefix} \ JOBS=4 \ CAIRO=False \ INPUT_PLUGINS=all \ PYTHON=${python} \ FREETYPE_CONFIG=${prefix}/bin/freetype-config \ XML2_CONFIG=${prefix}/bin/xml2-config \ BOOST_INCLUDES=${prefix}/include \ BOOST_LIBS=${prefix}/lib \ SQLITE_INCLUDES=${prefix}/include \ SQLITE_LIBS=${prefix}/lib \ ICU_INCLUDES=${prefix}/include \ ICU_LIBS=${prefix}/lib \ PNG_INCLUDES=${prefix}/include \ PNG_LIBS=${prefix}/lib \ JPEG_INCLUDES=${prefix}/include \ JPEG_LIBS=${prefix}/lib \ TIFF_INCLUDES=${prefix}/include \ TIFF_LIBS=${prefix}/lib \ PROJ_INCLUDES=${prefix}/include \ PROJ_LIBS=${prefix}/lib \ FRAMEWORK_PYTHON=False \ DESTDIR=${destroot} configure { system "cd ${worksrcpath} && ${python} scons/scons.py ${configure.args} configure" } build { system "cd ${worksrcpath} && ${python} scons/scons.py" } destroot { system "cd ${worksrcpath} && ${python} scons/scons.py install" }