# $Id: Portfile 37291 2008-06-02 15:07:07Z jmr@macports.org $ PortSystem 1.0 name ubench version 0.32 categories benchmarks maintainers nomaintainer description Unix Benchmark Utility for CPU(s) and memory long_description \ The Unix Benchmark Utility "ubench" is an attempt to introduce \ a single measure of perfomance among computer systems running \ various flavors of Unix operation system. The current \ development release tests only CPU(s) and memory. In the future \ releases there will be tests added for disk and TCP/IP. Ubench \ is taking advantage of multiple CPUs on an SMP system and the \ results will reflect that. homepage http://www.phystech.com/download/ubench.html platforms darwin master_sites http://www.phystech.com/ftp/ \ ftp://ftp.phystech.com/pub/ checksums md5 b03ddb52867a80890999b56cda8e69b7 patchfiles patch-cpubench.c patch-membench.c \ patch-configure.diff build.target destroot.destdir INSTALLDIR=${destroot}${prefix}/bin post-destroot { xinstall -m 444 ${worksrcpath}/ubench.8 ${destroot}${prefix}/share/man/man8 } variant use_64_bit conflicts universal description {Build a 64-bit executable} { pre-fetch { if {${os.platform} != "darwin"} { return -code error "The use_64_bit variant only works on Darwin" } elseif {${os.major} < 8} { return -code error "The use_64_bit variant needs Darwin 8 or later" } } if {${os.arch} == "i386"} { configure.cflags-append -arch x86_64 } elseif {${os.arch} == "powerpc"} { configure.cflags-append -arch ppc64 } else { ui_warn "Unknown arch: ${os.arch}" } }