summaryrefslogtreecommitdiff
path: root/benchmarks/whetstone
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/whetstone
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/whetstone')
-rw-r--r--benchmarks/whetstone/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/whetstone/Makefile b/benchmarks/whetstone/Makefile
index 0833e9c1262..d5356ef1f8d 100644
--- a/benchmarks/whetstone/Makefile
+++ b/benchmarks/whetstone/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2008/01/19 09:16:19 wiz Exp $
+# $NetBSD: Makefile,v 1.17 2008/03/03 00:51:44 jlam Exp $
DISTNAME= whetstone
PKGNAME= whetstone-1.2
@@ -10,6 +10,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Benchmark for processors that gives you a MIPS rating
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
@@ -19,7 +20,7 @@ do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -o whetstone whetstone.c -lm)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${DESTDIR}${PREFIX}/bin
benchmark:
@${WRKSRC}/whetstone 80000 | tee ${WRKSRC}/whetstone.out