- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2017-07-05 10:24:22 +00:00
parent 1d2a24c2a4
commit 0636795e47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445065

View File

@ -11,8 +11,6 @@ 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}
@ -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})