# -*- 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: Portfile 133984 2015-03-16 17:18:03Z petr@macports.org $ PortSystem 1.0 name spatialite version 4.2.0 revision 1 categories databases gis platforms darwin license {MPL-1.1 GPL-2+ LGPL-2.1+} maintainers landonf openmaintainer description Spatial extensions for SQLite 3 long_description SpatiaLite is a library for geographic information \ systems (GIS) that implements the core OpenGIS \ specification. It provides SQLite with basic support \ for spatial data is intended for lightweight GIS \ projects. homepage https://www.gaia-gis.it/fossil/libspatialite/index master_sites http://www.gaia-gis.it/gaia-sins/ distname libspatialite-${version} checksums rmd160 db126a7f32d6c45080c77720681316305ab6722c \ sha256 9f138a6854740c7827fdee53845eb1485fce3e805a7aa9fc9151f8046ebd312d depends_build port:pkgconfig depends_lib port:sqlite3 \ port:geos \ port:proj \ port:libxml2 configure.args-append \ --enable-libxml2 \ --disable-freexl \ --with-proj-lib=${prefix}/lib \ --with-proj-incl=${prefix}/include \ --with-geos-lib=${prefix}/lib \ --with-geos-incl=${prefix}/include post-configure { ui_msg "Patching makefiles…" set mkfiles [exec find ${worksrcpath} -name Makefile] foreach file ${mkfiles} { reinplace -E "s|^(AM_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} reinplace -E "s|^(gaiageo_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} reinplace -E "s|^(splite_la_CPPFLAGS =.*)(-I${prefix}/include )(.*)$|\\1 \\3|" ${file} } ui_msg "Done" }