mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
- Add LICENSE
- Convert to new options framework - Cleanup Makefile header
This commit is contained in:
parent
a01ce24d15
commit
391d3a2e66
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305472
1 changed files with 15 additions and 15 deletions
|
@ -1,9 +1,5 @@
|
||||||
# New ports collection makefile for: iperf
|
# Created by: Pete Fritchman <petef@databits.net>
|
||||||
# Date Created: 20 May 2001
|
|
||||||
# Whom: Pete Fritchman <petef@databits.net>
|
|
||||||
#
|
|
||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
#
|
|
||||||
|
|
||||||
PORTNAME= iperf
|
PORTNAME= iperf
|
||||||
PORTVERSION= 2.0.5
|
PORTVERSION= 2.0.5
|
||||||
|
@ -13,8 +9,10 @@ MASTER_SITES= SF/${PORTNAME}
|
||||||
MAINTAINER= sunpoet@FreeBSD.org
|
MAINTAINER= sunpoet@FreeBSD.org
|
||||||
COMMENT= A tool to measure maximum TCP and UDP bandwidth
|
COMMENT= A tool to measure maximum TCP and UDP bandwidth
|
||||||
|
|
||||||
OPTIONS= IPV6 "Enable support to IPv6" on \
|
LICENSE= BSD
|
||||||
THREADS "Enable threads support" on
|
|
||||||
|
OPTIONS_DEFINE= DOCS IPV6 THREADS
|
||||||
|
OPTIONS_DEFAULT=IPV6 THREADS
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
|
|
||||||
|
@ -24,22 +22,24 @@ PORTDOCS= *
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if defined(WITHOUT_IPV6)
|
.if ${PORT_OPTIONS:MIPV6}
|
||||||
CONFIGURE_ARGS+=--disable-ipv6
|
|
||||||
.else
|
|
||||||
CATEGORIES+= ipv6
|
CATEGORIES+= ipv6
|
||||||
|
CONFIGURE_ARGS+=--enable-ipv6
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+=--disable-ipv6
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITHOUT_THREADS)
|
.if ${PORT_OPTIONS:MTHREADS}
|
||||||
CONFIGURE_ARGS+=--disable-threads
|
CONFIGURE_ARGS+=--enable-threads
|
||||||
.else
|
|
||||||
LDFLAGS+= ${PTHREAD_LIBS}
|
LDFLAGS+= ${PTHREAD_LIBS}
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+=--disable-threads
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if !defined(NOPORTDOCS)
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
${MKDIR} ${DOCSDIR}/
|
${MKDIR} ${DOCSDIR}/
|
||||||
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/doc/*.gif ${WRKSRC}/doc/*.html ${DOCSDIR}/
|
cd ${WRKSRC}/ && ${INSTALL_DATA} README doc/*.gif doc/*.html ${DOCSDIR}/
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue