2016-07-09 13:48:12 +02:00
|
|
|
# $NetBSD: Makefile,v 1.57 2016/07/09 11:48:12 rillig Exp $
|
1998-08-30 19:42:25 +02:00
|
|
|
|
2015-07-13 16:05:56 +02:00
|
|
|
DISTNAME= iozone3_430
|
2014-12-09 14:56:44 +01:00
|
|
|
PKGNAME= ${DISTNAME:S/3_/-3./}
|
2016-07-09 08:37:46 +02:00
|
|
|
PKGREVISION= 1
|
2004-11-10 15:13:21 +01:00
|
|
|
CATEGORIES= benchmarks
|
|
|
|
MASTER_SITES= http://www.iozone.org/src/current/
|
|
|
|
EXTRACT_SUFX= .tar
|
1998-08-30 19:42:25 +02:00
|
|
|
|
2008-01-19 10:16:17 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-11-10 15:13:21 +01:00
|
|
|
HOMEPAGE= http://www.iozone.org/
|
|
|
|
COMMENT= Benchmark for file read and write speed
|
2006-05-02 15:53:18 +02:00
|
|
|
# No derivative works
|
|
|
|
LICENSE= iozone-license
|
2001-06-05 01:10:35 +02:00
|
|
|
|
2005-10-31 18:26:02 +01:00
|
|
|
NOT_FOR_PLATFORM= Interix-*-* # has only 32-bit off_t
|
|
|
|
|
2005-10-19 17:27:19 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src/current
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= makefile
|
2011-12-02 16:31:44 +01:00
|
|
|
USE_TOOLS+= tee perl
|
1998-08-30 19:42:25 +02:00
|
|
|
|
2012-01-12 16:11:37 +01:00
|
|
|
CPPFLAGS.SunOS+= -Dsolaris
|
|
|
|
|
2000-05-02 17:17:45 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2015-07-13 16:05:56 +02:00
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-i386)
|
|
|
|
BUILD_TARGET= netbsd
|
|
|
|
.elif !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
|
|
|
|
BUILD_TARGET= netbsd-AMD64
|
|
|
|
.elif !empty(OPSYS:M*BSD) || ${OPSYS} == "Linux" || ${OPSYS} == "DragonFly"
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_TARGET= ${LOWER_OPSYS}
|
2000-05-02 17:17:45 +02:00
|
|
|
.elif (${OPSYS} == "SunOS")
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_TARGET= Solaris
|
2004-05-05 02:43:10 +02:00
|
|
|
.elif (${OPSYS} == "Darwin")
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_TARGET= macosx
|
2004-05-10 18:33:03 +02:00
|
|
|
.elif (${OPSYS} == "IRIX")
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_TARGET= ${OPSYS}${ABI:M64}
|
2004-05-10 18:33:03 +02:00
|
|
|
.elif (${OPSYS} == "BSDOS")
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_TARGET= bsdi
|
2004-05-10 18:33:03 +02:00
|
|
|
.elif (${OPSYS} == "AIX")
|
2005-12-05 21:49:47 +01:00
|
|
|
BUILD_TARGET= ${OPSYS}
|
2004-05-10 18:33:03 +02:00
|
|
|
.else
|
2005-12-05 21:49:47 +01:00
|
|
|
# XXX: generic should work, but specific target would be better
|
|
|
|
BUILD_TARGET= generic
|
2000-05-02 17:17:45 +02:00
|
|
|
.endif
|
1998-08-30 19:42:25 +02:00
|
|
|
|
2016-07-09 13:48:12 +02:00
|
|
|
REPLACE_PERL= iozone_visualizer.pl report.pl
|
2013-03-18 10:29:17 +01:00
|
|
|
SUBST_CLASSES+= crlf
|
|
|
|
SUBST_MESSAGE.crlf= Stripping EOL CR in ${REPLACE_PERL}
|
|
|
|
SUBST_STAGE.crlf= post-extract
|
|
|
|
SUBST_FILES.crlf= ${REPLACE_PERL}
|
|
|
|
SUBST_FILTER_CMD.crlf= ${TR} -d '\r'
|
2011-12-02 16:31:44 +01:00
|
|
|
|
2016-07-09 13:48:12 +02:00
|
|
|
EGDIR= share/examples/IOzone
|
|
|
|
DOCDIR= share/doc/IOzone
|
2011-12-02 16:31:44 +01:00
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${EGDIR} ${DOCDIR}
|
2004-07-30 17:50:37 +02:00
|
|
|
|
2008-08-25 21:35:30 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
IOZONE_TEST_ARGS= -Ea
|
|
|
|
.if !empty(PKG_OPTIONS:Mthreads)
|
|
|
|
IOZONE_TEST_ARGS+= -T -t4
|
|
|
|
.endif
|
|
|
|
|
1998-08-30 19:42:25 +02:00
|
|
|
do-install:
|
2011-12-02 16:31:44 +01:00
|
|
|
.for bb in fileop iozone pit_server
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${bb} ${DESTDIR}${PREFIX}/bin
|
|
|
|
.endfor
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/iozone_visualizer.pl \
|
|
|
|
${DESTDIR}${PREFIX}/bin/iozone_visualizer
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/report.pl \
|
|
|
|
${DESTDIR}${PREFIX}/bin/iozone_report
|
2008-03-03 01:51:43 +01:00
|
|
|
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 \
|
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2011-12-02 16:31:44 +01:00
|
|
|
.for dd in IOzone_msword_98.pdf Iozone_ps.gz Run_rules.doc
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/docs/${dd} \
|
|
|
|
${DESTDIR}${PREFIX}/${DOCDIR}/
|
|
|
|
.endfor
|
|
|
|
.for ee in Generate_Graphs Gnuplot.txt client_list gengnuplot.sh \
|
|
|
|
gnu3d.dem gnuplot.dem gnuplotps.dem read_telemetry write_telemetry
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${ee} \
|
|
|
|
${DESTDIR}${PREFIX}/${EGDIR}/
|
|
|
|
.endfor
|
1998-09-23 18:09:05 +02:00
|
|
|
|
2000-05-04 12:38:27 +02:00
|
|
|
benchmark:
|
2008-08-25 21:35:30 +02:00
|
|
|
cd ${WRKSRC}; ./iozone ${IOZONE_TEST_ARGS} | ${TEE} iozone.out
|
2000-05-04 12:38:27 +02:00
|
|
|
|
|
|
|
results:
|
2006-07-13 15:42:12 +02:00
|
|
|
${MKDIR} /tmp/benches/`domainname`
|
|
|
|
${CP} ${WRKSRC}/iozone.out /tmp/benches/`domainname`/iozone.`uname`-`uname -m`-`uname -r`.`hostname`
|
2000-05-04 12:38:27 +02:00
|
|
|
|
2008-08-25 21:35:30 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
1998-08-30 19:42:25 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|