summaryrefslogtreecommitdiff
path: root/geography/postgresql81-postgis/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'geography/postgresql81-postgis/Makefile')
-rw-r--r--geography/postgresql81-postgis/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/geography/postgresql81-postgis/Makefile b/geography/postgresql81-postgis/Makefile
index 6cd5e0b89ad..d540ff957c6 100644
--- a/geography/postgresql81-postgis/Makefile
+++ b/geography/postgresql81-postgis/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/05/26 02:13:20 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2008/06/12 02:14:30 joerg Exp $
DISTNAME= postgis-${VERSION}
VERSION= 1.3.2
@@ -11,6 +11,8 @@ MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://postgis.refractions.net/
COMMENT= Spatial database capabilities for PostgreSQL
+PKG_DESTDIR_SUPPORT= user-destdir
+
# XXX Change to determine postgresql version dynamically.
CONFLICTS= postgis-[0-9]*
@@ -37,18 +39,18 @@ SUBST_FILES.paths= extras/template_gis/profile \
SUBST_VARS.paths+= PKG_SYSCONFDIR
SUBST_STAGE.paths= pre-configure
+INSTALLATION_DIRS= ${DOCDIR} ${HTMLDIR} ${PKGMANDIR}/man1
+
# Install is manual because distribution fails if docbook prereqs are not
# satisfied, rather than using the prebuilt versions which are actually
# in the distfile.
do-install:
- cd ${WRKSRC} && ${GMAKE} install
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${BUILD_DIRS:Q}/README.postgis ${DOCDIR}
- ${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/*.xml ${DOCDIR}
- ${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/*.txt ${DOCDIR}
- ${INSTALL_DATA_DIR} ${HTMLDIR}
- cd ${WRKSRC}/doc/html && pax -rw -pp *.html *.css ${HTMLDIR}
- ${INSTALL_MAN} ${BUILD_DIRS:Q}/doc/man/*.1 ${PREFIX}/${PKGMANDIR}/man1
+ cd ${WRKSRC} && ${GMAKE} install DESTDIR=${DESTDIR}
+ ${INSTALL_DATA} ${BUILD_DIRS:Q}/README.postgis ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/*.xml ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${BUILD_DIRS:Q}/doc/*.txt ${DESTDIR}${DOCDIR}
+ cd ${WRKSRC}/doc/html && pax -rw -pp *.html *.css ${DESTDIR}${HTMLDIR}
+ ${INSTALL_MAN} ${BUILD_DIRS:Q}/doc/man/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
DEPENDS+= postgresql81-server>=8.1:../../databases/postgresql81-server