1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/benchmarks/iperf/Makefile

47 lines
851 B
Makefile

# Created by: Pete Fritchman <petef@databits.net>
# $FreeBSD$
PORTNAME= iperf
PORTVERSION= 2.0.5
CATEGORIES= benchmarks
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Tool to measure maximum TCP and UDP bandwidth
LICENSE= BSD
OPTIONS_DEFINE= DOCS IPV6 THREADS
OPTIONS_DEFAULT=THREADS
GNU_CONFIGURE= yes
MAN1= iperf.1
PLIST_FILES= bin/iperf
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIPV6}
CATEGORIES+= ipv6
CONFIGURE_ARGS+=--enable-ipv6
.else
CONFIGURE_ARGS+=--disable-ipv6
.endif
.if ${PORT_OPTIONS:MTHREADS}
CONFIGURE_ARGS+=--enable-threads
LDFLAGS+= ${PTHREAD_LIBS}
.else
CONFIGURE_ARGS+=--disable-threads
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} README doc/*.gif doc/*.html ${DOCSDIR}/
.endif
.include <bsd.port.mk>