1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Fix CATEGORIES when IPV6 option is off

- Use correct flag: LDFLAGS
- Simplify doc installation
- Cosmetic change
- Take maintainership
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2012-02-01 18:57:02 +00:00
parent 09c57f862b
commit cd162d2197
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=290250

View File

@ -7,41 +7,39 @@
PORTNAME= iperf
PORTVERSION= 2.0.5
CATEGORIES= benchmarks ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=${PORTNAME}
CATEGORIES= benchmarks
MASTER_SITES= SF/${PORTNAME}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= A tool to measure maximum TCP and UDP bandwidth
OPTIONS= IPV6 "Enable support to IPv6" on \
THREADS "Enable threads support" on
GNU_CONFIGURE= yes
PLIST_FILES= bin/iperf
MAN1= iperf.1
PLIST_FILES= bin/iperf
PORTDOCS= *
OPTIONS= IPV6 "Enable support to IPv6" on \
THREADS "Enable threads support" on
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --disable-ipv6
CONFIGURE_ARGS+=--disable-ipv6
.else
CATEGORIES+= ipv6
.endif
.if defined(WITHOUT_THREADS)
CONFIGURE_ARGS+= --disable-threads
CONFIGURE_ARGS+=--disable-threads
.else
CFLAGS+= ${PTHREAD_LIBS}
LDFLAGS+= ${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
${MKDIR} ${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/*.gif ${WRKSRC}/doc/*.html ${DOCSDIR}/
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>