2018-07-17 16:58:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.41 2018/07/17 14:58:05 joerg Exp $
|
1998-10-21 21:35:56 +02:00
|
|
|
|
|
|
|
DISTNAME= benchfft-2.0
|
2016-09-26 01:14:52 +02:00
|
|
|
PKGREVISION= 5
|
1998-10-21 21:35:56 +02:00
|
|
|
CATEGORIES= benchmarks math
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= ftp://ftp.fftw.org/pub/fftw/
|
|
|
|
MASTER_SITES+= ftp://ftp.fftw.org/pub/fftw/old/benchfft/
|
1998-10-21 21:35:56 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} fftw-2.0.1${EXTRACT_SUFX}
|
|
|
|
|
2008-01-19 10:16:17 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2002-04-16 09:39:03 +02:00
|
|
|
HOMEPAGE= http://www.fftw.org/benchfft/
|
2004-02-21 07:33:00 +01:00
|
|
|
COMMENT= Benchmark your machine with a number of FFT algorithms
|
1998-10-21 21:35:56 +02:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2012-02-06 07:24:53 +01:00
|
|
|
USE_TOOLS+= gmake csh:run
|
2010-07-30 12:36:22 +02:00
|
|
|
USE_LANGUAGES= c fortran77
|
2000-11-07 21:28:23 +01:00
|
|
|
USE_LIBTOOL= yes
|
2002-12-07 16:40:19 +01:00
|
|
|
|
2006-07-19 21:14:37 +02:00
|
|
|
LIBTOOL_OVERRIDE= libtool ../fftw-*/libtool
|
2004-02-14 16:29:15 +01:00
|
|
|
CONFIG_GUESS_OVERRIDE= config.guess ../fftw-*/config.guess
|
|
|
|
CONFIG_SUB_OVERRIDE= config.sub ../fftw-*/config.sub
|
2005-11-05 22:04:36 +01:00
|
|
|
CONFIG_STATUS_OVERRIDE= config.status ../fftw-*/config.status
|
1998-10-21 21:35:56 +02:00
|
|
|
|
2012-02-06 07:24:53 +01:00
|
|
|
REPLACE_CSH= submit-script
|
|
|
|
|
2004-07-30 17:50:37 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2005-11-05 22:04:36 +01:00
|
|
|
CONFIGURE_DIRS= ${WRKDIR}/fftw-2.0.1 ${WRKSRC}
|
1998-10-21 21:35:56 +02:00
|
|
|
|
|
|
|
do-install:
|
2008-03-03 01:51:43 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bench \
|
|
|
|
${DESTDIR}${PREFIX}/bin/bench-fft
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/submit-script \
|
|
|
|
${DESTDIR}${PREFIX}/bin/run-fftbench
|
1998-10-21 21:35:56 +02:00
|
|
|
|
2018-07-17 16:58:05 +02:00
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
|
|
|
|
.if defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mg95)
|
|
|
|
MAKE_ENV+= G95_NO_OPT=-O0
|
|
|
|
.else
|
|
|
|
MAKE_ENV+= G95_NO_OPT=
|
|
|
|
.endif
|
1998-12-03 02:27:04 +01:00
|
|
|
|
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"
|