File:
[cvs.NetBSD.org] /
pkgsrc /
benchmarks /
flops /
Makefile
Revision
1.17:
download - view:
text,
annotated -
select for diffs
Tue Sep 11 22:37:12 2012 UTC (12 years, 3 months ago) by
asau
Branches:
MAIN
CVS tags:
pkgsrc-2014Q3-base,
pkgsrc-2014Q3,
pkgsrc-2014Q2-base,
pkgsrc-2014Q2,
pkgsrc-2014Q1-base,
pkgsrc-2014Q1,
pkgsrc-2013Q4-base,
pkgsrc-2013Q4,
pkgsrc-2013Q3-base,
pkgsrc-2013Q3,
pkgsrc-2013Q2-base,
pkgsrc-2013Q2,
pkgsrc-2013Q1-base,
pkgsrc-2013Q1,
pkgsrc-2012Q4-base,
pkgsrc-2012Q4,
pkgsrc-2012Q3-base,
pkgsrc-2012Q3,
HEAD
"user-destdir" is default these days
# $NetBSD: Makefile,v 1.17 2012/09/11 22:37:12 asau Exp $
DISTNAME= flops
PKGNAME= flops-2.0
CATEGORIES= benchmarks
MASTER_SITES= http://ftp.sunet.se/pub/benchmark/aburto/flops/
DISTFILES= ${DISTNAME}.c ${DISTNAME}.doc
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://performance.netlib.org/performance/html/flops.html
COMMENT= Floating point benchmark to give your MFLOPS rating
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${DISTDIR}/flops.c ${WRKSRC}/flops.c
${CP} ${DISTDIR}/flops.doc ${WRKSRC}/flops.doc
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -DUNIX -o flops flops.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flops ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/flops
${INSTALL_DATA} ${WRKSRC}/flops.doc ${DESTDIR}${PREFIX}/share/doc/flops
benchmark:
-@${WRKSRC}/flops | tee ${WRKSRC}/flops.out
results:
@${MKDIR} /tmp/benches/`domainname`
-@${CP} ${WRKSRC}/flops.out /tmp/benches/`domainname`/flops.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>