summaryrefslogtreecommitdiff
path: root/benchmarks/lmbench
diff options
context:
space:
mode:
authorjlam <jlam>2002-11-14 23:08:51 +0000
committerjlam <jlam>2002-11-14 23:08:51 +0000
commit11d094e97fc718b4ecaab324e777d40d41df48d3 (patch)
treec9df8d3e43c09d6ec43c7bd8f17950b611ad6d07 /benchmarks/lmbench
parent404f23ce115546dfa3c0f1e2d3be8352233facea (diff)
downloadpkgsrc-11d094e97fc718b4ecaab324e777d40d41df48d3.tar.gz
Workaround problem with passing CC to submakes.
Diffstat (limited to 'benchmarks/lmbench')
-rw-r--r--benchmarks/lmbench/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/benchmarks/lmbench/Makefile b/benchmarks/lmbench/Makefile
index 1a917319102..184be049c5d 100644
--- a/benchmarks/lmbench/Makefile
+++ b/benchmarks/lmbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2001/11/28 05:20:38 jlam Exp $
+# $NetBSD: Makefile,v 1.15 2002/11/14 23:08:51 jlam Exp $
DISTNAME= lmbench-2alpha11
PKGNAME= lmbench-2.11a
@@ -10,17 +10,22 @@ MAINTAINER= root@garbled.net
HOMEPAGE= http://www.bitmover.com/lm/lmbench/
COMMENT= Complete benchmark that gives a large amount of information
-USE_BUILDLINK_ONLY= YES
+USE_BUILDLINK2= YES
USE_GMAKE= YES
ALL_TARGET= build
MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH}
post-configure:
@cd ${WRKSRC}; \
+ for f in src/Makefile; do \
+ ${SED} -e "s|^\(CC.*\)|#\1|g" $$f > $$f.new; \
+ ${MV} -f $$f.new $$f; \
+ done
+ @cd ${WRKSRC}; \
for f in scripts/os scripts/results scripts/config-run \
scripts/lmbench results/Makefile; do \
- ${MV} $$f $$f.in; \
- ${SED} -e 's|@PREFIX@|${PREFIX}|g' $$f.in > $$f; \
+ ${SED} -e 's|@PREFIX@|${PREFIX}|g' $$f > $$f.new; \
+ ${MV} -f $$f.new $$f; \
done
@${CHMOD} 0755 ${WRKSRC}/scripts/config-run
@${CHMOD} 0755 ${WRKSRC}/scripts/os
@@ -53,5 +58,5 @@ results:
-@cd ${PREFIX}/share/lmbench ; \
tar -cf /tmp/benches/`domainname`/lmbench.`uname`-`uname -m`-`uname -r`.`hostname`.tar results
-.include "../../lang/perl5/buildlink.mk"
+.include "../../lang/perl5/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"