1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/benchmarks/flops/Makefile

38 lines
835 B
Makefile
Raw Normal View History

# 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= #
2009-06-30 11:38:35 +00:00
MAINTAINER= ports@FreeBSD.org
COMMENT= Floating point benchmark to give your MFLOPS rating
2014-01-05 01:53:38 +00:00
OPTIONS_DEFINE= DOCS
NO_WRKSUBDIR= yes
PORTDOCS= flops.doc
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)
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}
.include <bsd.port.mk>