diff options
author | thierry <thierry@FreeBSD.org> | 2004-06-17 22:13:35 +0000 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-06-17 22:13:35 +0000 |
commit | 3000ef55a9ee09f3bbdf58f2e334f0e72d7c1c1e (patch) | |
tree | 64eac8a60ae1b212be7e9ac742316537122c61cb /databases/postgis | |
parent | 00c74c80c217446bbef7b3c5a292b0e708f7a4c6 (diff) | |
download | FreeBSD-ports-3000ef55a9ee09f3bbdf58f2e334f0e72d7c1c1e.zip FreeBSD-ports-3000ef55a9ee09f3bbdf58f2e334f0e72d7c1c1e.tar.gz |
Add postgis 0.8.2: adds support for geographic objects to
PostgreSQL databases.
PR: 67765
Submitted by: Anderson Soares Ferreira
Diffstat (limited to 'databases/postgis')
-rw-r--r-- | databases/postgis/Makefile | 48 | ||||
-rw-r--r-- | databases/postgis/distinfo | 2 | ||||
-rw-r--r-- | databases/postgis/pkg-descr | 20 | ||||
-rw-r--r-- | databases/postgis/pkg-plist | 10 |
4 files changed, 80 insertions, 0 deletions
diff --git a/databases/postgis/Makefile b/databases/postgis/Makefile new file mode 100644 index 0000000..e29dd90 --- /dev/null +++ b/databases/postgis/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: PostGIS +# Date created: June 09, 2004 +# Whom: Anderson Soares Ferreira <anderson@cnpm.embrapa.br> +# +# $FreeBSD$ +# + +PORTNAME= postgis +PORTVERSION= 0.8.2 +CATEGORIES= databases +MASTER_SITES= http://postgis.refractions.net/ +DISTNAME= postgis-${PORTVERSION} + +MAINTAINER= anderson@cnpm.embrapa.br +COMMENT= Adds support for geographic objects to PostgreSQL databases + +LIB_DEPENDS= proj.3:${PORTSDIR}/graphics/proj +BUILD_DEPENDS= postmaster:${PORTSDIR}/databases/postgresql7 +RUN_DEPENDS= postmaster:${PORTSDIR}/databases/postgresql7 + +USE_GMAKE= yes +USE_PERL5_BUILD= yes +MAKE_ARGS= PGSQL_SRC=${PGSQL_SRC} + +PGSQL_PORTDIR= ${PORTSDIR}/databases/postgresql7 +WRKSRC= ${WRKDIR}/postgis-${PORTVERSION} +PGSQL_SRC= ${PGSQL_PORTDIR}/work/postgresql-7.4.2 +INSTALL_TARGET= install + +.if defined(WITH_GEOS) +LIB_DEPENDS+= geos.1:${PORTSDIR}/graphics/geos +.endif + +pre-extract: + @if [ ! -d ${PGSQL_SRC} ] ; then \ + ${ECHO_MSG} "===> Extracting and configuring PostgreSQL source" ; \ + cd ${PGSQL_PORTDIR} ; \ + ${MAKE} configure ; \ + fi + +post-extract: +.if ! defined(WITH_GEOS) + @ ${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig ; \ + ${CAT} ${WRKSRC}/Makefile.orig | \ + ${SED} "s|USE_GEOS=1|USE_GEOS=0|g" > ${WRKSRC}/Makefile +.endif + +.include <bsd.port.mk> diff --git a/databases/postgis/distinfo b/databases/postgis/distinfo new file mode 100644 index 0000000..77425a6 --- /dev/null +++ b/databases/postgis/distinfo @@ -0,0 +1,2 @@ +MD5 (postgis-0.8.2.tar.gz) = 0a2ed054e7a1ad74153eb844d1b56046 +SIZE (postgis-0.8.2.tar.gz) = 1875280 diff --git a/databases/postgis/pkg-descr b/databases/postgis/pkg-descr new file mode 100644 index 0000000..4110b68 --- /dev/null +++ b/databases/postgis/pkg-descr @@ -0,0 +1,20 @@ +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. + +PostGIS has been developed by Refractions Research Inc as a research project +in open source spatial database technology. PostGIS is released under the +GNU General Public License. We intend to continue development as time and +resources permit. Our list of future projects includes enhanced technology +for data loading and dumping, user interface tools for direct data access +and manipulation, and support for advanced topologies at the server side, +such as coverages, networks, and surfaces. + +WWW: http://postgis.refractions.net/ + +Anderson +anderson@cnpm.embrapa.br diff --git a/databases/postgis/pkg-plist b/databases/postgis/pkg-plist new file mode 100644 index 0000000..0f2a866 --- /dev/null +++ b/databases/postgis/pkg-plist @@ -0,0 +1,10 @@ +bin/pgsql2shp +bin/shp2pgsql +lib/postgresql/libpostgis.so +lib/postgresql/libpostgis.so.0 +share/postgresql/README.postgis +share/postgresql/postgis.sql +share/postgresql/postgis_undef.sql +share/postgresql/spatial_ref_sys.sql +@unexec rmdir %D/lib/postgresql 2>/dev/null || true +@unexec rmdir %D/share/postgresql 2>/dev/null || true |