Spatialite version 2.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    spatialite  most recent diff


    version 2.0

      View the most recent changes for the spatialite port at: spatialite.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for spatialite.
      The raw portfile for spatialite 2.0 is located here:
      http://spatialite.darwinports.com/dports/databases/spatialite/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/spatialite


      The spatialite Portfile 40948 2008-10-18 20:05:04Z ryandesign macports.org $

      PortSystem 1.0

      Name: spatialite
      Version: 2.0
      Revision: 1
      Category: databases gis
      Platform: 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"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/spatialite
      % sudo port install spatialite
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching spatialite
      ---> Verifying checksum for spatialite
      ---> Extracting spatialite
      ---> Configuring spatialite
      ---> Building spatialite with target all
      ---> Staging spatialite into destroot
      ---> Installing spatialite
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using spatialite with these commands:
      %  man spatialite
      % apropos spatialite
      % which spatialite
      % locate spatialite

     Where to find more information:

    Darwin Ports



    Lightbox this page.