summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2014-09-14 14:40:00 +0000
committergdt <gdt@pkgsrc.org>2014-09-14 14:40:00 +0000
commit00e571868bf962bfd974287192ce7f0205e6fb29 (patch)
tree411d30ecf9c0b9638fb5d0f4971017a1a8674c24 /databases
parent36263b6079a4a54b61cd02c64171b42fcff3eb20 (diff)
downloadpkgsrc-00e571868bf962bfd974287192ce7f0205e6fb29.tar.gz
Import postgresql-postgis-2.1.3 as databases/postgresql-postgis2.
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 has been certified as compliant with the "Types and Functions" profile. PostGIS/PostgreSQL includes the following functionality: * Simple Features as defined by the OpenGIS Consortium (OGC) * Support for Well-Known Text and Well-Known Binary representations of GIS objects * Fast spatial indexing using GiST * Geospatial analysis functions * PostgreSQL JDBC extension objects corresponding to the geometries * Support for OGC access functions as defined by the Simple Features Specification This is postgis 2.x, the currently-maintained and recommended version.
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql-postgis2/DESCR18
-rw-r--r--databases/postgresql-postgis2/Makefile82
-rw-r--r--databases/postgresql-postgis2/PLIST83
-rw-r--r--databases/postgresql-postgis2/buildlink3.mk18
-rw-r--r--databases/postgresql-postgis2/distinfo5
5 files changed, 206 insertions, 0 deletions
diff --git a/databases/postgresql-postgis2/DESCR b/databases/postgresql-postgis2/DESCR
new file mode 100644
index 00000000000..87ee5bf9d06
--- /dev/null
+++ b/databases/postgresql-postgis2/DESCR
@@ -0,0 +1,18 @@
+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 has been
+certified as compliant with the "Types and Functions" profile.
+
+PostGIS/PostgreSQL includes the following functionality:
+* Simple Features as defined by the OpenGIS Consortium (OGC)
+* Support for Well-Known Text and Well-Known Binary representations of GIS
+ objects
+* Fast spatial indexing using GiST
+* Geospatial analysis functions
+* PostgreSQL JDBC extension objects corresponding to the geometries
+* Support for OGC access functions as defined by the Simple Features
+ Specification
+
+This is postgis 2.x, the currently-maintained and recommended version.
diff --git a/databases/postgresql-postgis2/Makefile b/databases/postgresql-postgis2/Makefile
new file mode 100644
index 00000000000..5e9f0fc3a1f
--- /dev/null
+++ b/databases/postgresql-postgis2/Makefile
@@ -0,0 +1,82 @@
+# $NetBSD: Makefile,v 1.1 2014/09/14 14:40:00 gdt Exp $
+
+DISTNAME= postgis-2.1.3
+PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
+CATEGORIES= databases geography
+MASTER_SITES= http://download.osgeo.org/postgis/source/
+
+MAINTAINER= gdt@NetBSD.org
+HOMEPAGE= http://postgis.net/
+COMMENT= Spatial database capabilities for PostgreSQL
+
+LICENSE= gnu-gpl-v2
+
+DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
+
+CONFLICTS= postgis-[0-9]*
+
+# TODO section
+# 1. File ticket upstream about make->$(MAKE) in doc/html/image_src/Makefile.
+# 2. Update to upstream with fixes for:
+@ http://trac.osgeo.org/postgis/ticket/2872
+# http://trac.osgeo.org/postgis/ticket/2909
+
+# gmake complains about adding + to parent rule
+MAKE_JOBS_SAFE= no
+
+PGSQL_VERSIONS_ACCEPTED= 90 91 92 93
+
+USE_GCC_RUNTIME= yes
+USE_LANGUAGES= c c++ c99
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake lex pax perl
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --enable-rpath
+CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib
+
+BUILD_TARGET= all docs
+INSTALL_TARGET= install docs-install
+
+DOCDIR= ${PREFIX}/share/doc/postgis
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= extras/template_gis/profile \
+ extras/template_gis/createdb.postgis.1 \
+ extras/template_gis/mktemplate_gis.1 \
+ extras/template_gis/postgis_env.sh.in
+SUBST_VARS.paths+= PKG_SYSCONFDIR
+SUBST_STAGE.paths= pre-configure
+
+INSTALLATION_DIRS= ${DOCDIR} ${DOCDIR}/images ${PKGMANDIR}/man1
+
+REPLACE_PERL+= utils/postgis_restore.pl.in
+#MAKE_ENV+= PERL5=${PERL5:Q}
+
+INSTALL_ENV+= mkinstalldirs=${INSTALL_DATA_DIR:Q}
+
+TEST_TARGET= check
+
+# TEST_DEPENDS
+.include "../../devel/cunit/buildlink3.mk"
+
+# DOC DEPENDS
+CONFIGURE_ARGS+= -with-xsldir=${PREFIX}/share/xsl/docbook
+# By default xsltproc downloads DTDs. postgis tells it not to, but
+# the dependencies are not packaged. The timing option, not needed,
+# is to make the variable non-empty, to work around a
+# defined/non-empty incorrect test in postgis.
+MAKE_ENV+= "XSLTPROCFLAGS=--timing"
+
+# These are really all BUILD_DEPENDS.
+.include "../../graphics/ImageMagick/buildlink3.mk"
+.include "../../textproc/libxslt/buildlink3.mk"
+.include "../../textproc/docbook-xsl/buildlink3.mk"
+
+# NORMAL DEPENDS
+.include "../../geography/gdal-lib/buildlink3.mk"
+.include "../../geography/geos/buildlink3.mk"
+.include "../../geography/proj/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/postgresql-postgis2/PLIST b/databases/postgresql-postgis2/PLIST
new file mode 100644
index 00000000000..970c361dc53
--- /dev/null
+++ b/databases/postgresql-postgis2/PLIST
@@ -0,0 +1,83 @@
+@comment $NetBSD: PLIST,v 1.1 2014/09/14 14:40:00 gdt Exp $
+bin/pgsql2shp
+bin/raster2pgsql
+bin/shp2pgsql
+include/liblwgeom.h
+lib/liblwgeom-${PKGVERSION}.so
+lib/liblwgeom.la
+lib/postgresql/postgis-2.1.so
+lib/postgresql/rtpostgis-2.1.so
+share/postgresql/contrib/postgis-2.1/legacy.sql
+share/postgresql/contrib/postgis-2.1/legacy_gist.sql
+share/postgresql/contrib/postgis-2.1/legacy_minimal.sql
+share/postgresql/contrib/postgis-2.1/postgis.sql
+share/postgresql/contrib/postgis-2.1/postgis_comments.sql
+share/postgresql/contrib/postgis-2.1/postgis_restore.pl
+share/postgresql/contrib/postgis-2.1/postgis_upgrade_20_21.sql
+share/postgresql/contrib/postgis-2.1/postgis_upgrade_21_minor.sql
+share/postgresql/contrib/postgis-2.1/raster_comments.sql
+share/postgresql/contrib/postgis-2.1/rtpostgis.sql
+share/postgresql/contrib/postgis-2.1/rtpostgis_legacy.sql
+share/postgresql/contrib/postgis-2.1/rtpostgis_upgrade_20_21.sql
+share/postgresql/contrib/postgis-2.1/rtpostgis_upgrade_21_minor.sql
+share/postgresql/contrib/postgis-2.1/spatial_ref_sys.sql
+share/postgresql/contrib/postgis-2.1/topology.sql
+share/postgresql/contrib/postgis-2.1/topology_comments.sql
+share/postgresql/contrib/postgis-2.1/topology_upgrade_21_minor.sql
+share/postgresql/contrib/postgis-2.1/uninstall_legacy.sql
+share/postgresql/contrib/postgis-2.1/uninstall_postgis.sql
+share/postgresql/contrib/postgis-2.1/uninstall_rtpostgis.sql
+share/postgresql/contrib/postgis-2.1/uninstall_sfcgal.sql
+share/postgresql/contrib/postgis-2.1/uninstall_topology.sql
+share/postgresql/extension/postgis--2.0.0--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.0.1--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.0.2--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.0.3--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.0.4--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.0.5--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.1.0--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.1.0rc1--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.1.0rc2--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.1.0rc3--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.1.1--${PKGVERSION}.sql
+share/postgresql/extension/postgis--2.1.2--${PKGVERSION}.sql
+share/postgresql/extension/postgis--${PKGVERSION}--${PKGVERSION}next.sql
+share/postgresql/extension/postgis--${PKGVERSION}.sql
+share/postgresql/extension/postgis--${PKGVERSION}next--${PKGVERSION}.sql
+share/postgresql/extension/postgis--unpackaged--${PKGVERSION}.sql
+share/postgresql/extension/postgis.control
+share/postgresql/extension/postgis_tiger_geocoder--2.0.0--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.0.1--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.0.2--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.0.3--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.0.4--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.0.5--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.1.0--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.1.0rc1--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.1.0rc2--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.1.0rc3--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.1.1--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--2.1.2--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--${PKGVERSION}--${PKGVERSION}next.sql
+share/postgresql/extension/postgis_tiger_geocoder--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--${PKGVERSION}next--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder--unpackaged--${PKGVERSION}.sql
+share/postgresql/extension/postgis_tiger_geocoder.control
+share/postgresql/extension/postgis_topology--2.0.0--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.0.1--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.0.2--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.0.3--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.0.4--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.0.5--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.1.0--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.1.0rc1--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.1.0rc2--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.1.0rc3--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.1.1--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--2.1.2--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--${PKGVERSION}--${PKGVERSION}next.sql
+share/postgresql/extension/postgis_topology--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--${PKGVERSION}next--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology--unpackaged--${PKGVERSION}.sql
+share/postgresql/extension/postgis_topology.control
+@pkgdir share/doc/postgis/images
diff --git a/databases/postgresql-postgis2/buildlink3.mk b/databases/postgresql-postgis2/buildlink3.mk
new file mode 100644
index 00000000000..698bf1bae50
--- /dev/null
+++ b/databases/postgresql-postgis2/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/09/14 14:40:00 gdt Exp $
+
+BUILDLINK_TREE+= postgresql-postgis
+
+.if !defined(POSTGRESQL_POSTGIS_BUILDLINK3_MK)
+POSTGRESQL_POSTGIS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.postgresql-postgis+= postgresql${PGSQL_VERSION}-postgis>=1.4
+BUILDLINK_PKGSRCDIR.postgresql-postgis?= ../../databases/postgresql-postgis
+
+PGSQL_VERSIONS_ACCEPTED= 93 92 91 90
+
+.include "../../geography/geos/buildlink3.mk"
+.include "../../geography/proj/buildlink3.mk"
+.include "../../mk/pgsql.buildlink3.mk"
+.endif # POSTGRESQL_POSTGIS_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -postgresql-postgis
diff --git a/databases/postgresql-postgis2/distinfo b/databases/postgresql-postgis2/distinfo
new file mode 100644
index 00000000000..93f4e149be6
--- /dev/null
+++ b/databases/postgresql-postgis2/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/09/14 14:40:00 gdt Exp $
+
+SHA1 (postgis-2.1.3.tar.gz) = 984bc23603af8c66f4f0b2d3aa7bb75b4c9e3191
+RMD160 (postgis-2.1.3.tar.gz) = d42d962a1bbc077faa3f8a5b6934fc3b84a96811
+Size (postgis-2.1.3.tar.gz) = 6881881 bytes