aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-05-21 12:45:40 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-05-21 12:45:40 +0000
commitcb18b0c1ee8fc752dd2c9184ad7f2dca4830b67d (patch)
tree10122de9e7c2fc726354a0c4f631639e38f651f2
parent0186dacc6a02f281fd55bfec5aeeb00fe4eceb3f (diff)
downloadports-cb18b0c1ee8fc752dd2c9184ad7f2dca4830b67d.tar.gz
ports-cb18b0c1ee8fc752dd2c9184ad7f2dca4830b67d.zip
Notes
-rw-r--r--benchmarks/flops/Makefile28
-rw-r--r--benchmarks/flops/distinfo6
2 files changed, 9 insertions, 25 deletions
diff --git a/benchmarks/flops/Makefile b/benchmarks/flops/Makefile
index b50912e4021a..407398315fbb 100644
--- a/benchmarks/flops/Makefile
+++ b/benchmarks/flops/Makefile
@@ -2,37 +2,23 @@
# $FreeBSD$
PORTNAME= flops
-PORTVERSION= 2.0
+PORTVERSION= 2.1
CATEGORIES= benchmarks
-MASTER_SITES= http://mbsd.msk.ru/dist/
-DISTFILES= ${PORTNAME}.c ${PORTNAME}.doc
-EXTRACT_ONLY= #
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Floating point benchmark to give your MFLOPS rating
-BROKEN= Unfetchable
-OPTIONS_DEFINE= DOCS
-
-NO_WRKSUBDIR= yes
+USE_GITHUB= yes
+GH_ACCOUNT= AMDmi3
-PORTDOCS= flops.doc
+PORTDOCS= README
PLIST_FILES= bin/flops
-post-extract:
- @(cd ${DISTDIR} && ${TAR} -cf - ${DISTFILES}) | \
- (cd ${WRKSRC} && ${TAR} -xf -)
-
-post-patch:
- @${REINPLACE_CMD} -e \
- 's|^void main|int main|' ${WRKSRC}/flops.c
-
-do-build:
- (cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c)
+OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/flops ${STAGEDIR}${PREFIX}/bin/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/flops.doc ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
diff --git a/benchmarks/flops/distinfo b/benchmarks/flops/distinfo
index 590b4bdbf642..d4f669b50727 100644
--- a/benchmarks/flops/distinfo
+++ b/benchmarks/flops/distinfo
@@ -1,4 +1,2 @@
-SHA256 (flops.c) = e0376ecf9853730a20caf51261de637b0ff13699dd499fa68318817bf0168b68
-SIZE (flops.c) = 33791
-SHA256 (flops.doc) = 1901b8b9c47a102d2262668efcd7ca2ab62793f2c354fbc201e6935f1150d4ab
-SIZE (flops.doc) = 7751
+SHA256 (AMDmi3-flops-2.1_GH0.tar.gz) = 0cb3be76f96c4461c478098ff33dd45a2f9cd071ac7978ad65afd87ef8b80e80
+SIZE (AMDmi3-flops-2.1_GH0.tar.gz) = 10066