svn commit: r445065 - head/benchmarks/stream
Dmitry Marakasov
amdmi3 at FreeBSD.org
Wed Jul 5 10:24:23 UTC 2017
Author: amdmi3
Date: Wed Jul 5 10:24:22 2017
New Revision: 445065
URL: https://svnweb.freebsd.org/changeset/ports/445065
Log:
- Switch to options helpers
Modified:
head/benchmarks/stream/Makefile
Modified: head/benchmarks/stream/Makefile
==============================================================================
--- head/benchmarks/stream/Makefile Wed Jul 5 10:24:13 2017 (r445064)
+++ head/benchmarks/stream/Makefile Wed Jul 5 10:24:22 2017 (r445065)
@@ -11,8 +11,6 @@ DIST_SUBDIR= ${PORTNAME}-1.0/${PORTVERSION}
MAINTAINER= ports at FreeBSD.org
COMMENT= Synthetic benchmark program that measures sustainable memory bandwidth
-OPTIONS_DEFINE= DOCS
-
NO_WRKSUBDIR= yes
EXTRACT_CMD= ${CP}
@@ -22,11 +20,15 @@ EXTRACT_AFTER_ARGS= ${WRKSRC}
PORTDOCS= stream.c
PLIST_FILES= bin/stream_bench
+OPTIONS_DEFINE= DOCS
+
do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -o stream_bench stream.c -lm)
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} stream_bench ${STAGEDIR}${PREFIX}/bin)
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
More information about the svn-ports-all
mailing list