aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgis
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-02-19 16:26:43 +0800
committerthierry <thierry@FreeBSD.org>2005-02-19 16:26:43 +0800
commit5bc38ee65ebdaa1815866233cc0742add1a76b6a (patch)
tree5691270a066fc19a62e12eb4c967b811cca215d7 /databases/postgis
parentc3ee0d52b108b62688226e355764eccd44af69f6 (diff)
downloadfreebsd-ports-gnome-5bc38ee65ebdaa1815866233cc0742add1a76b6a.tar.gz
freebsd-ports-gnome-5bc38ee65ebdaa1815866233cc0742add1a76b6a.tar.zst
freebsd-ports-gnome-5bc38ee65ebdaa1815866233cc0742add1a76b6a.zip
Upgrade to 1.0.0-rc2.
PR: ports/76916 Submitted by: maintainer.
Diffstat (limited to 'databases/postgis')
-rw-r--r--databases/postgis/Makefile21
-rw-r--r--databases/postgis/distinfo4
-rw-r--r--databases/postgis/files/README.upgrade16
-rw-r--r--databases/postgis/files/UPDATE14
-rw-r--r--databases/postgis/files/patch-a42
-rw-r--r--databases/postgis/files/patch-b18
-rw-r--r--databases/postgis/files/patch-c61
-rw-r--r--databases/postgis/files/patch-d38
-rw-r--r--databases/postgis/files/updatedb.default3
-rw-r--r--databases/postgis/pkg-deinstall2
-rw-r--r--databases/postgis/pkg-install9
-rw-r--r--databases/postgis/pkg-message15
-rw-r--r--databases/postgis/pkg-plist11
13 files changed, 123 insertions, 131 deletions
diff --git a/databases/postgis/Makefile b/databases/postgis/Makefile
index 9fe5ffa657d5..d8f90f49983a 100644
--- a/databases/postgis/Makefile
+++ b/databases/postgis/Makefile
@@ -6,11 +6,9 @@
#
PORTNAME= postgis
-PORTVERSION= 0.9.1
-PORTREVISION= 1
+DISTVERSION= 1.0.0-rc2
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
@@ -21,33 +19,40 @@ USE_GMAKE= yes
USE_PERL5_BUILD= yes
PKGMESSAGE= pkg-message
-WRKSRC= ${WRKDIR}/postgis-${PORTVERSION}
PGSQL_SRC= ${WRKDIR}/pgsql/postgresql
INSTALL_TARGET= install
INSTALLS_SHLIB= no
OPTIONS= GEOS "Include GEOS - the OpenGIS 'Simple Features for SQL'" off \
+ UTF8 "UTF-8 support for shp2pgsql. (needs libiconv)" off
USE_PGSQL= YES
.include <bsd.port.pre.mk>
MAKE_ARGS= PGSQL_SRC="${PGSQL_SRC}" \
+ USE_PROJ=1 \
DATADIR="${PREFIX}/share/postgis" \
+ INSTALL_DATA="${INSTALL_DATA}" \
BINDIR="${PREFIX}/bin" \
LIBDIR="${PREFIX}/lib"
-PGSQL_PORTDIR= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
+PGSQL_PORTDIR= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
- ${LOCALBASE}/share/xsl/docbook/html/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
+ ${LOCALBASE}/share/xsl/docbook/html/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
MAKE_ARGS+= WITH-DOC=yes \
DOCSDIR="${DOCSDIR}"
PORTDOCS= *
.endif
+.if defined(WITH_UTF8)
+LIB_DEPENDS+= iconv:${PORTSDIR}/converters/libiconv
+MAKE_ARGS+= USE_ICONV=1
+.endif
+
.if defined(WITH_GEOS)
LIB_DEPENDS+= geos.2:${PORTSDIR}/graphics/geos
MAKE_ARGS+= USE_GEOS=1
@@ -65,8 +70,8 @@ pre-configure:
${MV} ${WRKDIR}/pgsql/postgresql* ${PGSQL_SRC} \
post-install:
- @ ${INSTALL_SCRIPT} ${FILESDIR}/updatedb.default ${PREFIX}/share/postgis
- @ ${INSTALL_SCRIPT} ${FILESDIR}/UPDATE ${PREFIX}/share/postgis
+ @ ${INSTALL_DATA} ${FILESDIR}/updatedb.default ${PREFIX}/share/postgis
+ @ ${INSTALL_DATA} ${FILESDIR}/README.upgrade ${PREFIX}/share/postgis
@ ${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
@ ${CAT} ${PKGMESSAGE}
diff --git a/databases/postgis/distinfo b/databases/postgis/distinfo
index 5156e62cbb15..3272a5c06993 100644
--- a/databases/postgis/distinfo
+++ b/databases/postgis/distinfo
@@ -1,2 +1,2 @@
-MD5 (postgis-0.9.1.tar.gz) = 43264e90d013aea9ce8f3f0c3540ac32
-SIZE (postgis-0.9.1.tar.gz) = 491789
+MD5 (postgis-1.0.0-rc2.tar.gz) = 7b39a1f3cec40cd30b2c1549a65e04c9
+SIZE (postgis-1.0.0-rc2.tar.gz) = 1270939
diff --git a/databases/postgis/files/README.upgrade b/databases/postgis/files/README.upgrade
new file mode 100644
index 000000000000..88eb5382d465
--- /dev/null
+++ b/databases/postgis/files/README.upgrade
@@ -0,0 +1,16 @@
+Updating databases from old versions of Postgis
+
+The postgis library has its name changed, now the library is called
+liblwgeom.so.1 instead of libpostgis.so.0 .
+Databases created with older versions of postgis won't work properly,
+until all references of libpostgis.so.0 be corrected.
+To solve this problem, please, make a dump (on text format) of your
+database and use the PREFIX/share/updatedb script.
+
+ sh PREFIX/share/updatedb dump.sql
+
+A new file with '.updated' extension will be created with the library
+references updated.
+After that, you can restore your database using the updated file.
+
+ psql -f dump.sql.updated database
diff --git a/databases/postgis/files/UPDATE b/databases/postgis/files/UPDATE
deleted file mode 100644
index 1478cf65c0f1..000000000000
--- a/databases/postgis/files/UPDATE
+++ /dev/null
@@ -1,14 +0,0 @@
-Updating databases from old versions of Postgis
-
-Due the libpostgis.so.0 path modification, databases created with older
-versions of postgis won't work properly.
-To solve this problem, please, make a dump (on text format) of your database
-and use the PREFIX/share/updatedb script.
-
- sh PREFIX/share/updatedb dump.sql
-
-A new file with '.updated' extension will be created with libpostgis
-references updated.
-After that you can restore your database using updated file.
-
- psql -f dump.sql.updated database
diff --git a/databases/postgis/files/patch-a b/databases/postgis/files/patch-a
index a4b087664a67..9052c9938605 100644
--- a/databases/postgis/files/patch-a
+++ b/databases/postgis/files/patch-a
@@ -1,17 +1,22 @@
---- doc/Makefile Thu Sep 9 17:51:32 2004
-+++ doc/Makefile.new Wed Dec 29 09:49:05 2004
-@@ -5,14 +5,16 @@
+--- doc/Makefile Thu Jan 13 07:42:40 2005
++++ doc/Makefile Mon Jan 31 16:48:51 2005
+@@ -1,20 +1,22 @@
+ COMMONOPTS = -f docbook -b html -e no-valid
+ LAST_RELEASE_VERSION = 1.0.0RC1
+
++include ../Makefile.config
++include $(top_srcdir)/src/Makefile.shlib
+
postgis-out.xml: postgis.xml
cat $< | sed "s/@@LAST_RELEASE_VERSION@@/$(LAST_RELEASE_VERSION)/g" > $@
-+# html/ch01.html html/ch02.html html/ch03.html html/ch04.html html/ch05.html html/index.html
-+
chunked-html: postgis-out.xml
-- xsltproc \
+ xsltproc \
- --param shade.verbatim 1 \
-+ xsltproc --param shade.verbatim 1 \
- --param chunk.section.depth 0 \
+ --output html/ \
+ --param chunk.section.depth 0 \
+ --param section.autolabel 1 \
+ --param section.label.includes.component.label 1 \
--stringparam html.stylesheet style.css \
--stringparam saxon.character.representation decimal \
- /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl \
@@ -21,25 +26,16 @@
html: postgis-out.xml
xsltproc \
-@@ -20,11 +22,20 @@
- --param shade.verbatim 1 \
- --param chunk.section.depth 0 \
- --stringparam html.stylesheet style.css \
-- /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl \
-+ /usr/local/share/xsl/docbook/html/docbook.xsl \
- $<
-
- jw: postgis-out.xml
- jw $(COMMONOPTS) -o html/ postgis-out.xml
+@@ -53,3 +55,12 @@
+ postgis.out \
+ postgis.log
- clean:
-+ rm -f postgis-out.xml chunked-html html/*.html
-+
+install: chunked-html
++ $(mkinstalldirs) $(DOCSDIR)
++ $(INSTALL_DATA) html/index.html $(DOCSDIR)/index.html
+ $(INSTALL_DATA) html/ch01.html $(DOCSDIR)/ch01.html
+ $(INSTALL_DATA) html/ch02.html $(DOCSDIR)/ch02.html
+ $(INSTALL_DATA) html/ch03.html $(DOCSDIR)/ch03.html
+ $(INSTALL_DATA) html/ch04.html $(DOCSDIR)/ch04.html
+ $(INSTALL_DATA) html/ch05.html $(DOCSDIR)/ch05.html
-+ $(INSTALL_DATA) html/index.html $(DOCSDIR)/index.html
-
++ $(INSTALL_DATA) html/ch06.html $(DOCSDIR)/ch06.html
diff --git a/databases/postgis/files/patch-b b/databases/postgis/files/patch-b
index 35124669b8fb..b7686f0ab4ea 100644
--- a/databases/postgis/files/patch-b
+++ b/databases/postgis/files/patch-b
@@ -1,6 +1,14 @@
---- loader/Makefile Wed Dec 29 16:31:54 2004
-+++ loader/Makefile.new Wed Dec 29 16:32:25 2004
-@@ -50,8 +50,8 @@
+--- loader/Makefile Wed Jan 12 15:03:57 2005
++++ loader/Makefile Mon Jan 31 14:36:59 2005
+@@ -18,6 +18,7 @@
+
+ ifeq ($(USE_ICONV),1)
+ override CFLAGS += -DUSE_ICONV
++ override LDFLAGS += -liconv
+ endif
+
+ override CFLAGS := -g -I.. -I$(srcdir) -I$(top_builddir)/src/interfaces/libpq $(CFLAGS) -DFRONTEND -DSYSCONFDIR='"$(sysconfdir)"' -DUSE_VERSION=$(USE_VERSION)
+@@ -31,8 +32,8 @@
$(CC) $(CFLAGS) $(OBJS) shp2pgsql.o $(LDFLAGS) -o $@
install: all
@@ -9,5 +17,5 @@
+ $(INSTALL_PROGRAM) pgsql2shp$(EXE) $(DESTDIR)$(BINDIR)/pgsql2shp$(EXE)
+ $(INSTALL_PROGRAM) shp2pgsql$(EXE) $(DESTDIR)$(BINDIR)/shp2pgsql$(EXE)
- clean:
- @rm -f $(OBJS) shp2pgsql.o pgsql2shp.o shp2pgsql$(EXE) pgsql2shp$(EXE)
+ uninstall:
+ rm -f $(DESTDIR)$(bindir)/pgsql2shp$(EXE)
diff --git a/databases/postgis/files/patch-c b/databases/postgis/files/patch-c
index 4e473d10e814..7c806d014fa7 100644
--- a/databases/postgis/files/patch-c
+++ b/databases/postgis/files/patch-c
@@ -1,64 +1,17 @@
---- Makefile Wed Dec 29 09:44:01 2004
-+++ Makefile.new Wed Dec 29 09:56:30 2004
-@@ -28,7 +28,7 @@
- #
- # Download from: http://geos.refractions.net
- #
--USE_GEOS=1
-+#USE_GEOS=1
- ifeq (${GEOS_DIR},)
- GEOS_DIR=/usr/local
- endif
-@@ -105,10 +105,10 @@
- SCRIPTS_VERSION=0.0.1
- ifeq (${USE_VERSION}, 71)
- MODULE_FILENAME = $(LPATH)/$(shlib)
-- MODULE_INSTALLDIR = $(libdir)
-+ MODULE_INSTALLDIR = $(LIBDIR)
- else
- MODULE_FILENAME = $(LPATH)/$(shlib)
-- MODULE_INSTALLDIR = $(pkglibdir)
-+ MODULE_INSTALLDIR = $(LIBDIR)
- endif
+--- Makefile Mon Jan 31 12:51:48 2005
++++ Makefile Mon Jan 31 12:56:14 2005
+@@ -5,8 +5,14 @@
+ #-----------------------------------------------------
- #---------------------------------------------------------------
-@@ -191,6 +191,10 @@
- postgis_geos_wrapper.o: postgis_geos_wrapper.cpp
-
- all: $(GEOS_RULES) all-lib postgis.sql postgis_undef.sql loaderdumper
+ all: liblwgeom loaderdumper
+ifneq ($(WITH-DOC),)
+ $(MAKE) -C doc chunked-html
+endif
-+
-
- loaderdumper:
- $(MAKE) -C loader
-@@ -207,11 +211,15 @@
- perl create_undef.pl $< $(USE_VERSION) > $@
- install: all installdirs install-postgis-lib
-- $(INSTALL_DATA) postgis.sql $(DESTDIR)$(datadir)
-- $(INSTALL_DATA) postgis_undef.sql $(DESTDIR)$(datadir)
-- $(INSTALL_DATA) spatial_ref_sys.sql $(DESTDIR)$(datadir)
-- $(INSTALL_DATA) README.postgis $(DESTDIR)$(datadir)
-+ $(INSTALL_DATA) postgis.sql $(DESTDIR)$(DATADIR)/postgis.sql.default
-+ $(INSTALL_DATA) postgis_undef.sql $(DESTDIR)$(DATADIR)
-+ $(INSTALL_DATA) spatial_ref_sys.sql $(DESTDIR)$(DATADIR)
-+ $(INSTALL_DATA) README.postgis $(DESTDIR)$(DATADIR)
- $(MAKE) DESTDIR=$(DESTDIR) -C loader install
+ install: all liblwgeom-install loaderdumper-install
+ifneq ($(WITH-DOC),)
+ $(MAKE) INSTALL_DATA="$(INSTALL_DATA)" DOCSDIR=$(DOCSDIR) -C doc install
+endif
-+
-
- #- This has been copied from postgresql and adapted
- install-postgis-lib: $(shlib)
-@@ -235,7 +243,7 @@
- ./geos_version.sh $(GEOS_DIR) > postgis_geos_version.h
- installdirs:
-- $(mkinstalldirs) $(docdir)/contrib $(datadir)/contrib $(libdir)
-+ $(mkinstalldirs) $(DATADIR) $(libdir)
+ uninstall: liblwgeom-uninstall loaderdumper-uninstall
- uninstall: uninstall-lib
- @rm -f $(docdir)/contrib/README.postgis $(datadir)/contrib/postgis.sql
diff --git a/databases/postgis/files/patch-d b/databases/postgis/files/patch-d
new file mode 100644
index 000000000000..f0a45875c854
--- /dev/null
+++ b/databases/postgis/files/patch-d
@@ -0,0 +1,38 @@
+--- lwgeom/Makefile Wed Jan 26 06:35:56 2005
++++ lwgeom/Makefile Mon Jan 31 13:28:00 2005
+@@ -21,10 +21,10 @@
+ SCRIPTS_VERSION=0.1.0
+ ifeq (${USE_VERSION},71)
+ MODULE_FILENAME = $(LPATH)/$(shlib)
+- MODULE_INSTALLDIR = $(libdir)
++ MODULE_INSTALLDIR = $(LIBDIR)
+ else
+ MODULE_FILENAME = $(LPATH)/$(shlib)
+- MODULE_INSTALLDIR = $(pkglibdir)
++ MODULE_INSTALLDIR = $(LIBDIR)
+ endif
+
+ #---------------------------------------------------------------
+@@ -123,7 +123,7 @@
+ install: all installdirs install-lwgeom-lib install-lwgeom-scripts
+
+ install-lwgeom-scripts:
+- $(INSTALL_DATA) lwpostgis.sql $(DESTDIR)$(datadir)
++ $(INSTALL_DATA) lwpostgis.sql $(DESTDIR)$(DATADIR)/lwpostgis.sql.default
+
+ #- This has been copied from postgresql and adapted
+ install-lwgeom-lib: $(shlib)
+@@ -147,10 +147,11 @@
+ sh ../geos_version.sh $(GEOS_DIR) > postgis_geos_version.h
+
+ installdirs:
+- $(mkinstalldirs) $(libdir)
++ $(mkinstalldirs) $(LIBDIR)
++ $(mkinstalldirs) $(DATADIR)
+
+ uninstall-lwgeom-scripts:
+- rm -f $(DESTDIR)$(datadir)/lwpostgis.sql
++ rm -f $(DESTDIR)$(DATADIR)/lwpostgis.sql
+
+ uninstall: uninstall-lib uninstall-lwgeom-scripts
+
diff --git a/databases/postgis/files/updatedb.default b/databases/postgis/files/updatedb.default
index 2af237355add..b2d44e6848df 100644
--- a/databases/postgis/files/updatedb.default
+++ b/databases/postgis/files/updatedb.default
@@ -2,4 +2,5 @@
LIBDIR=%%LIBDIR%%
-sed "s|'.*/libpostgis.so.0'|'${LIBDIR}/libpostgis.so.0'|g" $1 > $1.updated
+sed "s|'.*/libpostgis\.so\.0'|'${LIBDIR}/liblwgeom.so.1'|g
+ s|'.*/liblwgeom\.so\.1'|'${LIBDIR}/liblwgeom.so.1'|g $1 > $1.updated
diff --git a/databases/postgis/pkg-deinstall b/databases/postgis/pkg-deinstall
index c2dbee5ad606..cb750eeb08ed 100644
--- a/databases/postgis/pkg-deinstall
+++ b/databases/postgis/pkg-deinstall
@@ -5,7 +5,7 @@ case "$2" in
"POST-DEINSTALL")
PREF=${PREFIX:-$PKG_PREFIX}
SHAREDIR=${PREF}/share/postgis
- rm -f ${SHAREDIR}/postgis.sql ${SHAREDIR}/updatedb
+ rm -f ${SHAREDIR}/lwpostgis.sql ${SHAREDIR}/updatedb
rmdir ${SHAREDIR}
;;
esac
diff --git a/databases/postgis/pkg-install b/databases/postgis/pkg-install
index 05579c05d8b8..f6f3be016f4a 100644
--- a/databases/postgis/pkg-install
+++ b/databases/postgis/pkg-install
@@ -4,10 +4,8 @@ msg(){
echo "
================== ** Postgis Upgrade Notice ** ===================
- The Postgis 0.9.1 port has changed the location of some files,
- including libpostgis.so.0 library. If you are a user from a old
- version of Postgis (0.9.0 or older), make a backup from your
- databases before continue !
+ If you are a user from a old version of Postgis (0.9.1 or older),
+ make a backup from your databases before continue !
If you need to backup your data, press CTRL-C now !
@@ -43,8 +41,9 @@ case "$2" in
PREF=${PREFIX:-$PKG_PREFIX}
SHAREDIR=${PREF}/share/postgis
LIBDIR=${PREF}/lib
- sed -e "s|\$libdir|${LIBDIR}|g" ${SHAREDIR}/postgis.sql.default > ${SHAREDIR}/postgis.sql
+ sed -e "s|\$libdir|${LIBDIR}|g" ${SHAREDIR}/lwpostgis.sql.default > ${SHAREDIR}/lwpostgis.sql
sed -e "s|%%LIBDIR%%|${LIBDIR}|g" ${SHAREDIR}/updatedb.default > ${SHAREDIR}/updatedb
+ chmod 0755 ${SHAREDIR}/updatedb
;;
"MESSAGE")
msg
diff --git a/databases/postgis/pkg-message b/databases/postgis/pkg-message
index df96a4e09d01..17c88c36bb9c 100644
--- a/databases/postgis/pkg-message
+++ b/databases/postgis/pkg-message
@@ -1,16 +1,9 @@
=============================================================
-Postgis Installation notes
+Postgis Installation note
-* The Postgis SQL files had its locations changed.
- Now they can be found at PREFIX/share/postgis
-
-* HTML Documentation was added to this port and can be found
- at PREFIX/share/doc/postgis
-
-* libpostgis.so and libpostgis.so.1 were moved from
- PREFIX/lib/postgresql to PREFIX/lib.
- Users from older versions (0.9.0 or older), *must* read
- PREFIX/share/postgis/UPDATE for instructions.
+* The name of the postgis library has changed.
+ Users from older versions (0.9.1 or older), *must* read
+ PREFIX/share/postgis/README.upgrade for instructions.
=============================================================
diff --git a/databases/postgis/pkg-plist b/databases/postgis/pkg-plist
index d1fcd46ad054..08bd559b0985 100644
--- a/databases/postgis/pkg-plist
+++ b/databases/postgis/pkg-plist
@@ -1,13 +1,10 @@
bin/pgsql2shp
bin/shp2pgsql
-lib/libpostgis.so
-lib/libpostgis.so.0
-%%DATADIR%%/README.postgis
-%%DATADIR%%/UPDATE
-%%DATADIR%%/postgis.sql.default
+lib/liblwgeom.so
+lib/liblwgeom.so.1
+%%DATADIR%%/README.upgrade
%%DATADIR%%/updatedb.default
-%%DATADIR%%/postgis_undef.sql
-%%DATADIR%%/spatial_ref_sys.sql
+%%DATADIR%%/lwpostgis.sql.default
%%PORTDOCS%%@unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true
@unexec rmdir %D/%%DATADIR%% 2>/dev/null || true
@unexec rmdir %D/lib 2>/dev/null || true