summaryrefslogtreecommitdiff
path: root/benchmarks/heapsort
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/heapsort
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/heapsort')
-rw-r--r--benchmarks/heapsort/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmarks/heapsort/Makefile b/benchmarks/heapsort/Makefile
index 8c12cd5cd7e..ad92785d598 100644
--- a/benchmarks/heapsort/Makefile
+++ b/benchmarks/heapsort/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2008/01/19 09:16:18 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2008/03/03 00:51:44 jlam Exp $
DISTNAME= heapsort.c
PKGNAME= heapsort-1.0
@@ -10,6 +10,7 @@ MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Benchmark program for variable sized arrays
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
@@ -23,7 +24,7 @@ do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -DUNIX -o heapsort heapsort.c -lm)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/heapsort ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/heapsort ${DESTDIR}${PREFIX}/bin
benchmark:
-@${WRKSRC}/heapsort | tee ${WRKSRC}/heapsort.out