aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/stream/Makefile
blob: 515f5f8cde49c697b57a66f0afd24c1b1e7dc324 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# New ports collection makefile for:   stream
# Date created:        10 May 2001
# Whom:        Scott Flatman <sf@dsinw.com>
#
# $FreeBSD$

PORTNAME=   stream
PORTVERSION=    5.8
CATEGORIES= benchmarks
MASTER_SITES=   http://www.cs.virginia.edu/stream/FTP/Code/
DISTFILES=  stream.c
DIST_SUBDIR=    ${PORTNAME}-1.0

MAINTAINER= shuvaev@physik.uni-wuerzburg.de
COMMENT=    Synthetic benchmark program that measures sustainable memory bandwidth

PLIST_FILES=    bin/stream_bench
PORTDOCS=   stream.c

do-extract:
    @${MKDIR} ${WRKSRC}
    @${CP} ${_DISTDIR}/stream.c ${WRKSRC}

do-build:
    (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

.include <bsd.port.mk>