source: trunk/dports/benchmarks/iozone/Portfile @ 98018

Last change on this file since 98018 was 98018, checked in by ryandesign@…, 8 years ago

iozone: fix build error "expected a platform name, e.g., 'macosx'" on Mountain Lion (#35654)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 98018 2012-09-22 09:01:45Z ryandesign@macports.org $
3
4PortSystem       1.0
5
6name             iozone
7version          3_408
8categories       benchmarks
9platforms        darwin
10license          Restrictive/Distributable GPL-2+
11maintainers      jmr openmaintainer
12description      Performance Test of File I/O
13long_description \
14    Iozone tests the speed of I/O to actual files. \
15    Therefore, this measurement factors in the efficiency of \
16    your machine's file system, operating system, C compiler, \
17    and C runtime library.  It produces a measurement which \
18    is the number of bytes per second that your system can \
19    read or write to a file.
20homepage         http://www.iozone.org/
21
22master_sites     ${homepage}src/current/
23distname         ${name}${version}
24checksums        rmd160 c9caa3f02f0404d3b4a3a7c7fad040439bfff8f1 \
25                 sha256 2112f8a125df8c627760ee2d6d2bd68617ca18e5a312da74175747f225b3fdf5
26
27extract.suffix   .tar
28extract.cmd      cat
29extract.pre_args
30worksrcdir       ${distname}/src/current
31
32patchfiles       patch-__APPLE__.diff
33
34use_configure    no
35build.target     macosx
36build.args       CC=${configure.cc} \
37                 CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
38                 LDFLAGS="${configure.ld_archflags}"
39
40destroot {
41    xinstall -m 555 ${worksrcpath}/iozone ${worksrcpath}/fileop \
42                    ${destroot}${prefix}/bin
43    xinstall -m 444 ${worksrcpath}/../../docs/iozone.1 ${destroot}${prefix}/share/man/man1
44    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
45    xinstall -m 444 ${worksrcpath}/../../docs/IOzone_msword_98.pdf \
46                    ${worksrcpath}/../../docs/Run_rules.doc \
47                    ${worksrcpath}/Changes.txt \
48                    ${worksrcpath}/Gnuplot.txt \
49                    ${destroot}${prefix}/share/doc/${name}
50    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
51    xinstall -m 444 ${worksrcpath}/Generate_Graphs \
52                    ${worksrcpath}/client_list \
53                    ${worksrcpath}/gengnuplot.sh \
54                    ${worksrcpath}/gnu3d.dem \
55                    ${worksrcpath}/gnuplot.dem \
56                    ${worksrcpath}/gnuplotps.dem \
57                    ${worksrcpath}/iozone_visualizer.pl \
58                    ${worksrcpath}/report.pl \
59                    ${destroot}${prefix}/share/${name}
60}
61
62livecheck.type          regex
63livecheck.url           ${homepage}
64livecheck.regex         "${name}(\[0-9\]+_\[0-9\]+)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.