aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/flops
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2013-02-04 16:49:11 +0800
committeraraujo <araujo@FreeBSD.org>2013-02-04 16:49:11 +0800
commitbd685e87f7a2cc6a16bcc0b103aa62b6f1c19a28 (patch)
tree669aa00c20a5df3571aceb7ad6c4f63f98d191c2 /benchmarks/flops
parent54395e3927ab0bd1ef79b0c72e139b17ba352c08 (diff)
downloadfreebsd-ports-gnome-bd685e87f7a2cc6a16bcc0b103aa62b6f1c19a28.tar.gz
freebsd-ports-gnome-bd685e87f7a2cc6a16bcc0b103aa62b6f1c19a28.tar.zst
freebsd-ports-gnome-bd685e87f7a2cc6a16bcc0b103aa62b6f1c19a28.zip
- Fix build using CLANG.
PR: ports/175010 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'benchmarks/flops')
-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