Ticket #13286: postgis-update.patch

File postgis-update.patch, 2.2 KB (added by seanasy@…, 16 years ago)
  • (a) /dev/fd/63 vs. (b) Portfile

    a b  
    1 # $Id: Portfile 29811 2007-10-10 13:25:43Z dluke@macports.org $
     1# $Id: Portfile 22211 2007-02-21 23:24:27Z mww@macports.org $
    22
    33PortSystem 1.0
    44
    55name                    postgis
    66version                 1.3.1
     7revision                1
    78categories              databases
    89platforms               darwin
    9 maintainers             frank-lists@auroralux.net
     10maintainers             nomaintainer@macports.org
    1011description             adds support for geographic objects to the postgresql database
    1112long_description        PostGIS adds support for geographic objects to the \
    1213                        PostgreSQL object-relational database. In effect, PostGIS \
    1314                        "spatially enables" the PostgreSQL server, allowing it to be used \
    1415                        as a backend spatial database for geographic information systems \
    1516                        (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS \
    16                         follows the OpenGIS Simple Features Specification for SQL and \
    17                         will be submitted for conformance testing at version 1.0.
     17                        follows the OpenGIS Simple Features Specification for SQL and has \
     18                        been certified as compliant with the "Types and Functions" profile.
    1819
    1920homepage                http://postgis.refractions.net/
    20 master_sites    http://postgis.refractions.net/download/
     21master_sites    ${homepage}download/
    2122checksums               sha1 db8e954dfc19e73c2331358a396e2064d1333a72
    22 patchfiles              patch-extras-template_gis-postgis_env.sh.in
     23#patchfiles             patch-extras-template_gis-postgis_env.sh.in
    2324
    2425depends_lib             port:postgresql82 port:geos port:proj
    2526
     
    2930                                --with-geos=${prefix}/bin/geos-config \
    3031                                --with-proj=${prefix}
    3132
    32 build.args "ICONV_LDFLAGS=\"-L${prefix}/lib -liconv\""
     33variant postgresql81 {
     34        depends_lib-delete              port:postgresql82
     35        depends_lib-append              port:postgresql81
     36        configure.args-delete   --libdir=${prefix}/lib/postgresql82/ \
     37                                                        --with-pgsql=${prefix}/lib/postgresql82/bin/pg_config
     38        configure.args-append   --libdir=${prefix}/lib/postgresql81/ \
     39                                                        --with-pgsql=${prefix}/lib/postgresql81/bin/pg_config
     40}
    3341
    3442platform darwin 8 {
    35         configure.compiler      gcc-4.0
     43        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    3644}
    3745
     46#post-destroot {
     47#       file rename ${destroot}/etc/default/postgis \
     48#               ${destroot}${prefix}/etc/postgis.default
     49#}
     50
     51