2013-02-04 08:49:11 +00:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2005-07-06 10:02:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= flops
|
|
|
|
PORTVERSION= 2.0
|
|
|
|
CATEGORIES= benchmarks
|
2006-09-07 10:42:35 +00:00
|
|
|
MASTER_SITES= http://mbsd.msk.ru/dist/
|
2005-07-06 10:02:08 +00:00
|
|
|
DISTFILES= ${PORTNAME}.c ${PORTNAME}.doc
|
2013-02-04 08:49:11 +00:00
|
|
|
EXTRACT_ONLY= #
|
2005-07-06 10:02:08 +00:00
|
|
|
|
2009-06-30 11:38:35 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-07-06 10:02:08 +00:00
|
|
|
COMMENT= Floating point benchmark to give your MFLOPS rating
|
|
|
|
|
2014-01-05 01:53:38 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2013-02-04 08:49:11 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
2005-07-06 10:02:08 +00:00
|
|
|
PORTDOCS= flops.doc
|
2013-02-04 08:49:11 +00:00
|
|
|
PLIST_FILES= bin/flops
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@(cd ${DISTDIR} && ${TAR} -cf - ${DISTFILES}) | \
|
|
|
|
(cd ${WRKSRC} && ${TAR} -xf -)
|
2005-07-06 10:02:08 +00:00
|
|
|
|
2013-02-04 08:49:11 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^void main|int main|' ${WRKSRC}/flops.c
|
2005-07-06 10:02:08 +00:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC} && ${CC} ${CFLAGS} -DUNIX -o flops flops.c)
|
|
|
|
|
|
|
|
do-install:
|
2014-01-05 01:53:38 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/flops ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/flops.doc ${STAGEDIR}${DOCSDIR}
|
2005-07-06 10:02:08 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|