# -*- 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 PortGroup cxx11 1.0 name mapnik version 3.0.10 revision 0 categories gis devel platforms darwin license LGPL-2.1 supported_archs i386 x86_64 maintainers panulla.com:macports stromnov openmaintainer description Open Source C++/Python mapping toolkit. long_description Mapnik is a Free Toolkit for developing mapping \ applications. It is written in modern C++ and has Python \ bindings that support fast-paced agile development. It \ can comfortably be used for both desktop map design and \ web development. \ \ Mapnik is about making beautiful maps. It uses the AGG \ graphics library, which offers world-class anti-aliasing \ rendering with subpixel accuracy for geographic data. homepage http://mapnik.org master_sites https://mapnik.s3.amazonaws.com/dist/v${version}/ distname mapnik-v${version} use_bzip2 yes checksums rmd160 c18e1e69070331fb04f2b7965f46f62f16a37e9d \ sha256 3640bcec197a34ee078153e667c34433da5b71e02f1fa7c148012d97bd36aa39 depends_build port:pkgconfig depends_lib-append port:boost \ port:harfbuzz \ port:icu \ port:libpng \ port:jpeg \ port:tiff \ port:webp \ port:zlib \ port:freetype \ port:proj set input_plugins {shape csv raster geojson topojson} variant cairo description {Enable Cairo support for PDF, PostScript, and SVG} { configure.args-delete CAIRO=False configure.args-append CAIRO=True depends_lib-append path:lib/pkgconfig/cairo.pc:cairo } variant gdal description {Build GDAL/OGR plugin} { depends_lib-append port:gdal configure.args-append GDAL_CONFIG=${prefix}/bin/gdal-config lappend input_plugins gdal ogr } variant postgis description {Build PostGIS plugin} { depends_lib-append path:lib/libpq.dylib:postgresql94 if {![file exists ${prefix}/lib/libpq.dylib]} { configure.args-append PG_CONFIG=${prefix}/lib/postgresql94/bin/pg_config } lappend input_plugins postgis } variant sqlite description {Build SQLite plugin} { depends_lib-append port:sqlite3 lappend input_plugins sqlite } universal_variant no configure.pkg_config ${prefix}/bin/pkg-config configure.python /usr/bin/python build.cmd ${configure.python} scons/scons.py build.pre_args use_parallel_build yes configure.cmd ${build.cmd} configure.pre_args configure configure.args CXX="${configure.cxx}" \ CC="${configure.cc}" \ CUSTOM_CXXFLAGS="${configure.cxxflags}" \ CUSTOM_CFLAGS="${configure.cflags}" \ CUSTOM_LDFLAGS="${configure.ldflags}" \ PREFIX=${prefix} \ DESTDIR=${destroot} \ CAIRO=False \ CPP_TESTS=False \ BINDINGS=none \ JOBS=${build.jobs} \ FREETYPE_CONFIG=${prefix}/bin/freetype-config \ XML2_CONFIG=${prefix}/bin/xml2-config foreach lib {BOOST ICU PNG JPEG TIFF PROJ CAIRO SQLITE} { configure.args-append ${lib}_INCLUDES=${prefix}/include configure.args-append ${lib}_LIBS=${prefix}/lib } destroot.destdir pre-configure { # Must be evaluated after the variants configure.args-append INPUT_PLUGINS=[join ${input_plugins} ","] if {[variant_isset postgis] && [variant_isset sqlite]} { configure.args-append PGSQL2SQLITE=True } } post-destroot { xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} \ {*}[glob ${worksrcpath}/docs/*] AUTHORS.md CHANGELOG.md COPYING README.md \ ${destroot}${prefix}/share/doc/${name} xinstall -d -m 755 ${destroot}${prefix}/share/${name} copy ${worksrcpath}/demo ${destroot}${prefix}/share/${name} } livecheck.type regex livecheck.url http://mapnik.org/pages/downloads.html livecheck.regex {mapnik-v(\d+(?:\.\d+)*)[.tz]}