2004-07-30 17:50:37 +02:00
|
|
|
# $NetBSD: Makefile,v 1.14 2004/07/30 15:50:38 minskim Exp $
|
1998-08-30 19:51:16 +02:00
|
|
|
|
|
|
|
DISTNAME= whetstone
|
|
|
|
PKGNAME= whetstone-1.2
|
|
|
|
CATEGORIES= benchmarks
|
|
|
|
MASTER_SITES= http://www.netlib.org/benchmark/
|
|
|
|
EXTRACT_SUFX= .c
|
|
|
|
|
|
|
|
MAINTAINER= root@garbled.net
|
2001-02-16 14:30:32 +01:00
|
|
|
COMMENT= Benchmark for processors that gives you a MIPS rating
|
1998-08-30 19:51:16 +02:00
|
|
|
|
2004-07-30 17:50:37 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
1999-04-01 16:07:52 +02:00
|
|
|
EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
1998-08-30 19:51:16 +02:00
|
|
|
|
2004-07-30 17:50:37 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
1998-08-30 19:51:16 +02:00
|
|
|
do-build:
|
2001-03-31 12:09:04 +02:00
|
|
|
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -o whetstone whetstone.c -lm)
|
1998-08-30 19:51:16 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${PREFIX}/bin
|
|
|
|
|
1998-09-24 11:19:10 +02:00
|
|
|
benchmark:
|
1998-12-26 16:59:54 +01:00
|
|
|
@${WRKSRC}/whetstone 80000 | tee ${WRKSRC}/whetstone.out
|
|
|
|
|
|
|
|
results:
|
2001-04-09 13:45:33 +02:00
|
|
|
@${MKDIR} /tmp/benches/`domainname`
|
2000-03-16 13:16:49 +01:00
|
|
|
-@${CP} ${WRKSRC}/whetstone.out /tmp/benches/`domainname`/whetstone.`uname`-`uname -m`-`uname -r`.`hostname`
|
1998-09-24 11:19:10 +02:00
|
|
|
|
1998-08-30 19:51:16 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|