# -*- 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 spatialite version 4.3.0 categories databases gis platforms darwin license {MPL-1.1 GPL-2+ LGPL-2.1+} maintainers nomaintainer 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}a checksums rmd160 ee8d9f3f69f1c70f041b418e0e51a05ec40a5be7 \ sha256 88900030a4762904a7880273f292e5e8ca6b15b7c6c3fb88ffa9e67ee8a5a499 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" }