diff options
author | jlam <jlam@pkgsrc.org> | 2002-01-09 11:24:36 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-01-09 11:24:36 +0000 |
commit | bf18695c94aa75ede108497439be02394765437c (patch) | |
tree | d1051dadf4f472609d558e01f4a1b1513263a30a /benchmarks/bytebench/Makefile | |
parent | c92e35f1bcca634f71e7014db9834a5218cd92e5 (diff) | |
download | pkgsrc-bf18695c94aa75ede108497439be02394765437c.tar.gz |
Update bytebench to 4.1.0. Pkgsrc changes from the previous package include
moving the state directory for bytebench to /var/benchmarks instead of
trying to keep state in ${PREFIX}/share/bytebench. Distribution changes
from version 3.6 include:
* Double precision Whetstone instead of the old "double" benchmark.
* Removal of some obsolete files.
* "system" suite adds shell8.
* perlbench and poll added as "exhibition" (non-index) benchmarks.
* Minor change to fstime.c to fix overflow problems on fast machines.
* A lot more operating system-oriented tests into the index.
* Many tests rewritten to be more relevant for modern processors.
* New baseline: SPARCstation 20-61 with 128 MB RAM, a SPARC Storage
Array, and Solaris 2.3
Diffstat (limited to 'benchmarks/bytebench/Makefile')
-rw-r--r-- | benchmarks/bytebench/Makefile | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/benchmarks/bytebench/Makefile b/benchmarks/bytebench/Makefile index 8dad7bdf80f..5c8ec42b6bf 100644 --- a/benchmarks/bytebench/Makefile +++ b/benchmarks/bytebench/Makefile @@ -1,9 +1,10 @@ -# $NetBSD: Makefile,v 1.11 2001/04/09 11:45:36 wiz Exp $ +# $NetBSD: Makefile,v 1.12 2002/01/09 11:24:37 jlam Exp $ -DISTNAME= byte -PKGNAME= bytebench-3.6 +DISTNAME= unixbench-4.1.0 +PKGNAME= bytebench-4.1.0 CATEGORIES= benchmarks -MASTER_SITES= ftp://ftp.cdrom.com/pub/unix-c/benchmarks/ +MASTER_SITES= http://www.tux.org/pub/tux/benchmarks/System/unixbench/ +EXTRACT_SUFX= .tgz MAINTAINER= root@garbled.net COMMENT= BYTE Magazine's Public Domain benchmark for UNIX @@ -11,13 +12,20 @@ COMMENT= BYTE Magazine's Public Domain benchmark for UNIX BENCHMARK_ENV+= BINDIR=${WRKSRC}/pgms BENCHMARK_ENV+= SCRPDIR=${WRKSRC}/pgms BENCHMARK_ENV+= RESULTDIR=${WRKSRC}/results -BENCHMARK_ENV+= TESTDIR=${WRKSRC}/testdir +BENCHMARK_ENV+= BENCHDIR=${WRKSRC}/testdir +BENCHMARK_ENV+= TESTDIR=${WRKSRC}/tmp + +OWN_DIRS= /var/bytebench + +post-extract: + ${RM} -f ${WRKSRC}/pgms/select post-patch: - ${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/Run >${WRKSRC}/run-byte + cd ${WRKSRC}; ${SED} -e "s|@PREFIX@|${PREFIX}|g" Run > run-byte + ${CHMOD} +x ${WRKSRC}/run-byte pre-install: - ${FIND} ${WRKSRC} -name "*.orig" -exec ${RM} {} \; + ${FIND} ${WRKSRC} -name "*.orig" | ${XARGS} ${RM} -f do-install: ${INSTALL_DATA_DIR} ${PREFIX}/libexec/bytebench @@ -25,16 +33,20 @@ do-install: ${INSTALL_DATA_DIR} ${PREFIX}/share/bytebench ${INSTALL_DATA} ${WRKSRC}/testdir/* ${PREFIX}/share/bytebench ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bytebench - ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/bytebench + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/bytebench ${INSTALL_SCRIPT} ${WRKSRC}/run-byte ${PREFIX}/bin benchmark: - @if [ `${ID} -u` != 0 ]; then ${ECHO} "This benchmark must be run as root!" ; exit 1 ; fi - @${SETENV} ${BENCHMARK_ENV} ${WRKSRC}/run-byte \ - | tee ${WRKSRC}/bytebench.out + @if [ `${ID} -u` != 0 ]; then \ + ${ECHO} "This benchmark must be run as root!"; \ + exit 1; \ + fi + @( cd ${WRKSRC}; ${SETENV} ${BENCHMARK_ENV} ./run-byte \ + | tee bytebench.out ) results: @${MKDIR} /tmp/benches/`domainname` -@${CP} ${WRKSRC}/bytebench.out /tmp/benches/`domainname`/bytebench.`uname`-`uname -m`-`uname -r`.`hostname` +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" |