summaryrefslogtreecommitdiff
path: root/benchmarks/netpipe
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 00:51:43 +0000
committerjlam <jlam>2008-03-03 00:51:43 +0000
commit47ea0a619138ec48bf6f6b8dd266feca338f19e0 (patch)
treecdb67462b5541a6566af441ea620d49ad326d24e /benchmarks/netpipe
parent1e4d986899bd1f99c95ee5a1ef8f9cd3fe3a3bd2 (diff)
downloadpkgsrc-47ea0a619138ec48bf6f6b8dd266feca338f19e0.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"