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