source: trunk/dports/databases/postgis/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                    postgis
6version                 1.3.3
7revision                1
8categories              databases
9platforms               darwin
10maintainers             frank-auroralux.net:lists
11description             adds support for geographic objects to the postgresql database
12long_description        PostGIS adds support for geographic objects to the \
13                        PostgreSQL object-relational database. In effect, PostGIS \
14                        "spatially enables" the PostgreSQL server, allowing it to be used \
15                        as a backend spatial database for geographic information systems \
16                        (GIS), much like ESRI's SDE or Oracle's Spatial extension. PostGIS \
17                        follows the OpenGIS Simple Features Specification for SQL and \
18                        will be submitted for conformance testing at version 1.0.
19
20homepage                http://postgis.refractions.net/
21master_sites    http://distfiles.macports.org/${dist_subdir}/ \
22                                http://postgis.refractions.net/download/
23checksums               sha1 12b0da709360f67340f88774b70cf3bac65fcc24
24patchfiles              patch-extras-template_gis-postgis_env.sh.in \
25                                patch-Makefile.config.in.diff
26
27depends_lib             port:geos port:proj port:libiconv
28
29configure.args          --datadir=${prefix}/share/${name} \
30                        --with-geos=${prefix}/bin/geos-config \
31                        --with-proj=${prefix}
32
33build.args "ICONV_LDFLAGS=\"-L${prefix}/lib -liconv\""
34
35#
36# Default to PostgreSQL 8.3
37#
38set default_configure           "--libdir=${prefix}/lib/postgresql83/ --with-pgsql=${prefix}/lib/postgresql83/bin/pg_config"
39set default_depends             port:postgresql83
40
41configure.args-append           ${default_configure}
42depends_lib-append              ${default_depends}
43
44# Support for older PostgreSQL versions
45variant postgresql82 {
46        # Remove the default dependency
47        global default_configure
48        global default_depends
49
50        configure.args-delete   $default_configure
51        depends_lib-delete      $default_depends
52
53        # Declare the 8.2 dependency
54        depends_lib-append      port:postgresql82
55        configure.args-append   --libdir=${prefix}/lib/postgresql82/ \
56                                --with-pgsql=${prefix}/lib/postgresql82/bin/pg_config
57}
Note: See TracBrowser for help on using the repository browser.