Spatialite-devel version 2.1 - How to Download and Install on Mac OS X
Saturday the 20th of March, 2010

    spatialite-devel  most recent diff


    version 2.1

      View the most recent changes for the spatialite-devel port at: spatialite-devel.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for spatialite-devel.
      The raw portfile for spatialite-devel 2.1 is located here:
      http://spatialite-devel.darwinports.com/dports/databases/spatialite-devel/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-devel


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

      PortSystem 1.0

      Name: spatialite-devel
      Version: 2.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.1/
      Master Sites: ${homepage}

      distfiles spatialite-${version}.tar.gz init_spatialite.sql.gz

      extract.only spatialite-${version}.tar.gz

      worksrcdir spatialite-${version}

      Checksums: spatialite-${version}.tar.gz md5 145b4159603f2e514bb552cf02b4e8f7 sha1 4177896a35ca27d3dc7a136008db7d1c543e5eb7 rmd160 d1557fa30f13f5dad9c0f91e46d41cd49677f421 init_spatialite.sql.gz md5 b6695124dc7ae5ac08537c7f6b9ca049 sha1 369ef30524ed5930ffd292906b53e4f6298ff733 rmd160 8afc72a0d8fd5a7cc3b4d4b4990256e63618eefd

      depends_lib port:sqlite3 port:geos port:proj

      configure.ldflags-append -liconv -lintl -lcharset
      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-devel
      % sudo port install spatialite-devel
      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-devel
      ---> Verifying checksum for spatialite-devel
      ---> Extracting spatialite-devel
      ---> Configuring spatialite-devel
      ---> Building spatialite-devel with target all
      ---> Staging spatialite-devel into destroot
      ---> Installing spatialite-devel
    - 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-devel with these commands:
      %  man spatialite-devel
      % apropos spatialite-devel
      % which spatialite-devel
      % locate spatialite-devel

     Where to find more information:

    Darwin Ports



    Lightbox this page.