aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/flops
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-05 01:53:38 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-05 01:53:38 +0000
commit854dfceb6c110ca8361ed14ab2157f6358b2028b (patch)
tree2e16d8b0fe2492b7ca3543f847dd1164325b1768 /benchmarks/flops
parent6839f858ab9bb3bccd3affc0fbd09a14a227c501 (diff)
downloadports-854dfceb6c110ca8361ed14ab2157f6358b2028b.tar.gz
ports-854dfceb6c110ca8361ed14ab2157f6358b2028b.zip
Support stage
Notes
Notes: svn path=/head/; revision=338743
Diffstat (limited to 'benchmarks/flops')
-rw-r--r--benchmarks/flops/Makefile13
1 files changed, 5 insertions, 8 deletions
diff --git a/benchmarks/flops/Makefile b/benchmarks/flops/Makefile
index c05355186f6c..3d262b6cf157 100644
--- a/benchmarks/flops/Makefile
+++ b/benchmarks/flops/Makefile
@@ -11,14 +11,13 @@ EXTRACT_ONLY= #
MAINTAINER= ports@FreeBSD.org
COMMENT= Floating point benchmark to give your MFLOPS rating
+OPTIONS_DEFINE= DOCS
+
NO_WRKSUBDIR= yes
PORTDOCS= flops.doc
PLIST_FILES= bin/flops
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
post-extract:
@(cd ${DISTDIR} && ${TAR} -cf - ${DISTFILES}) | \
(cd ${WRKSRC} && ${TAR} -xf -)
@@ -31,10 +30,8 @@ do-build:
(cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin/
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/flops.doc ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/flops ${STAGEDIR}${PREFIX}/bin/
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/flops.doc ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>