View | Details | Raw Unified | Return to bug 175010
Collapse All | Expand All

(-)benchmarks/flops/Makefile (-12 / +17 lines)
Lines 1-34 Link Here
1
# New ports collection makefile for:	flops
1
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
2
# Date created:				06 Jul 2005
3
# Whom:					Alexey Dokuchaev <danfe@FreeBSD.org>
4
#
5
# $FreeBSD: head/benchmarks/flops/Makefile 300895 2012-07-14 12:56:14Z beat $
2
# $FreeBSD: head/benchmarks/flops/Makefile 300895 2012-07-14 12:56:14Z beat $
6
#
7
3
8
PORTNAME=	flops
4
PORTNAME=	flops
9
PORTVERSION=	2.0
5
PORTVERSION=	2.0
10
CATEGORIES=	benchmarks
6
CATEGORIES=	benchmarks
11
MASTER_SITES=	http://mbsd.msk.ru/dist/
7
MASTER_SITES=	http://mbsd.msk.ru/dist/
12
DISTFILES=	${PORTNAME}.c ${PORTNAME}.doc
8
DISTFILES=	${PORTNAME}.c ${PORTNAME}.doc
9
EXTRACT_ONLY=	#
13
10
14
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Floating point benchmark to give your MFLOPS rating
12
COMMENT=	Floating point benchmark to give your MFLOPS rating
16
13
17
PLIST_FILES=	bin/flops
14
NO_WRKSUBDIR=	yes
15
18
PORTDOCS=	flops.doc
16
PORTDOCS=	flops.doc
17
PLIST_FILES=	bin/flops
18
19
.include <bsd.port.options.mk>
19
20
20
do-extract: .SILENT
21
post-extract:
21
	${MKDIR} ${WRKSRC}
22
	@(cd ${DISTDIR} && ${TAR} -cf - ${DISTFILES}) | \
22
	${CP} ${DISTDIR}/flops.c ${DISTDIR}/flops.doc ${WRKSRC}
23
		(cd ${WRKSRC} && ${TAR} -xf -)
24
25
post-patch:
26
	@${REINPLACE_CMD} -e \
27
		's|^void main|int main|' ${WRKSRC}/flops.c
23
28
24
do-build:
29
do-build:
25
	(cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c)
30
	(cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c)
26
31
27
do-install:
32
do-install:
28
	${INSTALL_PROGRAM} ${WRKSRC}/flops ${PREFIX}/bin
33
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} flops ${PREFIX}/bin)
29
.if !defined(NOPORTDOCS)
34
.if ${PORT_OPTIONS:MDOCS}
30
	@${MKDIR} ${DOCSDIR}
35
	@${MKDIR} ${DOCSDIR}
31
	${INSTALL_DATA} ${WRKSRC}/flops.doc ${DOCSDIR}
36
	(cd ${WRKSRC} && ${INSTALL_DATA} flops.doc ${DOCSDIR})
32
.endif
37
.endif
33
38
34
.include <bsd.port.mk>
39
.include <bsd.port.mk>

Return to bug 175010