summaryrefslogtreecommitdiff
path: root/sysutils/pv
diff options
context:
space:
mode:
authorjoerg <joerg>2008-06-12 02:14:13 +0000
committerjoerg <joerg>2008-06-12 02:14:13 +0000
commit39d7fb93432416d872ed34e0025741cc93068c06 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /sysutils/pv
parentcce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff)
downloadpkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz
Add DESTDIR support.
Diffstat (limited to 'sysutils/pv')
-rw-r--r--sysutils/pv/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysutils/pv/Makefile b/sysutils/pv/Makefile
index 6152d44728a..046c2a0645e 100644
--- a/sysutils/pv/Makefile
+++ b/sysutils/pv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2006/04/13 18:23:38 jlam Exp $
+# $NetBSD: Makefile,v 1.19 2008/06/12 02:14:47 joerg Exp $
#
DISTNAME= pv-0.9.6
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.ivarch.com/programs/pv.shtml
COMMENT= Monitor the progress of data through a pipeline
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= yes
USE_TOOLS+= gmake msgfmt
USE_PKGLOCALEDIR= yes
@@ -27,9 +29,9 @@ post-install:
${GREP} "^$$dir/" ${PKGDIR}/PLIST | ${SED} "s|^$$dir/||" | \
while read file; do \
test ! -f "$$file" || \
- ${INSTALL_DATA} "$$file" ${PREFIX}/$$dir; \
+ ${INSTALL_DATA} "$$file" ${DESTDIR}${PREFIX}/$$dir; \
done
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"