1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/benchmarks/iperf/Makefile
Sunpoet Po-Chuan Hsieh 391d3a2e66 - Add LICENSE
- Convert to new options framework
- Cleanup Makefile header
2012-10-07 13:13:10 +00:00

46 lines
844 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= A tool to measure maximum TCP and UDP bandwidth
LICENSE= BSD
OPTIONS_DEFINE= DOCS IPV6 THREADS
OPTIONS_DEFAULT=IPV6 THREADS
GNU_CONFIGURE= yes
MAN1= iperf.1
PLIST_FILES= bin/iperf
PORTDOCS= *
.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>