summaryrefslogtreecommitdiff
path: root/benchmarks/flops/Makefile
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 00:51:43 +0000
committerjlam <jlam>2008-03-03 00:51:43 +0000
commit5e34b9c7fc714e656c1f1792189c0cc3e5349236 (patch)
treecdb67462b5541a6566af441ea620d49ad326d24e /benchmarks/flops/Makefile
parent09af58dd14701cbbb6f38bbd905462b016dc40c5 (diff)
downloadpkgsrc-5e34b9c7fc714e656c1f1792189c0cc3e5349236.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/flops/Makefile')
-rw-r--r--benchmarks/flops/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/benchmarks/flops/Makefile b/benchmarks/flops/Makefile
index ddd8a60c1f6..0d4011afbd5 100644
--- a/benchmarks/flops/Makefile
+++ b/benchmarks/flops/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/01/19 09:16:18 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2008/03/03 00:51:44 jlam Exp $
DISTNAME= flops
PKGNAME= flops-2.0
@@ -11,6 +11,7 @@ HOMEPAGE= http://performance.netlib.org/performance/html/flops.html
COMMENT= Floating point benchmark to give your MFLOPS rating
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
@@ -25,9 +26,9 @@ do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -DUNIX -o flops flops.c -lm)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/flops
- ${INSTALL_DATA} ${WRKSRC}/flops.doc ${PREFIX}/share/doc/flops
+ ${INSTALL_PROGRAM} ${WRKSRC}/flops ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/flops
+ ${INSTALL_DATA} ${WRKSRC}/flops.doc ${DESTDIR}${PREFIX}/share/doc/flops
benchmark:
-@${WRKSRC}/flops | tee ${WRKSRC}/flops.out