openbsd-ports/geo/postgis/patches/patch-doc_Makefile_in
eric f476f7f0f2 - update postgis to 1.5.2
- install documentation properly

NOTE: An upgrade of all postgis DBs is required. A "hard upgrade" is
advised. A "soft upgrade" might be possible by keeping a copy of
/usr/local/lib/postgresql/postgis-1.4.so. In all cases, read the
documentation.

ok landry@ jasper@
2010-11-04 13:45:54 +00:00

49 lines
1.5 KiB
Plaintext

$OpenBSD: patch-doc_Makefile_in,v 1.2 2010/11/04 13:45:54 eric Exp $
--- doc/Makefile.in.orig Sun Sep 19 14:21:28 2010
+++ doc/Makefile.in Tue Nov 2 17:59:04 2010
@@ -41,25 +41,14 @@ DBLATEX=@DBLATEX@
IMAGEMAGICK=@IMAGEMAGICK@
# Directories for postgresql subdirectories
-PGSQL_DOCDIR=@PGSQL_DOCDIR@
-PGSQL_MANDIR=@PGSQL_MANDIR@
+PGSQL_DOCDIR=${WRKINST}@PGSQL_DOCDIR@
+PGSQL_MANDIR=${WRKINST}@PGSQL_MANDIR@
PGSQL_SHAREDIR=@PGSQL_SHAREDIR@
+
# If XSLTPROC or XSLBASE were not found during configure, we cannot
# build the documentation
-ifeq ($(XSLTPROC),)
-all: requirements_not_met_xsltproc
-else
-ifeq ($(XSLBASE),)
-all: requirements_not_met_xslbase
-else
-ifeq ($(IMAGEMAGICK),)
-all: requirements_not_met_imagemagick
-else
-all: images html/postgis.html postgis_comments.sql
-endif
-endif
-endif
+all:
postgis_aggs_mm.xml: ./xsl/postgis_aggs_mm.xml.xsl postgis.xml
$(XSLTPROC) ./xsl/postgis_aggs_mm.xml.xsl postgis.xml > $@
@@ -130,10 +119,13 @@ comments-install: comments
comments-uninstall:
make -f Makefile.comments uninstall
-install: html/postgis.html man/shp2pgsql.1 man/pgsql2shp.1
+install:
@mkdir -p $(PGSQL_DOCDIR)/postgis
+ @mkdir -p $(PGSQL_DOCDIR)/postgis/images
@mkdir -p $(PGSQL_MANDIR)/man1
+ cp html/images/* $(PGSQL_DOCDIR)/postgis/images/
cp html/postgis.html $(PGSQL_DOCDIR)/postgis/postgis.html
+ cp html/style.css $(PGSQL_DOCDIR)/postgis/style.css
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