ports/87657: [maintainer update] databases/postgis respects LOCALBASE
Anderson S. Ferreira
anderson at cnpm.embrapa.br
Wed Oct 19 11:50:11 UTC 2005
>Number: 87657
>Category: ports
>Synopsis: [maintainer update] databases/postgis respects LOCALBASE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 19 11:50:09 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Anderson S. Ferreira
>Release: FreeBSD 5.4-STABLE i386
>Organization:
Embrapa Monitoramento por Satélite
>Environment:
System: FreeBSD ipe.cnpm.embrapa.br 5.4-STABLE FreeBSD 5.4-STABLE #19: Mon Oct 17 08:03:51 BRST 2005 root at ipe.cnpm.embrapa.br:/usr/src/sys/i386/compile/IPE i386
>Description:
This patch corrects the postgis failure when building in non-standard LOCALBASE.
>How-To-Repeat:
>Fix:
--- postgis.patch begins here ---
diff -ruN postgis.bak/Makefile postgis/Makefile
--- postgis.bak/Makefile Tue Sep 13 19:31:47 2005
+++ postgis/Makefile Wed Oct 19 08:44:45 2005
@@ -7,6 +7,7 @@
PORTNAME= postgis
DISTVERSION= 1.0.4
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://postgis.refractions.net/download/
diff -ruN postgis.bak/files/patch-doc postgis/files/patch-doc
--- postgis.bak/files/patch-doc Sat Apr 23 05:44:08 2005
+++ postgis/files/patch-doc Tue Oct 18 17:08:34 2005
@@ -12,7 +12,7 @@
LAST_RELEASE_VERSION = $(SO_MAJOR_VERSION).$(SO_MINOR_VERSION).$(SO_MICRO_VERSION)
-XSLBASE?=/usr/share/sgml/docbook/xsl-stylesheets
-+XSLBASE?=/usr/local/share/xsl/docbook
++XSLBASE?=$(LOCALBASE)/share/xsl/docbook
#XSLBASE = /usr/share/xml/docbook/stylesheet/nwalsh
all: html
diff -ruN postgis.bak/files/patch-lwgeom postgis/files/patch-lwgeom
--- postgis.bak/files/patch-lwgeom Sat Apr 23 05:44:08 2005
+++ postgis/files/patch-lwgeom Wed Oct 19 07:47:06 2005
@@ -20,7 +20,7 @@
- $(INSTALL_DATA) lwpostgis.sql $(DESTDIR)$(datadir)/contrib/lwpostgis.sql
- $(INSTALL_DATA) ../spatial_ref_sys.sql $(DESTDIR)$(datadir)/contrib/spatial_ref_sys.sql
- $(INSTALL_DATA) ../README.postgis $(DESTDIR)$(docdir)/contrib/README.postgis
-+ $(INSTALL_DATA) lwpostgis.sql $(DESTDIR)$(DATADIR)/lwpostgis.sql.default
++ $(INSTALL_DATA) lwpostgis.sql $(DESTDIR)$(DATADIR)/lwpostgis.sql
+ $(INSTALL_DATA) ../spatial_ref_sys.sql $(DESTDIR)$(DATADIR)/spatial_ref_sys.sql
+ $(INSTALL_DATA) ../README.postgis $(DESTDIR)$(DATADIR)/README.postgis
$(INSTALL_DATA) ../doc/man/pgsql2shp.1 $(DESTDIR)$(mandir)/man1/pgsql2shp.1
diff -ruN postgis.bak/files/patch-main postgis/files/patch-main
--- postgis.bak/files/patch-main Wed Apr 13 06:08:06 2005
+++ postgis/files/patch-main Wed Oct 19 08:08:28 2005
@@ -16,3 +16,32 @@
uninstall: liblwgeom-uninstall loaderdumper-uninstall
+--- Makefile.config Tue Jun 28 10:59:23 2005
++++ Makefile.config Wed Oct 19 08:06:43 2005
+@@ -16,7 +16,7 @@
+ # Download from: http://www.remotesensing.org/proj
+ #
+ USE_PROJ ?= 0
+-PROJ_DIR ?= /usr/local
++PROJ_DIR ?= ${LOCALBASE}
+
+ #
+ # Set USE_GEOS to 1 for GEOS spatial predicate and operator
+@@ -31,14 +31,14 @@
+ # Download from: http://geos.refractions.net
+ #
+ USE_GEOS ?= 0
+-GEOS_DIR ?= /usr/local
++GEOS_DIR ?= ${LOCALBASE}
+
+ #
+ # Set USE_JTS to 1 if you have libjts installed.
+ #
+ USE_JTS ?= 0
+-JTS_INCLUDES = /usr/local/include
+-JTS_LIBDIR = /usr/local/lib
++JTS_INCLUDES = ${LOCALBASE}/include
++JTS_LIBDIR = ${LOCALBASE}/lib
+
+
+ #
diff -ruN postgis.bak/pkg-deinstall postgis/pkg-deinstall
--- postgis.bak/pkg-deinstall Wed Apr 13 06:08:06 2005
+++ postgis/pkg-deinstall Wed Dec 31 21:00:00 1969
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-case "$2" in
- "POST-DEINSTALL")
- PREF=${PREFIX:-$PKG_PREFIX}
- SHAREDIR=${PREF}/share/postgis
- rm -f ${SHAREDIR}/lwpostgis.sql
- rmdir ${SHAREDIR}
- ;;
-esac
diff -ruN postgis.bak/pkg-install postgis/pkg-install
--- postgis.bak/pkg-install Sat Apr 23 05:44:07 2005
+++ postgis/pkg-install Wed Oct 19 07:45:18 2005
@@ -38,12 +38,6 @@
"PRE-INSTALL")
msg
;;
- "POST-INSTALL")
- PREF=${PREFIX:-$PKG_PREFIX}
- SHAREDIR=${PREF}/share/postgis
- LIBDIR=${PREF}/lib
- sed -e "s|\$libdir|${LIBDIR}|g" ${SHAREDIR}/lwpostgis.sql.default > ${SHAREDIR}/lwpostgis.sql
- ;;
"MESSAGE")
msg
;;
diff -ruN postgis.bak/pkg-plist postgis/pkg-plist
--- postgis.bak/pkg-plist Wed Apr 13 06:08:06 2005
+++ postgis/pkg-plist Wed Oct 19 07:53:57 2005
@@ -3,7 +3,7 @@
lib/liblwgeom.so
lib/liblwgeom.so.1
%%DATADIR%%/README.postgis
-%%DATADIR%%/lwpostgis.sql.default
+%%DATADIR%%/lwpostgis.sql
%%DATADIR%%/spatial_ref_sys.sql
%%DATADIR%%/utils/postgis_restore.pl
%%DATADIR%%/utils/profile_intersects.pl
--- postgis.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list