blob: 9eba577e53adef0162e551ed4fa4d0bb4375c032 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $NetBSD: Makefile,v 1.20 2014/10/09 14:06:00 wiz Exp $
DISTNAME= whetstone
PKGNAME= whetstone-1.2
CATEGORIES= benchmarks
MASTER_SITES= ${MASTER_SITE_NETLIB:=benchmark/}
EXTRACT_SUFX= .c
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Benchmark for processors that gives you a MIPS rating
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -o whetstone whetstone.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/whetstone ${DESTDIR}${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"
|