summaryrefslogtreecommitdiff
path: root/benchmarks/netpipe
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 00:51:43 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 00:51:43 +0000
commit075003a60c727330726570ab7674a2ee12c5654f (patch)
treecdb67462b5541a6566af441ea620d49ad326d24e /benchmarks/netpipe
parentbd579f3497266e46fb3a16428bf69c529a427d58 (diff)
downloadpkgsrc-075003a60c727330726570ab7674a2ee12c5654f.tar.gz
Mechanical changes to add full DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'benchmarks/netpipe')
-rw-r--r--benchmarks/netpipe/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/benchmarks/netpipe/Makefile b/benchmarks/netpipe/Makefile
index 9ded7b74e74..eb207c67dc6 100644
--- a/benchmarks/netpipe/Makefile
+++ b/benchmarks/netpipe/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2007/01/07 09:13:48 rillig Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/03 00:51:44 jlam Exp $
DISTNAME= NetPIPE_2.4
PKGNAME= netpipe-2.4
@@ -10,6 +10,8 @@ HOMEPAGE= http://www.scl.ameslab.gov/netpipe/
COMMENT= TCP/PVM/MPI testing and performance measuring tool
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/netpipe-2.4
.include "../../mk/bsd.prefs.mk"
@@ -23,8 +25,9 @@ MAKE_ENV+= EXTRA_LIBS="-lsocket -lnsl"
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- cd ${WRKSRC} ; \
- ${INSTALL_PROGRAM} NPtcp ${PREFIX}/bin/NPtcp ; \
- ${INSTALL_MAN} netpipe.1 ${PREFIX}/${PKGMANDIR}/man1/netpipe.1
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} NPtcp \
+ ${DESTDIR}${PREFIX}/bin/NPtcp
+ cd ${WRKSRC} && ${INSTALL_MAN} netpipe.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/netpipe.1
.include "../../mk/bsd.pkg.mk"