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. ok simon@
This commit is contained in:
parent
8ec070b12f
commit
d2114b762c
60
geo/postgis/Makefile
Normal file
60
geo/postgis/Makefile
Normal file
@ -0,0 +1,60 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/12/08 19:47:47 eric Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= geographic objects support for PostgreSQL
|
||||
DISTNAME= postgis-1.3.2
|
||||
CATEGORIES= geo databases
|
||||
|
||||
HOMEPAGE= http://www.postgis.org/
|
||||
|
||||
MAINTAINER= Eric Faurot <eric@openbsd.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}download/
|
||||
|
||||
WANTLIB= c
|
||||
MODULES= converters/libiconv
|
||||
|
||||
LIB_DEPENDS= proj::devel/proj \
|
||||
pq:postgresql-client-*:databases/postgresql \
|
||||
geos_c::geo/geos
|
||||
RUN_DEPENDS= :postgresql-server-*:databases/postgresql,-server
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
|
||||
USE_GMAKE= Yes
|
||||
CONFIGURE_ENV= PGXS=1 \
|
||||
LDFLAGS=-L${LOCALBASE}/lib \
|
||||
CPPFLAGS=-I${LOCALBASE}/include
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ARGS= --with-pgsql-src=${LOCALBASE}/lib/postgresql/pgxs \
|
||||
--enable-autoconf \
|
||||
--with-proj \
|
||||
--with-geos \
|
||||
--datadir=${PREFIX}/share/postgresql/contrib \
|
||||
--libdir=${PREFIX}/lib/postgresql
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT_DIR} ${PREFIX}/libexec/postgis/utils
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/utils/*.pl ${PREFIX}/libexec/postgis/utils
|
||||
${INSTALL_DATA} ${WRKSRC}/utils/README ${PREFIX}/libexec/postgis/utils
|
||||
cd ${WRKSRC}/doc && ${MAKE_PROGRAM} install
|
||||
|
||||
###
|
||||
### Note on running regress
|
||||
###
|
||||
# - make sure you do not have a postgresql server currently running
|
||||
# - as user _postgresql, in another terminal, run:
|
||||
# $ mkdir /tmp/pg && initdb -D /tmp/pg -U postgres && postgres -D /tmp/pg
|
||||
# - run make regress
|
||||
|
||||
do-regress: install
|
||||
cd ${WRKSRC}/regress && PGUSER=postgres ${MAKE_PROGRAM}
|
||||
|
||||
|
||||
.include <bsd.port.mk>
|
5
geo/postgis/distinfo
Normal file
5
geo/postgis/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (postgis-1.3.2.tar.gz) = sNUsLCPDFvyYhGMqgLOApQ==
|
||||
RMD160 (postgis-1.3.2.tar.gz) = bMaecPvA8+QMhg0LCD5060m8FWU=
|
||||
SHA1 (postgis-1.3.2.tar.gz) = K7J49gdopDSoqwGsOkRfCUUHiOY=
|
||||
SHA256 (postgis-1.3.2.tar.gz) = TK7TRscuG4gkr9S33WTnjysQEIem3SuRf7WstEu5l/A=
|
||||
SIZE (postgis-1.3.2.tar.gz) = 2161660
|
16
geo/postgis/patches/patch-doc_Makefile
Normal file
16
geo/postgis/patches/patch-doc_Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-doc_Makefile,v 1.1.1.1 2007/12/08 19:47:47 eric Exp $
|
||||
--- doc/Makefile.orig Sat Dec 8 12:28:16 2007
|
||||
+++ doc/Makefile Sat Dec 8 12:28:43 2007
|
||||
@@ -38,12 +38,6 @@ chunked-html: postgis-out.xml
|
||||
$(CHUNK_HTML_DOCBOOK_XSL) \
|
||||
$<
|
||||
|
||||
-html/postgis.html: postgis-out.xml
|
||||
- $(XSLTPROC) $(XSLTPROC_COMMONOPTS) $(XSLTPROC_HTMLOPTS) \
|
||||
- --output html/postgis.html \
|
||||
- $(HTML_DOCBOOK_XSL) \
|
||||
- $<
|
||||
-
|
||||
postgis.fo: postgis-out.xml
|
||||
$(XSLTPROC) $(XSLTPROC_COMMONOPTS) \
|
||||
--output $@ \
|
14
geo/postgis/patches/patch-loader_Makefile
Normal file
14
geo/postgis/patches/patch-loader_Makefile
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-loader_Makefile,v 1.1.1.1 2007/12/08 19:47:47 eric Exp $
|
||||
--- loader/Makefile.orig Thu Sep 13 22:17:07 2007
|
||||
+++ loader/Makefile Thu Sep 13 22:17:44 2007
|
||||
@@ -13,8 +13,8 @@ OBJS = shpopen.o dbfopen.o getopt.o
|
||||
#---------------------------------------------------------------
|
||||
|
||||
ifeq ($(USE_ICONV),1)
|
||||
- override CFLAGS += -DUSE_ICONV
|
||||
- override LDFLAGS += $(ICONV_LDFLAGS)
|
||||
+ override CFLAGS += -I${LOCALBASE}/include -DUSE_ICONV
|
||||
+ override LDFLAGS += -L${LOCALBASE}/lib $(ICONV_LDFLAGS)
|
||||
endif
|
||||
|
||||
override CFLAGS := -g -Wall -I.. $(CFLAGS) -DUSE_VERSION=$(USE_VERSION) -DPOSTGIS_VERSION='"$(POSTGIS_VERSION)"'
|
11
geo/postgis/patches/patch-lwgeom_Makefile
Normal file
11
geo/postgis/patches/patch-lwgeom_Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-lwgeom_Makefile,v 1.1.1.1 2007/12/08 19:47:47 eric Exp $
|
||||
--- lwgeom/Makefile.orig Sat Jul 22 15:35:47 2006
|
||||
+++ lwgeom/Makefile Sat Jul 22 15:35:18 2006
|
||||
@@ -2,6 +2,7 @@
|
||||
include ../Makefile.config
|
||||
include ../Version.config
|
||||
|
||||
+override shlib=lib$(NAME)$(DLSUFFIX)
|
||||
#---------------------------------------------------------------
|
||||
# Default missing CXX variable to c++
|
||||
#
|
7
geo/postgis/pkg/DESCR
Normal file
7
geo/postgis/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
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.
|
23
geo/postgis/pkg/PLIST
Normal file
23
geo/postgis/pkg/PLIST
Normal file
@ -0,0 +1,23 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/12/08 19:47:47 eric Exp $
|
||||
bin/pgsql2shp
|
||||
bin/shp2pgsql
|
||||
lib/postgresql/liblwgeom.so
|
||||
@comment lib/postgresql/liblwgeom.so.1
|
||||
libexec/postgis/
|
||||
libexec/postgis/utils/
|
||||
libexec/postgis/utils/README
|
||||
libexec/postgis/utils/create_undef.pl
|
||||
libexec/postgis/utils/postgis_proc_upgrade.pl
|
||||
libexec/postgis/utils/postgis_restore.pl
|
||||
libexec/postgis/utils/profile_intersects.pl
|
||||
libexec/postgis/utils/test_estimation.pl
|
||||
libexec/postgis/utils/test_joinestimation.pl
|
||||
@man man/man1/pgsql2shp.1
|
||||
@man man/man1/shp2pgsql.1
|
||||
share/doc/postgis/
|
||||
share/doc/postgis/README.postgis
|
||||
share/doc/postgis/postgis.html
|
||||
share/postgresql/contrib/
|
||||
share/postgresql/contrib/lwpostgis.sql
|
||||
share/postgresql/contrib/lwpostgis_upgrade.sql
|
||||
share/postgresql/contrib/spatial_ref_sys.sql
|
Loading…
x
Reference in New Issue
Block a user