Download and Install postgis version 1.3.3 on Mac OS X
Monday the 1st of December, 2008

    postgis  most recent diff


    version 1.3.3

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



      # $Id: Portfile 40782 2008-10-14 22:26:23Z jmr macports.org $

      PortSystem 1.0

      Name: postgis
      Version: 1.3.3
      revision 1
      Category: databases
      Platform: darwin
      Maintainers: frank-lists auroralux.net
      Description: adds support for geographic objects to the postgresql database
      Long Description: PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS follows the OpenGIS Simple Features Specification for SQL and will be submitted for conformance testing at version 1.0.

      Homepage: http://postgis.refractions.net/
      master_sites http://distfiles.macports.org/${dist_subdir}/ http://postgis.refractions.net/download/
      checksums sha1 12b0da709360f67340f88774b70cf3bac65fcc24
      patchfiles patch-extras-template_gis-postgis_env.sh.in

      depends_lib port:geos port:proj port:libiconv

      configure.args --datadir=${prefix}/share/${name} --with-geos=${prefix}/bin/geos-config --with-proj=${prefix}

      build.args "ICONV_LDFLAGS=\"-L${prefix}/lib -liconv\" CFLAGS=\"-I${prefix}/include\""

      #
      # Default to PostgreSQL 8.3
      #
      set default_configure "--libdir=${prefix}/lib/postgresql83/ --with-pgsql=${prefix}/lib/postgresql83/bin/pg_config"
      set default_depends port:postgresql83

      configure.args-append ${default_configure}
      depends_lib-append ${default_depends}

      # Support for older PostgreSQL versions
      Variant: postgresql82 {
      # Remove the default dependency
      global default_configure
      global default_depends

      configure.args-delete $default_configure
      depends_lib-delete $default_depends

      # Declare the 8.2 dependency
      depends_lib-append port:postgresql82
      configure.args-append --libdir=${prefix}/lib/postgresql82/ --with-pgsql=${prefix}/lib/postgresql82/bin/pg_config
      }

    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/postgis
      % sudo port install postgis
      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 postgis
      ---> Verifying checksum for postgis
      ---> Extracting postgis
      ---> Configuring postgis
      ---> Building postgis with target all
      ---> Staging postgis into destroot
      ---> Installing postgis
    - 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 postgis with these commands:
      %  man postgis
      % apropos postgis
      % which postgis
      % locate postgis

     Where to find more information:

    Darwin Ports



    Lightbox this page.