aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2013-02-04 08:49:11 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2013-02-04 08:49:11 +0000
commit6c83732619559a1b7a09486d1fc2895d366e233e (patch)
tree669aa00c20a5df3571aceb7ad6c4f63f98d191c2 /benchmarks
parent4a76c1a7c6ecbfed8d47c08f7738c03a24eacadd (diff)
downloadports-6c83732619559a1b7a09486d1fc2895d366e233e.tar.gz
ports-6c83732619559a1b7a09486d1fc2895d366e233e.zip
Notes
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/flops/Makefile27
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