diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 00:51:43 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 00:51:43 +0000 |
commit | a8d751d3ee9814c8c87f2584ac569caad9e846c3 (patch) | |
tree | cdb67462b5541a6566af441ea620d49ad326d24e /benchmarks/flops | |
parent | 890d023bb4d81924557661e4ff402b236d159141 (diff) | |
download | pkgsrc-a8d751d3ee9814c8c87f2584ac569caad9e846c3.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')
-rw-r--r-- | benchmarks/flops/Makefile | 9 |
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 |