2014-10-09 16:05:50 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2014/10/09 14:06:00 wiz Exp $
|
1998-08-30 19:51:16 +02:00
|
|
|
|
|
|
|
DISTNAME= whetstone
|
|
|
|
PKGNAME= whetstone-1.2
|
|
|
|
CATEGORIES= benchmarks
|
2009-02-22 15:15:28 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_NETLIB:=benchmark/}
|
1998-08-30 19:51:16 +02:00
|
|
|
EXTRACT_SUFX= .c
|
|
|
|
|
2008-01-19 10:16:17 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
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-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:
|
2008-03-03 01:51:43 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${DESTDIR}${PREFIX}/bin
|
1998-08-30 19:51:16 +02:00
|
|
|
|
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"
|