aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/stream
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2013-03-02 13:56:28 +0800
committermiwi <miwi@FreeBSD.org>2013-03-02 13:56:28 +0800
commitd3bc6bfa87410ad43722fc083fa4cefb14bccdf2 (patch)
treea9b076af0b5d9aa0aab27246534fb25c5455f3e1 /benchmarks/stream
parentdbd2e9913497edc7b5880d697e5a26f27b1a811f (diff)
downloadfreebsd-ports-gnome-d3bc6bfa87410ad43722fc083fa4cefb14bccdf2.tar.gz
freebsd-ports-gnome-d3bc6bfa87410ad43722fc083fa4cefb14bccdf2.tar.zst
freebsd-ports-gnome-d3bc6bfa87410ad43722fc083fa4cefb14bccdf2.zip
- Update to 5.10
- Trim header - OptionNG PR: 176574 Submitted by: ports fury
Diffstat (limited to 'benchmarks/stream')
-rw-r--r--benchmarks/stream/Makefile33
-rw-r--r--benchmarks/stream/distinfo4
2 files changed, 20 insertions, 17 deletions
diff --git a/benchmarks/stream/Makefile b/benchmarks/stream/Makefile
index 225f5ca1b820..6128cd983a17 100644
--- a/benchmarks/stream/Makefile
+++ b/benchmarks/stream/Makefile
@@ -1,11 +1,8 @@
-# New ports collection makefile for: stream
-# Date created: 10 May 2001
-# Whom: Scott Flatman <sf@dsinw.com>
-#
+# Created by: Scott Flatman <sf@dsinw.com>
# $FreeBSD$
PORTNAME= stream
-PORTVERSION= 5.9
+PORTVERSION= 5.10
CATEGORIES= benchmarks
MASTER_SITES= http://www.cs.virginia.edu/stream/FTP/Code/
DISTFILES= stream.c
@@ -14,21 +11,27 @@ DIST_SUBDIR= ${PORTNAME}-1.0/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Synthetic benchmark program that measures sustainable memory bandwidth
-PLIST_FILES= bin/stream_bench
+OPTIONS_DEFINE= DOCS
+
+NO_WRKSUBDIR= yes
+
+EXTRACT_CMD= ${CP}
+EXTRACT_BEFORE_ARGS= #
+EXTRACT_AFTER_ARGS= ${WRKDIR}
+
PORTDOCS= stream.c
+PLIST_FILES= bin/stream_bench
-do-extract:
- @${MKDIR} ${WRKSRC}
- @${CP} ${_DISTDIR}/stream.c ${WRKSRC}
+.include <bsd.port.options.mk>
do-build:
- (cd ${WRKSRC} ; ${CC} ${CFLAGS} -o stream_bench stream.c -lm)
+ (cd ${WRKSRC} && ${CC} ${CFLAGS} -o stream_bench stream.c -lm)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/stream_bench ${PREFIX}/bin
-. if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
-. endif
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} stream_bench ${PREFIX}/bin)
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
+.endif
.include <bsd.port.mk>
diff --git a/benchmarks/stream/distinfo b/benchmarks/stream/distinfo
index 3882a19ced98..26159f7db996 100644
--- a/benchmarks/stream/distinfo
+++ b/benchmarks/stream/distinfo
@@ -1,2 +1,2 @@
-SHA256 (stream-1.0/5.9/stream.c) = 57e44147e1378e8a3d67053be003380466e324aa546663834cf3c405a836852c
-SIZE (stream-1.0/5.9/stream.c) = 11909
+SHA256 (stream-1.0/5.10/stream.c) = a52bae5e175bea3f7832112af9c085adab47117f7d2ce219165379849231692b
+SIZE (stream-1.0/5.10/stream.c) = 19967