e48965f2da
them. Add DragonFly support.
64 lines
1.9 KiB
Makefile
64 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.33 2006/01/12 15:10:29 joerg Exp $
|
|
|
|
DISTNAME= hbench-OS-1.0
|
|
PKGNAME= hbench-1.0
|
|
PKGREVISION= 3
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= http://www.eecs.harvard.edu/vino/perf/hbench/
|
|
|
|
MAINTAINER= root@garbled.net
|
|
HOMEPAGE= http://www.eecs.harvard.edu/vino/perf/hbench/
|
|
COMMENT= Suite of portable benchmarks to measure the OS and the hardware
|
|
|
|
DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
|
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
WRKSRC= ${WRKDIR}/hbench-OS
|
|
OSVERSION_SPECIFIC= YES
|
|
BUILD_TARGET= build
|
|
USE_TOOLS+= perl:run
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
|
|
|
pre-configure:
|
|
@${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/scripts
|
|
@${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/scripts
|
|
|
|
post-configure:
|
|
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; \
|
|
${SED} -e 's|@PREFIX@|${PREFIX}|g' $$f.in > $$f; \
|
|
done
|
|
${CHMOD} 0755 ${WRKSRC}/scripts/*
|
|
|
|
do-install:
|
|
${SETENV} ${MAKE_ENV} WRKSRC=${WRKSRC} BINOWN=${BINOWN} \
|
|
BINGRP=${BINGRP} ${FILESDIR}/do-install
|
|
|
|
benchmark:
|
|
@if [ `id -u` != 0 ]; then ${ECHO} "This benchmark must be run as root!" ; exit 1 ; fi
|
|
cd ${WRKSRC}; \
|
|
${MKDIR} conf; \
|
|
${MKDIR} results; \
|
|
${SED} -e 's|@pwd@|'`/bin/pwd`'|g' \
|
|
-e 's|@hostname@|'`/bin/hostname -s`'|g' \
|
|
-e 's|@wrksrc@|'`/bin/pwd`'|g' \
|
|
${FILESDIR}/setup.answers | ${MAKE} setup; \
|
|
${MV} conf/`/bin/hostname -s`.run conf/foo ; \
|
|
${SED} -e 's|#PLAINBINDIR=${HBENCHROOT}|PLAINBINDIR='`/bin/pwd`'|' \
|
|
< conf/foo > conf/`/bin/hostname -s`.run ; \
|
|
${MAKE} run
|
|
|
|
results:
|
|
@${MKDIR} /tmp/benches/`domainname`
|
|
-@cd ${WRKSRC} ; \
|
|
tar -cf /tmp/benches/`domainname`/hbench.`uname`-`uname -m`-`uname -r`.`hostname`.tar results conf
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|