aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/iperf/Makefile
blob: 72919a10e651bb9469baa37f6c4a4bf3ff0a8c3d (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
# New ports collection makefile for:	iperf
# Date Created:				20 May 2001
# Whom:					Pete Fritchman <petef@databits.net>
#
# $FreeBSD$
#

PORTNAME=	iperf
PORTVERSION=	2.0.4
CATEGORIES=	benchmarks ipv6
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}%20source

MAINTAINER=	mnag@FreeBSD.org
COMMENT=	A tool to measure maximum TCP and UDP bandwidth

GNU_CONFIGURE=	yes

PLIST_FILES=	bin/iperf
MAN1=		iperf.1
PORTDOCS=	*

OPTIONS=	IPV6	"Enable support to IPv6" 	on \
		THREADS	"Enable threads support"	on

.include <bsd.port.pre.mk>

.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if defined(WITHOUT_THREADS)
CONFIGURE_ARGS+=	--disable-threads
.else
CONFIGURE_ENV+=		CFLAGS=${PTHREAD_LIBS}
.endif

post-install:
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.for f in ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.gif
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>