# $Id: Portfile,v 1.2 2006/01/23 08:41:50 mww Exp $

PortSystem 1.0

name			postgis
version			1.1.1
categories		databases
platforms		darwin
maintainers		darwinports@opendarwin.org
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://postgis.refractions.net/download/
checksums		md5 3c86999ff2fa8678bb3d210202a84358

depends_lib		port:postgresql8 port:geos port:proj

configure.args	--libdir=${prefix}/lib/pgsql8/ \
				--datadir=${prefix}/share/${name} \
				--with-pgsql=${prefix}/lib/pgsql8/bin/pg_config \
				--with-geos=${prefix}/bin/geos-config \
				--with-proj=${prefix}

platform darwin 8 {
	configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
}

