pkgsrc/benchmarks/whetstone/Makefile
jlam 758d912e33 Update package Makefile now that bsd.pkg.extract.mk is using the
"extract" script for extraction.  Many cases where a custom EXTRACT_CMD
simply copied the distfile into the work directory are no longer
needed.  The extract script also hides differences between pax and
tar behind a common command-line interface, so we no longer need code
that's conditional on whether EXTRACT_USING is tar or pax.
2006-01-21 18:57:40 +00:00

31 lines
778 B
Makefile

# $NetBSD: Makefile,v 1.15 2006/01/21 18:57:40 jlam Exp $
DISTNAME= whetstone
PKGNAME= whetstone-1.2
CATEGORIES= benchmarks
MASTER_SITES= http://www.netlib.org/benchmark/
EXTRACT_SUFX= .c
MAINTAINER= root@garbled.net
COMMENT= Benchmark for processors that gives you a MIPS rating
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -o whetstone whetstone.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${PREFIX}/bin
benchmark:
@${WRKSRC}/whetstone 80000 | tee ${WRKSRC}/whetstone.out
results:
@${MKDIR} /tmp/benches/`domainname`
-@${CP} ${WRKSRC}/whetstone.out /tmp/benches/`domainname`/whetstone.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"