diff options
Diffstat (limited to 'benchmarks/flops/Makefile')
-rw-r--r-- | benchmarks/flops/Makefile | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/benchmarks/flops/Makefile b/benchmarks/flops/Makefile index 67b3c549d068..621367fc0e2e 100644 --- a/benchmarks/flops/Makefile +++ b/benchmarks/flops/Makefile @@ -1,32 +1,37 @@ -# New ports collection makefile for: flops -# Date created: 06 Jul 2005 -# Whom: Alexey Dokuchaev <danfe@FreeBSD.org> -# +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> # $FreeBSD$ -# PORTNAME= flops PORTVERSION= 2.0 CATEGORIES= benchmarks MASTER_SITES= http://mbsd.msk.ru/dist/ DISTFILES= ${PORTNAME}.c ${PORTNAME}.doc +EXTRACT_ONLY= # MAINTAINER= ports@FreeBSD.org COMMENT= Floating point benchmark to give your MFLOPS rating -PLIST_FILES= bin/flops +NO_WRKSUBDIR= yes + PORTDOCS= flops.doc +PLIST_FILES= bin/flops + +.include <bsd.port.options.mk> + +post-extract: + @(cd ${DISTDIR} && ${TAR} -cf - ${DISTFILES}) | \ + (cd ${WRKSRC} && ${TAR} -xf -) -do-extract: .SILENT - ${MKDIR} ${WRKSRC} - ${CP} ${DISTDIR}/flops.c ${DISTDIR}/flops.doc ${WRKSRC} +post-patch: + @${REINPLACE_CMD} -e \ + 's|^void main|int main|' ${WRKSRC}/flops.c do-build: (cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin -.if !defined(NOPORTDOCS) + ${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin/ +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/flops.doc ${DOCSDIR} .endif |