summaryrefslogtreecommitdiff
path: root/geography
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
commitba171a91fab519f587b027c1a2888cb6e3fce049 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /geography
parent3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff)
downloadpkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz
Add DESTDIR support.
Diffstat (limited to 'geography')
-rw-r--r--geography/postgresql81-postgis/Makefile20
-rw-r--r--geography/proj-swig/Makefile4
-rw-r--r--geography/py-proj/Makefile9
3 files changed, 20 insertions, 13 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
diff --git a/geography/proj-swig/Makefile b/geography/proj-swig/Makefile
index 192e653452f..ef5fec0ccb4 100644
--- a/geography/proj-swig/Makefile
+++ b/geography/proj-swig/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2007/04/06 14:46:10 gdt Exp $
+# $NetBSD: Makefile,v 1.7 2008/06/12 02:14:30 joerg Exp $
#
DISTNAME= proj-swig-0.01
@@ -10,6 +10,8 @@ MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://acert.ir.bbn.com/downloads/acert-geospatial/
COMMENT= Guile and python wrappers for proj
+PKG_DESTDIR_SUPPORT= user-destdir
+
MAKE_JOBS_SAFE= no
USE_PKGLOCALEDIR= yes
diff --git a/geography/py-proj/Makefile b/geography/py-proj/Makefile
index f09dffbaaa7..631180326fb 100644
--- a/geography/py-proj/Makefile
+++ b/geography/py-proj/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/04/25 20:39:09 joerg Exp $
+# $NetBSD: Makefile,v 1.8 2008/06/12 02:14:31 joerg Exp $
#
DISTNAME= pyproj-1.8.3
@@ -10,11 +10,14 @@ MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://code.google.com/p/pyproj/
COMMENT= Python wrapper for proj
+PKG_DESTDIR_SUPPORT= user-destdir
+
PYDISTUTILSPKG= true
+INSTALLATION_DIRS= share/doc/${PKGNAME}
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGNAME}
- ${INSTALL} ${WRKSRC}/README ${PREFIX}/share/doc/${PKGNAME}
+ ${INSTALL} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/${PKGNAME}
.include "../../lang/python/extension.mk"