pkgsrc/benchmarks/paranoia/Makefile
2008-03-03 00:51:43 +00:00

32 lines
846 B
Makefile

# $NetBSD: Makefile,v 1.18 2008/03/03 00:51:44 jlam Exp $
DISTNAME= paranoia
PKGNAME= paranoia-960101
CATEGORIES= benchmarks
MASTER_SITES= http://www.netlib.org/paranoia/
EXTRACT_SUFX= .c
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Highly paranoid test of IEEE 754 conformance
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}
INSTALLATION_DIRS= bin
do-build:
(cd ${WRKSRC} ; ${CC} ${CFLAGS} -ffloat-store -o paranoia paranoia.c -lm)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/paranoia ${DESTDIR}${PREFIX}/bin
benchmark:
@(cd ${WRKSRC}; ./paranoia < ${FILESDIR}/paranoia.run | tee paranoia.out)
results:
@${MKDIR} /tmp/benches/`domainname`
-@${CP} ${WRKSRC}/paranoia.out /tmp/benches/`domainname`/paranoia.`uname`-`uname -m`-`uname -r`.`hostname`
.include "../../mk/bsd.pkg.mk"