1 # $NetBSD: Makefile,v 1.16 2010/01/25 00:30:09 zafer Exp $
6 MASTER_SITES
= http
://ftp.sunet.se
/pub
/benchmark
/aburto
/flops
/
7 DISTFILES
= ${DISTNAME}.c
${DISTNAME}.doc
9 MAINTAINER
= pkgsrc-users@NetBSD.org
10 HOMEPAGE
= http
://performance.netlib.org
/performance
/html
/flops.html
11 COMMENT
= Floating point benchmark to give your MFLOPS rating
13 PKG_INSTALLATION_TYPES
= overwrite pkgviews
17 INSTALLATION_DIRS
= bin
21 ${CP} ${DISTDIR}/flops.c
${WRKSRC}/flops.c
22 ${CP} ${DISTDIR}/flops.doc
${WRKSRC}/flops.doc
25 (cd
${WRKSRC} ; ${CC} ${CFLAGS} -DUNIX
-o flops flops.c
-lm
)
28 ${INSTALL_PROGRAM} ${WRKSRC}/flops
${DESTDIR}${PREFIX}/bin
29 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share
/doc
/flops
30 ${INSTALL_DATA} ${WRKSRC}/flops.doc
${DESTDIR}${PREFIX}/share
/doc
/flops
33 -@
${WRKSRC}/flops | tee
${WRKSRC}/flops.out
36 @
${MKDIR} /tmp
/benches
/`domainname`
37 -@
${CP} ${WRKSRC}/flops.out
/tmp
/benches
/`domainname`/flops.
`uname`-`uname -m`-`uname -r`.
`hostname`
39 .
include "../../mk/bsd.pkg.mk"