# $Id$ PortSystem 1.0 name spatialite version 2.3.1 revision 1 categories databases gis platforms darwin 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 http://www.gaia-gis.it/spatialite-${version}/ master_sites ${homepage} distname lib${name}-amalgamation-${version} distfiles lib${name}-amalgamation-${version}.tar.gz \ init_spatialite.sql.gz extract.only lib${name}-amalgamation-${version}.tar.gz checksums lib${name}-amalgamation-${version}.tar.gz \ md5 3e1b15a55a0bd511e6437fdb604a10b1 \ sha1 7582979576c12be1952aa85334b1d0a143485a12 \ rmd160 64f8ea11f30a66c5f9eb304308bc01dca75b646a \ init_spatialite.sql.gz \ md5 b6695124dc7ae5ac08537c7f6b9ca049 \ sha1 369ef30524ed5930ffd292906b53e4f6298ff733 \ rmd160 8afc72a0d8fd5a7cc3b4d4b4990256e63618eefd depends_lib port:sqlite3 \ port:geos \ port:proj configure.args --with-proj-lib=${prefix}/lib configure.args-append --with-proj-incl=${prefix}/include configure.args-append --with-geos-lib=${prefix}/lib configure.args-append --with-geos-incl=${prefix}/include post-destroot { # Set up the init SQL set sharedir ${destroot}${prefix}/share/spatialite file mkdir ${sharedir} system "gzip -cd ${distpath}/init_spatialite.sql.gz > ${sharedir}/init_spatialite.sql" }