From 9ffc708e2ccd08ba141be5e6127a93ef811437b9 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Thu, 17 Jun 2004 22:13:35 +0000 Subject: [PATCH] Add postgis 0.8.2: adds support for geographic objects to PostgreSQL databases. PR: 67765 Submitted by: Anderson Soares Ferreira --- databases/Makefile | 1 + databases/postgis/Makefile | 48 +++++++++++++++++++++++++++++++++++++ databases/postgis/distinfo | 2 ++ databases/postgis/pkg-descr | 20 ++++++++++++++++ databases/postgis/pkg-plist | 10 ++++++++ 5 files changed, 81 insertions(+) create mode 100644 databases/postgis/Makefile create mode 100644 databases/postgis/distinfo create mode 100644 databases/postgis/pkg-descr create mode 100644 databases/postgis/pkg-plist diff --git a/databases/Makefile b/databases/Makefile index 7e6ab5ec00ad..0d81ddf5f174 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -207,6 +207,7 @@ SUBDIR += php-sqlrelay SUBDIR += phpmyadmin SUBDIR += phppgadmin + SUBDIR += postgis SUBDIR += postgresql-contrib SUBDIR += postgresql-devel SUBDIR += postgresql-docs diff --git a/databases/postgis/Makefile b/databases/postgis/Makefile new file mode 100644 index 000000000000..e29dd90840c4 --- /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 +# +# $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 diff --git a/databases/postgis/distinfo b/databases/postgis/distinfo new file mode 100644 index 000000000000..77425a69e556 --- /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 000000000000..4110b683cfb5 --- /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 000000000000..0f2a8669c8b4 --- /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