2001-10-26 14:54:24 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2001/10/26 12:54:24 agc Exp $
|
1998-09-06 00:02:19 +02:00
|
|
|
|
|
|
|
DISTNAME= hbench-OS-1.0
|
2001-09-22 22:48:28 +02:00
|
|
|
PKGNAME= hbench-1.0nb1
|
1998-09-06 00:02:19 +02:00
|
|
|
CATEGORIES= benchmarks
|
|
|
|
MASTER_SITES= ftp://ftp.eecs.harvard.edu/pub/hbench-OS/
|
|
|
|
|
|
|
|
MAINTAINER= root@garbled.net
|
|
|
|
HOMEPAGE= http://www.eecs.harvard.edu/vino/perf/hbench/
|
2001-02-16 14:30:32 +01:00
|
|
|
COMMENT= Suite of portable benchmarks to measure the OS and the hardware
|
1998-09-06 00:02:19 +02:00
|
|
|
|
2001-03-22 14:27:27 +01:00
|
|
|
DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
|
1998-09-06 00:02:19 +02:00
|
|
|
|
2000-10-18 06:26:53 +02:00
|
|
|
OSVERSION_SPECIFIC= yes
|
1998-09-06 00:02:19 +02:00
|
|
|
ALL_TARGET= build
|
|
|
|
USE_PERL5= yes
|
|
|
|
WRKSRC= ${WRKDIR}/hbench-OS
|
|
|
|
|
1998-09-17 16:49:12 +02:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST-src
|
|
|
|
|
1998-09-06 00:02:19 +02:00
|
|
|
post-patch:
|
1998-11-16 12:27:54 +01:00
|
|
|
@machfiles=""; \
|
|
|
|
if [ ${MACHINE} = i386 ]; then \
|
1999-09-06 06:48:53 +02:00
|
|
|
machfiles="$$machfiles ${PKGDIR}/PLIST.${MACHINE}"; \
|
1998-09-17 16:49:12 +02:00
|
|
|
fi ; \
|
1999-09-06 06:48:53 +02:00
|
|
|
${CAT} ${PKGDIR}/PLIST.md $$machfiles ${PKGDIR}/PLIST.common \
|
|
|
|
> ${PLIST_SRC}
|
1998-09-06 00:02:19 +02:00
|
|
|
|
|
|
|
post-configure:
|
1998-09-17 16:49:12 +02:00
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
for f in scripts/create-all-analyses \
|
|
|
|
scripts/create-all-latgraphs \
|
|
|
|
scripts/create-all-summaries scripts/gen-analysis \
|
|
|
|
scripts/gen-latgraph scripts/gen-summary \
|
|
|
|
scripts/interactive-setup scripts/maindriver \
|
|
|
|
Results/Makefile; do \
|
|
|
|
${MV} $$f $$f.in; \
|
1998-09-23 18:56:00 +02:00
|
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' $$f.in > $$f; \
|
1998-09-17 16:49:12 +02:00
|
|
|
done
|
1999-12-28 05:26:17 +01:00
|
|
|
@ ${CHMOD} 0755 ${WRKSRC}/scripts/*
|
1998-09-06 00:02:19 +02:00
|
|
|
|
|
|
|
do-install:
|
2001-10-26 14:54:24 +02:00
|
|
|
@${SETENV} PREFIX=${PREFIX} WRKSRC=${WRKSRC} ${FILESDIR}/do-install
|
1998-09-06 00:02:19 +02:00
|
|
|
|
1998-09-23 18:56:00 +02:00
|
|
|
benchmark:
|
1999-12-28 05:26:17 +01:00
|
|
|
@if [ `id -u` != 0 ]; then ${ECHO} "This benchmark must be run as root!" ; exit 1 ; fi
|
1998-12-26 16:59:54 +01:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${MKDIR} conf; \
|
|
|
|
${MKDIR} results; \
|
1998-09-23 18:56:00 +02:00
|
|
|
${SED} -e 's|@pwd@|'`/bin/pwd`'|g' \
|
|
|
|
-e 's|@hostname@|'`/bin/hostname -s`'|g' \
|
1998-12-26 16:59:54 +01:00
|
|
|
-e 's|@wrksrc@|'`/bin/pwd`'|g' \
|
1998-09-23 18:56:00 +02:00
|
|
|
${FILESDIR}/setup.answers | ${MAKE} setup; \
|
1998-12-26 16:59:54 +01:00
|
|
|
${MV} conf/`/bin/hostname -s`.run conf/foo ; \
|
|
|
|
${SED} -e 's|#PLAINBINDIR=${HBENCHROOT}|PLAINBINDIR='`/bin/pwd`'|' \
|
|
|
|
< conf/foo > conf/`/bin/hostname -s`.run ; \
|
1998-09-23 18:56:00 +02:00
|
|
|
${MAKE} run
|
|
|
|
|
1998-12-26 16:59:54 +01:00
|
|
|
results:
|
2001-04-09 13:45:33 +02:00
|
|
|
@${MKDIR} /tmp/benches/`domainname`
|
1998-12-26 16:59:54 +01:00
|
|
|
-@cd ${WRKSRC} ; \
|
|
|
|
tar -cf /tmp/benches/`domainname`/hbench.`uname`-`uname -m`-`uname -r`.`hostname`.tar results conf
|
|
|
|
|
1998-09-06 00:02:19 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|