summaryrefslogtreecommitdiff
path: root/benchmarks/iozone/Makefile
blob: 7c017d55f440953e9737e58432073545dc44c308 (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
41
42
43
44
45
46
47
48
49
50
51
PORTNAME=	iozone
DISTVERSION=	3_493
CATEGORIES=	benchmarks
MASTER_SITES=	http://www.iozone.org/src/current/
DISTNAME=	${PORTNAME}${DISTVERSION}

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Performance Test of Sequential File I/O
WWW=		https://www.iozone.org/

LICENSE=	IOZONE
LICENSE_NAME=	Iozone license
LICENSE_FILE=	${WRKDIR}/${DISTNAME}/docs/License.txt
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USES=		gmake tar:tgz

MAKEFILE=	makefile
MAKE_ARGS=	${MAKE_ENV}
MAKE_JOBS_UNSAFE=	yes
ALL_TARGET=	freebsd

CONFLICTS_INSTALL=	iozone21

WRKSRC_SUBDIR=	src/current

PLIST_FILES=	bin/iozone \
		man/man1/iozone.1.gz

OPTIONS_DEFINE=		SSH THREADS
OPTIONS_DEFAULT=	SSH THREADS

SSH_DESC=	Use ssh in distributed measurement
THREADS_DESC=	Enable threading (uses pthreads)

THREADS_CFLAGS_OFF=	-DNO_THREADS
THREADS_LDFLAGS=	-lpthread

post-patch-SSH-on:
	@${REINPLACE_CMD} -e 's|shell\,\"rsh\"|shell\,\"ssh\"|' \
		${WRKSRC}/iozone.c

pre-build:
	@cd ${WRKSRC} && ${GMAKE} clean

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/iozone ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/docs/iozone.1 \
		${STAGEDIR}${MAN1PREFIX}/man/man1

.include <bsd.port.mk>