blob: 1ec01f46a63a345d8e19922dc97e47e2f6c16b1a (
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
30
31
32
33
34
35
|
# $NetBSD: Makefile,v 1.16 2012/09/11 22:37:11 asau Exp $
DISTNAME= fib.c
PKGNAME= fib-980203
CATEGORIES= benchmarks
MASTER_SITES= http://ftp.sunet.se/pub/benchmark/aburto/fib/
EXTRACT_SUFX= #empty
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Mathematical benchmark
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${DISTDIR}/fib.c ${WRKSRC}/fib.c
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -DUNIX -o fib fib.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fib ${DESTDIR}${PREFIX}/bin
benchmark:
-@${WRKSRC}/fib | tee ${WRKSRC}/fib.out
results:
@${MKDIR} /tmp/benches/`domainname`
-@${CP} ${WRKSRC}/fib.out /tmp/benches/`domainname`/fib.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"
|