Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2014 01:53:38 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338743 - head/benchmarks/flops
Message-ID:  <201401050153.s051rcGU017399@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun Jan  5 01:53:38 2014
New Revision: 338743
URL: http://svnweb.freebsd.org/changeset/ports/338743

Log:
  Support stage

Modified:
  head/benchmarks/flops/Makefile

Modified: head/benchmarks/flops/Makefile
==============================================================================
--- head/benchmarks/flops/Makefile	Sun Jan  5 01:49:24 2014	(r338742)
+++ head/benchmarks/flops/Makefile	Sun Jan  5 01:53:38 2014	(r338743)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401050153.s051rcGU017399>