diff options
author | Steven Kreuzer <skreuzer@FreeBSD.org> | 2009-10-07 14:10:58 +0000 |
---|---|---|
committer | Steven Kreuzer <skreuzer@FreeBSD.org> | 2009-10-07 14:10:58 +0000 |
commit | fe53b1bc68ea3384fcfde07ec82a9e82e6e1219e (patch) | |
tree | cff36bf8ac7b0a7b222ec04333b1379cad8a2105 | |
parent | 7eb2334ad4c126fced980080586484e3a34c7783 (diff) | |
download | ports-fe53b1bc68ea3384fcfde07ec82a9e82e6e1219e.tar.gz ports-fe53b1bc68ea3384fcfde07ec82a9e82e6e1219e.zip |
Notes
-rw-r--r-- | databases/postgis/Makefile | 63 | ||||
-rw-r--r-- | databases/postgis/distinfo | 7 | ||||
-rw-r--r-- | databases/postgis/files/patch-GNUmakefile | 46 | ||||
-rw-r--r-- | databases/postgis/files/patch-configure | 10 | ||||
-rw-r--r-- | databases/postgis/files/patch-doc-Makefile.in | 21 | ||||
-rw-r--r-- | databases/postgis/files/patch-loader | 22 | ||||
-rw-r--r-- | databases/postgis/files/patch-loader-Makefile.in | 13 | ||||
-rw-r--r-- | databases/postgis/files/patch-lwgeom | 11 | ||||
-rw-r--r-- | databases/postgis/files/patch-postgis-Makefile.in | 26 | ||||
-rw-r--r-- | databases/postgis/files/patch-utils | 22 | ||||
-rw-r--r-- | databases/postgis/pkg-plist | 32 |
11 files changed, 125 insertions, 148 deletions
diff --git a/databases/postgis/Makefile b/databases/postgis/Makefile index ba601aef1494..3b0f1af2deb9 100644 --- a/databases/postgis/Makefile +++ b/databases/postgis/Makefile @@ -6,14 +6,15 @@ # PORTNAME= postgis -DISTVERSION= 1.3.6 -PORTREVISION= 1 +DISTVERSION= 1.4.0 CATEGORIES= databases geography -MASTER_SITES= http://postgis.refractions.net/download/ +MASTER_SITES= http://postgis.refractions.net/download/ \ + http://www.postgis.org/download/ MAINTAINER= anderson@cnpm.embrapa.br COMMENT= Adds support for geographic objects to PostgreSQL databases +BUILD_DEPENDS= ${LOCALBASE}/bin/geos-config:${PORTSDIR}/graphics/geos LIB_DEPENDS= proj.5:${PORTSDIR}/graphics/proj RUN_DEPENDS= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server @@ -25,52 +26,44 @@ USE_PERL5_BUILD= yes INSTALL_TARGET= install -OPTIONS= GEOS "Include GEOS - the OpenGIS 'Simple Features for SQL'" off \ - UTF8 "UTF-8 support for shp2pgsql. (needs libiconv)" off - GNU_CONFIGURE= yes -CONFIGURE_ARGS= --datadir=${PREFIX}/share/postgis \ - --bindir=${PREFIX}/bin \ - --libdir=${PREFIX}/lib \ - --with-proj +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +MAKE_ENV= DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} +CONFIGURE_ARGS= --with-projdir=${LOCALBASE} .include <bsd.port.pre.mk> .if !defined(NOPORTDOCS) BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/html/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl -MAKE_ARGS+= WITH-DOC=yes +CONFIGURE_ARGS+= --with-xsldir=${LOCALBASE}/share/xsl/docbook MAN1= pgsql2shp.1 shp2pgsql.1 PORTDOCS= * -.else -MAKE_ARGS+= NOPORTSDOC=yes +#.else +#MAKE_ARGS+= NOPORTDOCS=yes .endif -.if defined(WITH_UTF8) -USE_ICONV= yes -MAKE_ENV+= "LDFLAGS=-L${LOCALBASE}/lib" -.else -CONFIGURE_ARGS+= --without-iconv -.endif +post-extract: + @${REINPLACE_CMD} -e 's#@ICONV_LDFLAGS@#-liconv -L${LOCALBASE}/lib#g' \ + ${WRKSRC}/loader/Makefile.in -.if defined(WITH_GEOS) -LIB_DEPENDS+= geos:${PORTSDIR}/graphics/geos -CONFIGURE_ARGS+= --with-geos=${LOCALBASE}/bin/geos-config -.else -CONFIGURE_ARGS+= --without-geos -.endif - -pre-everything:: - @${SH} ${PKGINSTALL} ${PORTNAME} MESSAGE +post-patch: + @${REINPLACE_CMD} -e 's#%PERL%#${PERL}#g' \ + ${WRKSRC}/postgis/Makefile.in post-install: + @${MKDIR} ${DATADIR}/utils + ${INSTALL_SCRIPT} ${WRKSRC}/utils/create_undef.pl ${DATADIR}/utils/ + ${INSTALL_SCRIPT} ${WRKSRC}/utils/new_postgis_restore.pl ${DATADIR}/utils/ + ${INSTALL_SCRIPT} ${WRKSRC}/utils/profile_intersects.pl ${DATADIR}/utils/ + ${INSTALL_SCRIPT} ${WRKSRC}/utils/postgis_proc_upgrade.pl ${DATADIR}/utils/ + ${INSTALL_SCRIPT} ${WRKSRC}/utils/test_estimation.pl ${DATADIR}/utils/ + ${INSTALL_SCRIPT} ${WRKSRC}/utils/postgis_restore.pl ${DATADIR}/utils/ + ${INSTALL_SCRIPT} ${WRKSRC}/utils/test_joinestimation.pl ${DATADIR}/utils/ @${MKDIR} ${PREFIX}/lib/postgresql - @${LN} -s ${PREFIX}/lib/liblwgeom.so.1 ${PREFIX}/lib/postgresql - @${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL - -post-deinstall: - @ ${SETENV} PKG_PREFIX=${PREFIX} \ - ${SH} ${PKGDEINSTALL} ${PORTNAME} POST-DEINSTALL + @${LN} -s ${PREFIX}/lib/postgresql/postgis-1.4.so ${PREFIX}/lib/postgresql/postgis.so + @${LN} -s ${PREFIX}/lib/postgresql/postgis-1.4.so ${PREFIX}/lib/postgresql/liblwgeom.so.1 + @${LN} -s ${PREFIX}/lib/postgresql/postgis-1.4.so ${PREFIX}/lib/postgresql/liblwgeom.so .include <bsd.port.post.mk> diff --git a/databases/postgis/distinfo b/databases/postgis/distinfo index f1f5b7cd21e1..d1940a36f1c7 100644 --- a/databases/postgis/distinfo +++ b/databases/postgis/distinfo @@ -1,4 +1,3 @@ -SIZE (postgis-1.3.6.tar.gz) = 2227317 -MD5 (postgis-1.3.6.tar.gz) = da590f0e485335e9cdaeb66c3d68aa24 -SHA256 (postgis-1.3.6.tar.gz) = d3b04d4a3439596a1f6368b0627f21762347cef1e0694d5471ef17c6a3b7d144 - +MD5 (postgis-1.4.0.tar.gz) = bc5b97d5399bd20ca90bfdf784ab6c33 +SHA256 (postgis-1.4.0.tar.gz) = 71c5ffde54a2ecbb88fbffa12ca18c617ecfe2404fb9049940cd1b7a06a7e38d +SIZE (postgis-1.4.0.tar.gz) = 3143966 diff --git a/databases/postgis/files/patch-GNUmakefile b/databases/postgis/files/patch-GNUmakefile index 5cc80a4804b0..9ded6c6e4630 100644 --- a/databases/postgis/files/patch-GNUmakefile +++ b/databases/postgis/files/patch-GNUmakefile @@ -1,48 +1,36 @@ ---- GNUmakefile.orig 2007-07-11 05:12:42.000000000 +0800 -+++ GNUmakefile 2007-08-31 17:41:49.000000000 +0800 -@@ -4,9 +4,9 @@ +--- GNUmakefile.orig 2009-05-26 15:00:55.000000000 -0300 ++++ GNUmakefile 2009-08-07 14:36:10.000000000 -0300 +@@ -4,10 +4,10 @@ # #----------------------------------------------------- --all: Makefile.config liblwgeom loaderdumper utils -+all: Makefile.config liblwgeom loaderdumper utils docs +-all: postgis loaderdumper utils ++all: postgis loaderdumper utils docs + @echo "PostGIS was built successfully. Ready to install." --install: all liblwgeom-install loaderdumper-install -+install: all liblwgeom-install loaderdumper-install utils-install docs-install +-install: all postgis-install loaderdumper-install ++install: all postgis-install loaderdumper-install docs-install - uninstall: liblwgeom-uninstall loaderdumper-uninstall docs-uninstall + uninstall: postgis-uninstall loaderdumper-uninstall docs-uninstall comments-uninstall -@@ -72,21 +72,31 @@ +@@ -80,7 +80,9 @@ $(MAKE) -C extras/template_gis uninstall - docs: Makefile.config + docs: - $(MAKE) -C doc -+ifndef NOPORTSDOC -+ $(MAKE) -C doc ++ifndef NOPORTDOCS ++ $(MAKE) -C doc html/postgis.html +endif - docs-clean: Makefile.config -+ifndef NOPORTSDOC + docs-clean: $(MAKE) -C doc clean -- -+endif +@@ -95,7 +97,9 @@ + $(MAKE) -C doc comments-uninstall docs-install: -+ifndef NOPORTSDOC ++ifndef NOPORTDOCS $(MAKE) -C doc install +endif docs-uninstall: -+ifndef NOPORTSDOC $(MAKE) -C doc uninstall -+endif - - utils: - $(MAKE) -C utils - -+utils-install: -+ ${MAKE} -C utils install -+ - configure: configure.in - ./autogen.sh - diff --git a/databases/postgis/files/patch-configure b/databases/postgis/files/patch-configure deleted file mode 100644 index 002fe1521979..000000000000 --- a/databases/postgis/files/patch-configure +++ /dev/null @@ -1,10 +0,0 @@ ---- configure 2009-05-04 15:03:04.000000000 -0300 -+++ configure 2009-05-18 08:36:54.000000000 -0300 -@@ -4806,6 +4806,7 @@ - /opt/local/share/xsl/docbook-xsl - /usr/local/share/xsl/docbook-xsl - /usr/share/xsl/docbook-xsl -+ /usr/local/share/xsl/docbook - " - for p in ${SEARCHPATH}; do - if test -r "${p}"/html/docbook.xsl; then diff --git a/databases/postgis/files/patch-doc-Makefile.in b/databases/postgis/files/patch-doc-Makefile.in new file mode 100644 index 000000000000..955f8c0129a6 --- /dev/null +++ b/databases/postgis/files/patch-doc-Makefile.in @@ -0,0 +1,21 @@ +--- doc/Makefile.in.orig 2009-07-08 12:16:53.000000000 -0300 ++++ doc/Makefile.in 2009-09-20 10:12:53.000000000 -0300 +@@ -135,12 +135,12 @@ + rm -f $(PGSQL_SHAREDIR)/contrib/postgis_comments.sql + + install: html/postgis.html man/shp2pgsql.1 man/pgsql2shp.1 +- @mkdir -p $(PGSQL_DOCDIR)/postgis +- @mkdir -p $(PGSQL_MANDIR)/man1 +- cp html/postgis.html $(PGSQL_DOCDIR)/postgis/postgis.html +- cp ../README.postgis $(PGSQL_DOCDIR)/postgis/README.postgis +- cp man/pgsql2shp.1 $(PGSQL_MANDIR)/man1/pgsql2shp.1 +- cp man/shp2pgsql.1 $(PGSQL_MANDIR)/man1/shp2pgsql.1 ++ @mkdir -p $(DOCSDIR) ++ @mkdir -p $(PREFIX)/man/man1 ++ cp html/postgis.html $(DOCSDIR)/postgis.html ++ cp ../README.postgis $(DOCSDIR)/README.postgis ++ cp man/pgsql2shp.1 $(PREFIX)/man/man1/pgsql2shp.1 ++ cp man/shp2pgsql.1 $(PREFIX)/man/man1/shp2pgsql.1 + + uninstall: + rm -f $(PGSQL_DOCDIR)/postgis/postgis.html diff --git a/databases/postgis/files/patch-loader b/databases/postgis/files/patch-loader deleted file mode 100644 index df0665377b5d..000000000000 --- a/databases/postgis/files/patch-loader +++ /dev/null @@ -1,22 +0,0 @@ ---- loader/Makefile Fri Dec 16 14:47:24 2005 -+++ loader/Makefile Wed Dec 28 14:23:13 2005 -@@ -9,7 +9,7 @@ - #--------------------------------------------------------------- - - ifeq ($(USE_ICONV),1) -- override CFLAGS += -DUSE_ICONV -+ override CFLAGS += -DUSE_ICONV -I/usr/local/include - override LDFLAGS += $(ICONV_LDFLAGS) - endif - ---- loader/shp2pgsql.c Tue Nov 1 07:25:47 2005 -+++ loader/shp2pgsql.c Wed Dec 28 14:23:13 2005 -@@ -33,7 +33,7 @@ - #include <unistd.h> - #include <errno.h> - #include "getopt.h" --#ifdef HAVE_ICONV_H -+#ifdef USE_ICONV - #include <iconv.h> - #endif - diff --git a/databases/postgis/files/patch-loader-Makefile.in b/databases/postgis/files/patch-loader-Makefile.in new file mode 100644 index 000000000000..801f8c6c8acd --- /dev/null +++ b/databases/postgis/files/patch-loader-Makefile.in @@ -0,0 +1,13 @@ +--- loader/Makefile.in.orig 2009-08-07 11:13:19.000000000 -0300 ++++ loader/Makefile.in 2009-08-07 11:14:01.000000000 -0300 +@@ -13,6 +13,10 @@ + CC=@CC@ + CFLAGS=@CFLAGS@ @PICFLAGS@ @WARNFLAGS@ + ++override datadir := $(DATADIR) ++override bindir := $(PREFIX)/bin ++override pkglibdir := $(PREFIX)/lib/postgresql ++ + # Filenames with extension as determined by the OS + PGSQL2SHP=pgsql2shp@EXESUFFIX@ + SHP2PGSQL=shp2pgsql@EXESUFFIX@ diff --git a/databases/postgis/files/patch-lwgeom b/databases/postgis/files/patch-lwgeom deleted file mode 100644 index 5718fb443423..000000000000 --- a/databases/postgis/files/patch-lwgeom +++ /dev/null @@ -1,11 +0,0 @@ ---- lwgeom/Makefile 2008-03-28 18:28:21.000000000 -0300 -+++ lwgeom/Makefile 2008-04-16 11:41:22.000000000 -0300 -@@ -122,7 +122,7 @@ - $(PERL) ../utils/postgis_proc_upgrade.pl ../lwpostgis.sql > ../lwpostgis_upgrade.sql - - ../lwpostgis.sql: lwpostgis.sql.in long_xact.sql.in sqlmm.sql.in sqldefines.h -- cpp -P -traditional-cpp $(SQL_FLAGS) $< | sed -e 's:@MODULE_FILENAME@:$(MODULE_FILENAME):g;s:@POSTGIS_VERSION@:$(POSTGIS_VERSION):g;s:@POSTGIS_SCRIPTS_VERSION@:$(SCRIPTS_VERSION):g;s/@POSTGIS_BUILD_DATE@/$(POSTGIS_BUILD_DATE)/g' | grep -v '^#' > $@ -+ cpp -P -traditional-cpp $(SQL_FLAGS) $< | sed -e 's:@MODULE_FILENAME@:$$libdir/liblwgeom.so.1:g;s:@POSTGIS_VERSION@:$(POSTGIS_VERSION):g;s:@POSTGIS_SCRIPTS_VERSION@:$(SCRIPTS_VERSION):g;s/@POSTGIS_BUILD_DATE@/$(POSTGIS_BUILD_DATE)/g' | grep -v '^#' > $@ - - ../regress/lwpostgis.sql: lwpostgis.sql.in long_xact.sql.in sqlmm.sql.in sqldefines.h - cpp -P -traditional-cpp $(SQL_FLAGS) $< | sed -e 's#@MODULE_FILENAME@#$(MODULE_FILENAME)#g;s#@POSTGIS_VERSION@#$(POSTGIS_VERSION)#g;s#@POSTGIS_SCRIPTS_VERSION@#$(SCRIPTS_VERSION)#g;s/@POSTGIS_BUILD_DATE@/$(POSTGIS_BUILD_DATE)/g' | grep -v '^#' > $@ diff --git a/databases/postgis/files/patch-postgis-Makefile.in b/databases/postgis/files/patch-postgis-Makefile.in new file mode 100644 index 000000000000..83b6b2d9ea72 --- /dev/null +++ b/databases/postgis/files/patch-postgis-Makefile.in @@ -0,0 +1,26 @@ +--- postgis/Makefile.in.orig 2009-06-06 11:09:39.000000000 -0300 ++++ postgis/Makefile.in 2009-09-20 09:48:02.000000000 -0300 +@@ -12,6 +12,10 @@ + + MODULE_big=postgis-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@ + ++override datadir := $(DATADIR) ++override bindir := $(PREFIX)/bin ++override pkglibdir := $(PREFIX)/lib/postgresql ++ + # Files to be copied to the contrib/ directory + DATA_built=postgis.sql uninstall_postgis.sql postgis_upgrade.sql + DATA=../spatial_ref_sys.sql +@@ -73,10 +77,10 @@ + + # Borrow the $libdir substitution from PGXS but customise by adding the version number + %.sql: %.sql.in +- sed 's,MODULE_PATHNAME,$$libdir/$*-@POSTGIS_MAJOR_VERSION@.@POSTGIS_MINOR_VERSION@,g' $< >$@ ++ sed 's,MODULE_PATHNAME,$$libdir/$*,g' $< >$@ + + postgis_upgrade.sql: postgis.sql +- $(PERL) ../utils/postgis_proc_upgrade.pl $< > $@ ++ /usr/local/bin/perl ../utils/postgis_proc_upgrade.pl $< > $@ + + # Generate any .sql.in files from .sql.in.c files by running them through the C pre-processor + $(SQL_OBJS): %.in: %.in.c diff --git a/databases/postgis/files/patch-utils b/databases/postgis/files/patch-utils deleted file mode 100644 index 9a948addfbb5..000000000000 --- a/databases/postgis/files/patch-utils +++ /dev/null @@ -1,22 +0,0 @@ ---- utils/Makefile Mon Jun 6 13:49:41 2005 -+++ utils/Makefile Wed Dec 28 15:33:31 2005 -@@ -1,3 +1,6 @@ -+include ../Makefile.config -+include ../Version.config -+ - SCRIPTS = \ - postgis_restore.pl \ - create_undef.pl \ -@@ -8,3 +11,12 @@ - - all: - chmod +x $(SCRIPTS) -+ -+install: -+ @mkdir -p $(DESTDIR)$(datadir)/utils -+ $(INSTALL_DATA) README $(DESTDIR)$(datadir)/utils/README -+ $(INSTALL_DATA) create_undef.pl $(DESTDIR)$(datadir)/utils/create_undef.pl -+ $(INSTALL_DATA) postgis_restore.pl $(DESTDIR)$(datadir)/utils/postgis_restore.pl -+ $(INSTALL_DATA) profile_intersects.pl $(DESTDIR)$(datadir)/utils/profile_intersects.pl -+ $(INSTALL_DATA) test_estimation.pl $(DESTDIR)$(datadir)/utils/test_estimation.pl -+ $(INSTALL_DATA) test_joinestimation.pl $(DESTDIR)$(datadir)/utils/test_joinestimation.pl diff --git a/databases/postgis/pkg-plist b/databases/postgis/pkg-plist index cc089bc2e0ea..7d06e98c90f7 100644 --- a/databases/postgis/pkg-plist +++ b/databases/postgis/pkg-plist @@ -1,19 +1,21 @@ bin/pgsql2shp bin/shp2pgsql -lib/liblwgeom.so -lib/liblwgeom.so.1 +lib/postgresql/postgis-1.4.so +lib/postgresql/postgis.so +lib/postgresql/liblwgeom.so lib/postgresql/liblwgeom.so.1 -%%DATADIR%%/lwpostgis.sql -%%DATADIR%%/lwpostgis_upgrade.sql -%%DATADIR%%/spatial_ref_sys.sql -%%DATADIR%%/utils/postgis_restore.pl -%%DATADIR%%/utils/profile_intersects.pl -%%DATADIR%%/utils/test_estimation.pl -%%DATADIR%%/utils/test_joinestimation.pl -%%DATADIR%%/utils/create_undef.pl -%%DATADIR%%/utils/README -%%PORTDOCS%%@dirrmtry %%DOCSDIR%% +share/postgis/contrib/postgis.sql +share/postgis/contrib/postgis_upgrade.sql +share/postgis/contrib/spatial_ref_sys.sql +share/postgis/contrib/uninstall_postgis.sql +share/postgis/utils/create_undef.pl +share/postgis/utils/new_postgis_restore.pl +share/postgis/utils/postgis_proc_upgrade.pl +share/postgis/utils/postgis_restore.pl +share/postgis/utils/profile_intersects.pl +share/postgis/utils/test_estimation.pl +share/postgis/utils/test_joinestimation.pl +@dirrm share/postgis/utils +@dirrm share/postgis/contrib +@dirrm share/postgis @dirrmtry lib/postgresql -@dirrmtry %%DATADIR%%/utils -@dirrmtry %%DATADIR%% -@dirrmtry lib |