Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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

View File

@@ -0,0 +1,64 @@
# $NetBSD: Makefile,v 1.15 2013/05/31 12:39:55 wiz Exp $
DISTNAME= postgis-1.5.3
PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
PKGREVISION= 5
CATEGORIES= databases geography
MASTER_SITES= http://postgis.refractions.net/download/
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://postgis.refractions.net/
COMMENT= Spatial database capabilities for PostgreSQL
LICENSE= gnu-gpl-v2
PGSQL_VERSIONS_ACCEPTED= 91 90 84
DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
CONFLICTS= postgis-[0-9]*
# gmake complains about adding + to parent rule
MAKE_JOBS_SAFE= no
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake lex pax perl
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-rpath
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql/contrib
TEST_TARGET= check
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
MAKE_ENV+= PERL5=${PERL5:Q}
INSTALL_ENV+= mkinstalldirs=${INSTALL_DATA_DIR:Q}
post-install:
${INSTALL_DATA} ${BUILD_DIRS:Q}/README.postgis ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/html/postgis.html ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/html/style.css ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/html/images/* ${DESTDIR}${DOCDIR}/images
${INSTALL_MAN} ${BUILD_DIRS:Q}/doc/man/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/postgis_comments.sql ${DESTDIR}${PREFIX}/share/postgresql/contrib/postgis-1.5
# TEST_DEPENDS
# .include "../../devel/cunit/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"

View File

@@ -0,0 +1,105 @@
@comment $NetBSD: PLIST,v 1.4 2012/01/08 18:39:49 gdt Exp $
bin/pgsql2shp
bin/shp2pgsql
lib/postgresql/postgis-1.5.so
man/man1/pgsql2shp.1
man/man1/shp2pgsql.1
share/doc/postgis/README.postgis
share/doc/postgis/images/caution.png
share/doc/postgis/images/check.png
share/doc/postgis/images/de9im01.png
share/doc/postgis/images/de9im02.png
share/doc/postgis/images/de9im03.png
share/doc/postgis/images/de9im04.png
share/doc/postgis/images/de9im05.png
share/doc/postgis/images/de9im06.png
share/doc/postgis/images/de9im07.png
share/doc/postgis/images/de9im08.png
share/doc/postgis/images/de9im09.png
share/doc/postgis/images/de9im10.png
share/doc/postgis/images/de9im11.png
share/doc/postgis/images/de9im12.png
share/doc/postgis/images/de9im13.png
share/doc/postgis/images/important.png
share/doc/postgis/images/matrix_autocast.png
share/doc/postgis/images/matrix_checkmark.png
share/doc/postgis/images/matrix_transform.png
share/doc/postgis/images/note.png
share/doc/postgis/images/st_buffer01.png
share/doc/postgis/images/st_buffer02.png
share/doc/postgis/images/st_buffer03.png
share/doc/postgis/images/st_buffer04.png
share/doc/postgis/images/st_buffer05.png
share/doc/postgis/images/st_buffer06.png
share/doc/postgis/images/st_buffer07.png
share/doc/postgis/images/st_buffer08.png
share/doc/postgis/images/st_buildarea01.png
share/doc/postgis/images/st_buildarea02.png
share/doc/postgis/images/st_centroid01.png
share/doc/postgis/images/st_centroid02.png
share/doc/postgis/images/st_centroid03.png
share/doc/postgis/images/st_centroid04.png
share/doc/postgis/images/st_closestpoint01.png
share/doc/postgis/images/st_closestpoint02.png
share/doc/postgis/images/st_contains01.png
share/doc/postgis/images/st_contains02.png
share/doc/postgis/images/st_contains03.png
share/doc/postgis/images/st_contains04.png
share/doc/postgis/images/st_contains05.png
share/doc/postgis/images/st_contains06.png
share/doc/postgis/images/st_convexhull01.png
share/doc/postgis/images/st_crosses-math.gif
share/doc/postgis/images/st_crosses01.png
share/doc/postgis/images/st_crosses02.png
share/doc/postgis/images/st_crosses03.png
share/doc/postgis/images/st_crosses04.png
share/doc/postgis/images/st_difference01.png
share/doc/postgis/images/st_dumppoints01.png
share/doc/postgis/images/st_issimple01.png
share/doc/postgis/images/st_issimple02.png
share/doc/postgis/images/st_issimple03.png
share/doc/postgis/images/st_issimple04.png
share/doc/postgis/images/st_issimple05.png
share/doc/postgis/images/st_issimple06.png
share/doc/postgis/images/st_issimple07.png
share/doc/postgis/images/st_isvalid01.png
share/doc/postgis/images/st_isvalid02.png
share/doc/postgis/images/st_isvalid03.png
share/doc/postgis/images/st_isvalid04.png
share/doc/postgis/images/st_isvalid05.png
share/doc/postgis/images/st_isvalid06.png
share/doc/postgis/images/st_isvalid07.png
share/doc/postgis/images/st_isvalid08.png
share/doc/postgis/images/st_line_interpolate_point01.png
share/doc/postgis/images/st_line_substring01.png
share/doc/postgis/images/st_linecrossingdirection01.png
share/doc/postgis/images/st_linecrossingdirection02.png
share/doc/postgis/images/st_linecrossingdirection03.png
share/doc/postgis/images/st_linecrossingdirection04.png
share/doc/postgis/images/st_longestline01.png
share/doc/postgis/images/st_longestline02.png
share/doc/postgis/images/st_longestline03.png
share/doc/postgis/images/st_minimumboundingcircle01.png
share/doc/postgis/images/st_shortestline01.png
share/doc/postgis/images/st_shortestline02.png
share/doc/postgis/images/st_symdifference01.png
share/doc/postgis/images/st_symdifference02.png
share/doc/postgis/images/st_touches-math.gif
share/doc/postgis/images/st_touches01.png
share/doc/postgis/images/st_touches02.png
share/doc/postgis/images/st_touches03.png
share/doc/postgis/images/st_touches04.png
share/doc/postgis/images/st_touches05.png
share/doc/postgis/images/st_touches06.png
share/doc/postgis/images/st_within01.png
share/doc/postgis/images/tip.png
share/doc/postgis/images/warning.png
share/doc/postgis/postgis.html
share/doc/postgis/style.css
share/postgresql/contrib/postgis-1.5/postgis.sql
share/postgresql/contrib/postgis-1.5/postgis_comments.sql
share/postgresql/contrib/postgis-1.5/postgis_upgrade_13_to_15.sql
share/postgresql/contrib/postgis-1.5/postgis_upgrade_14_to_15.sql
share/postgresql/contrib/postgis-1.5/postgis_upgrade_15_minor.sql
share/postgresql/contrib/postgis-1.5/spatial_ref_sys.sql
share/postgresql/contrib/postgis-1.5/uninstall_postgis.sql

View File

@@ -0,0 +1,16 @@
# $NetBSD: buildlink3.mk,v 1.2 2010/03/14 16:32:15 wiz 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
.include "../../geography/geos/buildlink3.mk"
.include "../../geography/proj/buildlink3.mk"
.include "../../mk/pgsql.buildlink3.mk"
.endif # POSTGRESQL_POSTGIS_BUILDLINK3_MK
BUILDLINK_TREE+= -postgresql-postgis

View File

@@ -0,0 +1,10 @@
$NetBSD: distinfo,v 1.8 2012/03/14 16:41:10 fhajny Exp $
SHA1 (postgis-1.5.3.tar.gz) = e8c572e0258ba760a67b7f717bdc8321b9f6cd58
RMD160 (postgis-1.5.3.tar.gz) = e30275890b175cbe1d70d5899cbe45ec34ddbafb
Size (postgis-1.5.3.tar.gz) = 3779956 bytes
SHA1 (patch-configure) = 5995e773b9f8ec20e710d6cb690e928856c2650e
SHA1 (patch-configure.ac) = 993358912b61670733602511d507e497c9677875
SHA1 (patch-doc_Makefile.in) = 98807010256cf42e4d179305febe2525efbb6cd1
SHA1 (patch-doc_html_image__src_Makefile.in) = 89e19e03dbb936d723d1e6748cd2bd77232bcf6d
SHA1 (patch-postgis_Makefile.in) = db0e73dac0d4c88cd44fe33253c8b766c576b664

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-configure,v 1.1 2011/12/31 17:14:16 gdt Exp $
See configure.ac patch.
--- configure.orig 2011-12-31 03:24:50.000000000 +0000
+++ configure
@@ -16430,12 +16430,14 @@ fi
-PGSQL_FE_LDFLAGS=-L`$PGCONFIG --libdir`" -lpq"
+
+PGSQL_FE_LDFLAGS="-L`$PGCONFIG --libdir` -R`$PGCONFIG --libdir` -lpq"
PGSQL_FE_CPPFLAGS=-I`$PGCONFIG --includedir`
+
PGSQL_DOCDIR=`$PGCONFIG --docdir`
PGSQL_MANDIR=`$PGCONFIG --mandir`

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-configure.ac,v 1.1 2011/12/31 17:14:16 gdt Exp $
Upstream's configure hand-constructs LDFLAGS from using --libdir, and
fails to address rpath.
To be addressed with upstream by gdt after updating to 1.5.3 and
understanding better.
--- configure.ac.orig 2010-01-29 21:24:24.000000000 +0000
+++ configure.ac
@@ -341,7 +341,7 @@ AC_SUBST([PGXSOVERRIDE])
dnl Note: We don't need the server-side LDFLAGS or CPPFLAGS because we get these from PGXS
dnl Extract the linker and include flags for the frontend (for programs that use libpq)
-PGSQL_FE_LDFLAGS=-L`$PGCONFIG --libdir`" -lpq"
+PGSQL_FE_LDFLAGS="-L`$PGCONFIG --libdir` -R`$PGCONFIG --libdir` -lpq"
PGSQL_FE_CPPFLAGS=-I`$PGCONFIG --includedir`
AC_SUBST([PGSQL_FE_LDFLAGS])

View File

@@ -0,0 +1,34 @@
$NetBSD: patch-doc_Makefile.in,v 1.1 2012/01/10 14:00:46 gdt Exp $
--- doc/Makefile.in.orig 2010-09-19 12:21:28.000000000 +0000
+++ doc/Makefile.in
@@ -111,24 +111,24 @@ doxygen: doxygen.cfg
doxygen $<
images:
- make -C html/image_src images
+ $(MAKE) -C html/image_src images
clean:
- make -C html/image_src clean
+ $(MAKE) -C html/image_src clean
@rm -f postgis-out.xml postgis_aggs_mm.xml
maintainer-clean: clean
- make -C html/image_src clean
+ $(MAKE) -C html/image_src clean
@rm -f html/*.html \
postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.pdf
comments: postgis_comments.sql
comments-install: comments
- make -f Makefile.comments install
+ $(MAKE) -f Makefile.comments install
comments-uninstall:
- make -f Makefile.comments uninstall
+ $(MAKE) -f Makefile.comments uninstall
install: html/postgis.html man/shp2pgsql.1 man/pgsql2shp.1
@mkdir -p $(PGSQL_DOCDIR)/postgis

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-doc_html_image__src_Makefile.in,v 1.1 2012/01/10 14:00:46 gdt Exp $
--- doc/html/image_src/Makefile.in.orig 2010-01-11 17:31:49.000000000 +0000
+++ doc/html/image_src/Makefile.in
@@ -126,7 +126,7 @@ generator: ../../../liblwgeom/liblwgeom.
# Build liblwgeom
../../../liblwgeom/liblwgeom.a:
- make -C ../../../liblwgeom liblwgeom.a
+ $(MAKE) -C ../../../liblwgeom liblwgeom.a
# Clean target
clean:

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-postgis_Makefile.in,v 1.1 2012/03/14 16:41:10 fhajny Exp $
Specify perl binary directly, rather than rely on PostgreSQL.
--- postgis/Makefile.in.orig 2010-01-08 22:48:29.000000000 +0000
+++ postgis/Makefile.in
@@ -106,13 +106,13 @@ endif
sed 's,MODULE_PATHNAME,$$libdir/postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,g' $< >$@
postgis_upgrade_15_minor.sql: postgis.sql
- $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.5 > $@
+ $(PERL5) ../utils/postgis_proc_upgrade.pl $< 1.5 > $@
postgis_upgrade_14_to_15.sql: postgis.sql
- $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.4 > $@
+ $(PERL5) ../utils/postgis_proc_upgrade.pl $< 1.4 > $@
postgis_upgrade_13_to_15.sql: postgis.sql
- $(PERL) ../utils/postgis_proc_upgrade.pl $< 1.3 > $@
+ $(PERL5) ../utils/postgis_proc_upgrade.pl $< 1.3 > $@
# Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor
$(SQL_OBJS): %.in: %.in.c