2001-04-09 13:45:33 +02:00
|
|
|
# $NetBSD: Makefile,v 1.9 2001/04/09 11:45:35 wiz Exp $
|
1998-10-21 21:35:56 +02:00
|
|
|
|
|
|
|
DISTNAME= benchfft-2.0
|
|
|
|
CATEGORIES= benchmarks math
|
|
|
|
MASTER_SITES= ftp://theory.lcs.mit.edu/pub/fftw/benchfft/ ftp://theory.lcs.mit.edu/pub/fftw/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} fftw-2.0.1${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
MAINTAINER= root@garbled.net
|
|
|
|
HOMEPAGE= http://theory.lcs.mit.edu/~benchfft/download.html
|
2001-02-16 14:30:32 +01:00
|
|
|
COMMENT= Benchmark your machine with a number of FFT algorithims
|
1998-10-21 21:35:56 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2000-05-13 16:51:11 +02:00
|
|
|
USE_FORTRAN= yes
|
2000-11-07 21:28:23 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
1998-10-21 21:35:56 +02:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
(cd ${WRKDIR}/fftw-2.0.1 && ./configure)
|
|
|
|
|
|
|
|
do-build:
|
1999-03-08 11:50:23 +01:00
|
|
|
(cd ${WRKDIR}/fftw-2.0.1 && ${GMAKE})
|
1998-10-21 21:35:56 +02:00
|
|
|
(cd ${WRKSRC} && ./configure)
|
1999-03-08 11:50:23 +01:00
|
|
|
(cd ${WRKSRC} && ${GMAKE})
|
1998-10-21 21:35:56 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bench ${PREFIX}/bin/bench-fft
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/submit-script ${PREFIX}/bin/run-fftbench
|
|
|
|
|
1998-12-03 02:27:04 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
1998-10-21 21:35:56 +02:00
|
|
|
benchmark:
|
1998-12-03 02:27:04 +01:00
|
|
|
.if defined(BATCH)
|
1998-12-26 16:59:54 +01:00
|
|
|
@${ECHO} "*** This benchmark should be run in non-batch mode"
|
|
|
|
@${SED} -e 's|bench-fft|./bench|g' <${WRKSRC}/submit-script> ${WRKSRC}/run_bench
|
2000-03-16 13:16:49 +01:00
|
|
|
@${CHMOD} 755 ${WRKSRC}/run_bench
|
1998-12-26 16:59:54 +01:00
|
|
|
@${SED} -e 's|@machine@|'`uname -m`'|' \
|
|
|
|
${FILESDIR}/setup.answers | (cd ${WRKSRC} ; ./run_bench)
|
1998-12-03 02:27:04 +01:00
|
|
|
.else
|
1998-12-26 16:59:54 +01:00
|
|
|
@${SED} -e 's|bench-fft|./bench|g' <${WRKSRC}/submit-script> ${WRKSRC}/run_bench
|
2000-03-16 13:16:49 +01:00
|
|
|
@${CHMOD} 755 ${WRKSRC}/run_bench
|
1998-12-26 16:59:54 +01:00
|
|
|
@(cd ${WRKSRC} ; ./run_bench)
|
1998-12-03 02:27:04 +01:00
|
|
|
@${ECHO} ${PKGNAME} results:
|
|
|
|
${CAT} submit.txt
|
|
|
|
.endif
|
1998-10-21 21:35:56 +02:00
|
|
|
|
1998-12-26 16:59:54 +01:00
|
|
|
results:
|
2001-04-09 13:45:33 +02:00
|
|
|
@${MKDIR} /tmp/benches/`domainname`
|
2000-03-16 13:16:49 +01:00
|
|
|
-@${CP} ${WRKSRC}/submit.txt /tmp/benches/`domainname`/fft.`uname`-`uname -m`-`uname -r`.`hostname`
|
1998-12-26 16:59:54 +01:00
|
|
|
|
1998-10-21 21:35:56 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|