# $Id$ PortSystem 1.0 name spatialite version 2.0 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-2.0/ master_sites ${homepage} distfiles ${name}-${version}.tar.gz \ init_spatialite.sql.gz extract.only ${name}-${version}.tar.gz checksums ${name}-${version}.tar.gz \ md5 57a4343e1507e1db67f137a699676a9f \ sha1 07b5d3978c9faa8bee9a6d1f6203e9306776ac51 \ rmd160 e9a8a0d5ac163af2394f03d63da65b619c3c4863 \ init_spatialite.sql.gz \ md5 b6695124dc7ae5ac08537c7f6b9ca049 \ sha1 369ef30524ed5930ffd292906b53e4f6298ff733 \ rmd160 8afc72a0d8fd5a7cc3b4d4b4990256e63618eefd depends_lib port:sqlite3 \ port:geos \ port:proj configure.args --enable-geos --enable-proj post-patch { reinplace s|/usr/local|${prefix}|g \ ${worksrcpath}/src/Makefile.in \ ${worksrcpath}/src/shell/Makefile.in } 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" # Create a template database system "${destroot}/${prefix}/bin/spatialite ${sharedir}/spatialite.db < ${sharedir}/init_spatialite.sql" }