blob: c05355186f6c73c1a2e5056ecaef58d9f4fe3fa4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# 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
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 -)
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 ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/flops.doc ${DOCSDIR}
.endif
.include <bsd.port.mk>
|