diff options
Diffstat (limited to 'benchmarks/stream/Makefile')
-rw-r--r-- | benchmarks/stream/Makefile | 33 |
1 files changed, 18 insertions, 15 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> |