aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/stream/Makefile
blob: 6128cd983a1773cf83600709248da276ecab4939 (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
35
36
37
# Created by: Scott Flatman <sf@dsinw.com>
# $FreeBSD$

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

MAINTAINER= ports@FreeBSD.org
COMMENT=    Synthetic benchmark program that measures sustainable memory bandwidth

OPTIONS_DEFINE= DOCS

NO_WRKSUBDIR=   yes

EXTRACT_CMD=    ${CP}
EXTRACT_BEFORE_ARGS=    #
EXTRACT_AFTER_ARGS= ${WRKDIR}

PORTDOCS=   stream.c
PLIST_FILES=    bin/stream_bench

.include <bsd.port.options.mk>

do-build:
    (cd ${WRKSRC} && ${CC} ${CFLAGS} -o stream_bench stream.c -lm)

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