2001-05-27 13:42:23 -04:00
|
|
|
# New ports collection makefile for: iperf
|
|
|
|
# Date Created: 20 May 2001
|
|
|
|
# Whom: Pete Fritchman <petef@databits.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= iperf
|
2005-05-10 08:17:48 -04:00
|
|
|
PORTVERSION= 2.0.2
|
2006-12-13 08:43:41 -05:00
|
|
|
PORTREVISION= 1
|
2005-05-21 16:09:28 -04:00
|
|
|
CATEGORIES= benchmarks ipv6
|
2005-05-10 08:17:48 -04:00
|
|
|
MASTER_SITES= http://dast.nlanr.net/Projects/Iperf2.0/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
2005-04-07 11:00:52 -04:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-05-27 13:42:23 -04:00
|
|
|
|
2005-09-16 13:58:32 -04:00
|
|
|
MAINTAINER= mnag@FreeBSD.org
|
2003-03-07 01:14:21 -05:00
|
|
|
COMMENT= A tool to measure maximum TCP and UDP bandwidth
|
2001-05-27 13:42:23 -04:00
|
|
|
|
2006-04-24 10:30:00 -04:00
|
|
|
NO_CDROM= can't charge a fee for the software
|
2001-05-27 13:42:23 -04:00
|
|
|
|
2006-04-24 10:30:00 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2005-03-11 05:44:10 -05:00
|
|
|
|
|
|
|
PLIST_FILES= bin/iperf
|
2006-04-24 10:30:00 -04:00
|
|
|
PORTDOCS= *
|
2005-03-11 05:44:10 -05:00
|
|
|
|
|
|
|
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
|
2006-04-24 10:30:00 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= CFLAGS=${PTHREAD_LIBS}
|
2005-03-11 05:44:10 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2001-05-27 13:42:23 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2005-03-11 05:44:10 -05:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2006-04-24 10:30:00 -04:00
|
|
|
.for f in ${WRKSRC}/doc/*.html ${WRKSRC}/doc/*.gif
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2001-05-27 13:42:23 -04:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2005-03-11 05:44:10 -05:00
|
|
|
.include <bsd.port.post.mk>
|