1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 # -> linux-arm (32bit) <-
8 # -> linux-AMD64 (64bit) <-
9 # -> linux-ia64 (64bit) <-
10 # -> linux-powerpc (32bit) <-
11 # -> linux-powerpc64 (64bit) <-
12 # -> linux-S390 (32bit) <-
13 # -> linux-S390X (64bit) <-
15 # -> freebsd (32bit) <-
16 # -> macosx (32bit) <-
17 # -> netbsd (32bit) <-
18 # -> openbsd (32bit) <-
19 # -> openbsd-threads (32bit) <-
21 # ~ia64 ~s390 alpha(?) x86-fbsd
23 inherit toolchain-funcs
25 DESCRIPTION="Filesystem benchmarking program"
26 HOMEPAGE="http://www.iozone.org/"
27 SRC_URI="http://www.iozone.org/src/current/${PN}${PV/./_}.tar"
31 KEYWORDS="amd64 arm ~ia64 ppc ppc64 ~sparc x86"
34 S=${WORKDIR}/${PN}${PV/./_}
40 sed -i -e "s:CC =.*:CC =$(tc-getCC):g" \
41 -e "s:-O3:${CFLAGS}:g" src/current/makefile || die
46 x86|alpha) PLATFORM="linux";;
47 arm) PLATFORM="linux-arm";;
48 ppc) PLATFORM="linux-powerpc";;
49 ppc64) PLATFORM="linux-powerpc64";;
50 amd64) PLATFORM="linux-AMD64";;
51 ia64) PLATFORM="linux-ia64";;
52 s390) PLATFORM="linux-S390";;
53 x86-fbsd) PLATFORM="freebsd";;
54 *) PLATFORM="linux-${ARCH}";;
59 emake -C src/current ${PLATFORM}
64 "${S}"/src/current/iozone testfile || die "self test failed"
68 dosbin src/current/{iozone,fileop}
70 dodoc docs/I* docs/Run_rules.doc src/current/Changes.txt
73 dodoc Generate_Graphs Gnuplot.txt gengnuplot.sh gnu3d.dem