diff options
author | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2006-02-02 10:02:57 +0000 |
---|---|---|
committer | Jean-Marc Zucconi <jmz@FreeBSD.org> | 2006-02-02 10:02:57 +0000 |
commit | 0a32fe2c074bc816080707cba4bf06cceb456cf3 (patch) | |
tree | 35e5f8cd53041280292f9cd11797aa1935943326 /benchmarks | |
parent | a7f6131e46b1b172b2051af141b825f27bcbb20e (diff) | |
download | ports-0a32fe2c074bc816080707cba4bf06cceb456cf3.tar.gz ports-0a32fe2c074bc816080707cba4bf06cceb456cf3.zip |
Notes
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/iozone/Makefile | 17 | ||||
-rw-r--r-- | benchmarks/iozone/distinfo | 7 | ||||
-rw-r--r-- | benchmarks/iozone/files/patch-makefile | 32 |
3 files changed, 50 insertions, 6 deletions
diff --git a/benchmarks/iozone/Makefile b/benchmarks/iozone/Makefile index 85a56832bf01..25c77e99d604 100644 --- a/benchmarks/iozone/Makefile +++ b/benchmarks/iozone/Makefile @@ -6,7 +6,7 @@ # PORTNAME= iozone -PORTVERSION= 3.248 +PORTVERSION= 3.259 PORTREVISION= 0 CATEGORIES= benchmarks MASTER_SITES= http://www.iozone.org/src/current/ @@ -21,15 +21,26 @@ CONFLICTS= iozone-2.* WRKSRC= ${WRKDIR}/${DISTNAME}/src/current MAKEFILE= makefile -MAKE_ARGS= freebsd +MAKE_ARGS= freebsd CFLAGS="${CFLAGS}" ALL_TARGET= MAN1= iozone.1 PLIST_FILES= bin/iozone +OPTIONS= THREADS "Enable threading (uses pthreads)" on + +.include <bsd.port.pre.mk> + +.if defined (WITH_THREADS) +CFLAGS+= -pthread +MAKE_ENV= LDFLAGS=-lpthread +.else +CFLAGS+=-DNO_THREADS +.endif + do-install: ${STRIP_CMD} ${WRKSRC}/iozone ${INSTALL_PROGRAM} ${WRKSRC}/iozone ${PREFIX}/bin ${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 ${PREFIX}/man/man1 -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/benchmarks/iozone/distinfo b/benchmarks/iozone/distinfo index 4f43d5474106..30a93a979fd4 100644 --- a/benchmarks/iozone/distinfo +++ b/benchmarks/iozone/distinfo @@ -1,3 +1,4 @@ -MD5 (iozone3_248.tar) = d77c52d18fc721019dbdf58178441cee -SHA256 (iozone3_248.tar) = 54af0e33fafca9bc5b237969bb52f32006e684a894cd66402c3749fe94d6c473 -SIZE (iozone3_248.tar) = 1474560 +MD5 (iozone3_259.tar) = 809178a5f106e33aa92bc97933e9021d +SHA256 (iozone3_259.tar) = 9525ff6cba4b587e770afcad7871c32864688ab6ee337f819cd45ca7b0775801 +SIZE (iozone3_259.tar) = 1484800 +RMD160 (iozone3_259.tar) = e334aab83db9dde7adaec908a5fa0c70a240c04e diff --git a/benchmarks/iozone/files/patch-makefile b/benchmarks/iozone/files/patch-makefile new file mode 100644 index 000000000000..d52a48e1ea2a --- /dev/null +++ b/benchmarks/iozone/files/patch-makefile @@ -0,0 +1,32 @@ +--- makefile.orig Fri Jan 20 09:02:11 2006 ++++ makefile Wed Feb 1 20:59:35 2006 +@@ -9,12 +9,12 @@ + # convex, FreeBSD, OpenBSD, OSFV3, OSFV4, OSFV5, SCO + # SCO_Unixware_gcc,NetBSD,TRU64, Mac OS X + +-CC = cc ++#CC = cc + C89 = c89 + GCC = gcc + CCS = /usr/ccs/bin/cc + NACC = /opt/ansic/bin/cc +-CFLAGS = ++#CFLAGS = + + all: + @echo "" +@@ -914,10 +914,10 @@ + @echo "" + @echo "Build iozone for FreeBSD" + @echo "" +- $(CC) -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \ +- -DNAME='"freebsd"' -DSHARED_MEM $(CFLAGS) iozone.c -o iozone_freebsd.o +- $(CC) -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C -DNO_THREADS \ +- -DSHARED_MEM $(CFLAGS) libbif.c -o libbif.o ++ ${CC} -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C \ ++ -DNAME='"freebsd"' -DSHARED_MEM iozone.c -o iozone_freebsd.o ++ ${CC} -c ${CFLAGS} -Dunix -Dbsd4_2 -DHAVE_ANSIC_C \ ++ -DSHARED_MEM libbif.c -o libbif.o + + iozone_macosx.o: iozone.c libbif.c + @echo "" |