summaryrefslogtreecommitdiff
path: root/misc/routeplanner-cli
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 19:21:10 +0000
committerjlam <jlam>2008-03-04 19:21:10 +0000
commit476429c9f7b93362ea027fafcaa1bb835868c0d1 (patch)
tree49bcc2e4ee778e69c05972f13c0e319fdf272a66 /misc/routeplanner-cli
parentdf44780831cf4dadccea821bb560fbdd11bda60b (diff)
downloadpkgsrc-476429c9f7b93362ea027fafcaa1bb835868c0d1.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'misc/routeplanner-cli')
-rw-r--r--misc/routeplanner-cli/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/misc/routeplanner-cli/Makefile b/misc/routeplanner-cli/Makefile
index c272b28b2bc..f767274a400 100644
--- a/misc/routeplanner-cli/Makefile
+++ b/misc/routeplanner-cli/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2006/03/04 21:30:12 jlam Exp $
+# $NetBSD: Makefile,v 1.11 2008/03/04 19:21:12 jlam Exp $
#
DISTNAME= routeplanner_0.11
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://routeplanner.sourceforge.net/
COMMENT= Highway trip planner written in Python
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/routeplanner-0.11
NO_BUILD= yes
USE_TOOLS+= gzip
@@ -31,13 +33,13 @@ post-patch:
done
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/rpcli ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${RPLIBDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/rpcli ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${RPLIBDIR}
for i in ${RPPY}; do \
- ${INSTALL_DATA} ${WRKSRC}/$$i ${RPLIBDIR}; \
+ ${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${RPLIBDIR}; \
done
for i in ${RPDB}; do \
- ${GZIP_CMD} -c ${WRKSRC}/$$i >${RPLIBDIR}/$$i.gz; \
+ ${GZIP_CMD} -c ${WRKSRC}/$$i >${DESTDIR}${RPLIBDIR}/$$i.gz; \
done
# optional speedup