1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/benchmarks/iperf/Makefile
Marcus Alves Grando 2fa5e5dbf9 - Update to 2.0.4
- Update WWW

Remained by:	Miroslav Chlastak <chlastak___fialka.cz>
2008-06-10 13:01:42 +00:00

48 lines
974 B
Makefile

# 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= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
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>