aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2006-02-02 18:02:57 +0800
committerjmz <jmz@FreeBSD.org>2006-02-02 18:02:57 +0800
commit5a19b30dcbc4dfab928c55af3a7e8214bd61321d (patch)
treef3035171a1a6f899627dfd7831c44fd498396d3f /benchmarks
parent1b67b459da066c1b93ab6f3c95dd5e24cfcdc495 (diff)
downloadfreebsd-ports-graphics-5a19b30dcbc4dfab928c55af3a7e8214bd61321d.tar.gz
freebsd-ports-graphics-5a19b30dcbc4dfab928c55af3a7e8214bd61321d.tar.zst
freebsd-ports-graphics-5a19b30dcbc4dfab928c55af3a7e8214bd61321d.zip
- Update to 3.259
- Honor build environment CC and CFLAGS - OPTIONS to support threading using pthreads PR: ports/92714 Submitted by: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/iozone/Makefile17
-rw-r--r--benchmarks/iozone/distinfo7
-rw-r--r--benchmarks/iozone/files/patch-makefile32
3 files changed, 50 insertions, 6 deletions
diff --git a/benchmarks/iozone/Makefile b/benchmarks/iozone/Makefile
index 85a56832bf0..25c77e99d60 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 4f43d547410..30a93a979fd 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 00000000000..d52a48e1ea2
--- /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 ""