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 $
7 MASTER_SITES= SF/${PORTNAME}
9 MAINTAINER= sunpoet@FreeBSD.org
10 COMMENT= A tool to measure maximum TCP and UDP bandwidth
14 OPTIONS_DEFINE= DOCS IPV6 THREADS
15 OPTIONS_DEFAULT=IPV6 THREADS
20 PLIST_FILES= bin/iperf
23 .include <bsd.port.options.mk>
25 .if ${PORT_OPTIONS:MIPV6}
27 CONFIGURE_ARGS+=--enable-ipv6
29 CONFIGURE_ARGS+=--disable-ipv6
32 .if ${PORT_OPTIONS:MTHREADS}
33 CONFIGURE_ARGS+=--enable-threads
34 LDFLAGS+= ${PTHREAD_LIBS}
36 CONFIGURE_ARGS+=--disable-threads
40 .if ${PORT_OPTIONS:MDOCS}
42 cd ${WRKSRC}/ && ${INSTALL_DATA} README doc/*.gif doc/*.html ${DOCSDIR}/
45 .include <bsd.port.mk>