Import benchmarks/iperf version 2.0.5
[dports.git] / benchmarks / iperf / Makefile
1 # Created by: Pete Fritchman <petef@databits.net>
2 # $FreeBSD: ports/benchmarks/iperf/Makefile,v 1.28 2012/11/17 05:54:50 svnexp Exp $
3
4 PORTNAME=       iperf
5 PORTVERSION=    2.0.5
6 CATEGORIES=     benchmarks
7 MASTER_SITES=   SF/${PORTNAME}
8
9 MAINTAINER=     sunpoet@FreeBSD.org
10 COMMENT=        A tool to measure maximum TCP and UDP bandwidth
11
12 LICENSE=        BSD
13
14 OPTIONS_DEFINE= DOCS IPV6 THREADS
15 OPTIONS_DEFAULT=IPV6 THREADS
16
17 GNU_CONFIGURE=  yes
18
19 MAN1=           iperf.1
20 PLIST_FILES=    bin/iperf
21 PORTDOCS=       *
22
23 .include <bsd.port.options.mk>
24
25 .if ${PORT_OPTIONS:MIPV6}
26 CATEGORIES+=    ipv6
27 CONFIGURE_ARGS+=--enable-ipv6
28 .else
29 CONFIGURE_ARGS+=--disable-ipv6
30 .endif
31
32 .if ${PORT_OPTIONS:MTHREADS}
33 CONFIGURE_ARGS+=--enable-threads
34 LDFLAGS+=       ${PTHREAD_LIBS}
35 .else
36 CONFIGURE_ARGS+=--disable-threads
37 .endif
38
39 post-install:
40 .if ${PORT_OPTIONS:MDOCS}
41         ${MKDIR} ${DOCSDIR}/
42         cd ${WRKSRC}/ && ${INSTALL_DATA} README doc/*.gif doc/*.html ${DOCSDIR}/
43 .endif
44
45 .include <bsd.port.mk>