mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- Fix unfetchable distribution problem
- Upgrade PR: ports/77585 Submitted by: Scott Flatman (maintainer)
This commit is contained in:
parent
4e311fc4f3
commit
5e2348f9dd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129067
@ -6,23 +6,30 @@
|
||||
|
||||
PORTNAME= stream
|
||||
PORTVERSION= 1.0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= benchmarks
|
||||
MASTER_SITES= ftp://ftp.cs.virginia.edu/pub/stream/Code/
|
||||
DISTFILES= second_cpu.c stream_d.c
|
||||
DISTFILES= stream.c README
|
||||
DIST_SUBDIR= stream-${PORTVERSION}
|
||||
|
||||
MAINTAINER= sf@slappy.org
|
||||
COMMENT= Synthetic benchmark program that measures sustainable memory bandwidth
|
||||
|
||||
MAKEFILE= ${FILESDIR}/Makefile
|
||||
PLIST_FILES= bin/stream
|
||||
PORTDOCS= stream.c README
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@${CP} -r ${_DISTDIR} ${WRKDIR}
|
||||
@${MKDIR} ${BUILD_WRKSRC}
|
||||
@${CP} ${_DISTDIR}/stream.c ${BUILD_WRKSRC}
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${PREFIX}/bin/stream
|
||||
do-build:
|
||||
(cd ${BUILD_WRKSRC} ; ${CC} ${CFLAGS} -o stream stream.c -lm)
|
||||
|
||||
do-install:
|
||||
(cd ${BUILD_WRKSRC}; ${INSTALL_PROGRAM} stream ${PREFIX}/bin)
|
||||
. if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
(cd ${_DISTDIR}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
|
||||
. endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
MD5 (stream-1.0/second_cpu.c) = 65f4111f06a5f5a677925fa0ede61416
|
||||
SIZE (stream-1.0/second_cpu.c) = 287
|
||||
MD5 (stream-1.0/stream_d.c) = 76ef0d3b0c8884a130e8a723da96697b
|
||||
SIZE (stream-1.0/stream_d.c) = 5555
|
||||
MD5 (stream-1.0/stream.c) = 883cad1b230151cfe54d9a833380fd1f
|
||||
SIZE (stream-1.0/stream.c) = 11437
|
||||
MD5 (stream-1.0/README) = 6578ee6cc75e4ee08a6a1439f1436680
|
||||
SIZE (stream-1.0/README) = 1141
|
||||
|
@ -1,24 +0,0 @@
|
||||
# $FreeBSD$
|
||||
# stream didn't come with a makefile
|
||||
|
||||
CFLAGS+= -Wall -pedantic -ansi -pipe
|
||||
BINOWN= root
|
||||
BINGRP= wheel
|
||||
BINMODE= 0555
|
||||
INSTALLDIR= ${PREFIX}/bin
|
||||
|
||||
# season to flavor, see the stream docs
|
||||
NSIZE= 1000000
|
||||
|
||||
#
|
||||
all: stream_d.o second_cpu.o
|
||||
${CC} -o stream stream_d.o second_cpu.o -lm
|
||||
|
||||
stream_d.o: stream_d.c
|
||||
${CC} ${CFLAGS} -DNSIZE=${NSIZE} -c stream_d.c
|
||||
|
||||
second_cpu.o: second_cpu.c
|
||||
${CC} ${CFLAGS} -c second_cpu.c
|
||||
|
||||
install:
|
||||
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} stream ${INSTALLDIR}
|
@ -1,14 +0,0 @@
|
||||
|
||||
$FreeBSD$
|
||||
|
||||
--- stream_d.c.orig Wed May 22 11:02:08 2002
|
||||
+++ stream_d.c Wed May 22 11:02:37 2002
|
||||
@@ -23,7 +23,7 @@
|
||||
* that should be good to about 5% precision.
|
||||
*/
|
||||
|
||||
-# define N 2000000
|
||||
+# define N NSIZE
|
||||
# define NTIMES 10
|
||||
# define OFFSET 0
|
||||
|
Loading…
Reference in New Issue
Block a user