mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
6f86d94705
While here, do some minor changes to Makefile to follow the Porter's Handbook more closely. PR: 256495
41 lines
1021 B
Makefile
41 lines
1021 B
Makefile
# Created by: Bruce A. Mah <bmah@FreeBSD.org>
|
|
|
|
PORTNAME= iperf
|
|
DISTVERSION= 3.10.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= benchmarks
|
|
MASTER_SITES= https://downloads.es.net/pub/iperf/
|
|
PKGNAMESUFFIX= 3
|
|
|
|
MAINTAINER= bmah@FreeBSD.org
|
|
COMMENT= Improved tool to measure TCP and UDP bandwidth
|
|
|
|
LICENSE= BSD3CLAUSE MIT
|
|
LICENSE_COMB= multi
|
|
|
|
USES= libtool ssl
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= README.md RELNOTES.md
|
|
|
|
# Set ${DOCSDIR} to avoid conflict with benchmarks/iperf ${DOCSDIR}
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
OPTIONS_DEFINE= DOCS STATIC
|
|
OPTIONS_SUB= yes
|
|
|
|
STATIC_CONFIGURE_ENABLE= static
|
|
|
|
post-patch:
|
|
# Don't build stuff that we're not going to install. Among other
|
|
# things this means we're not going to try to build profiled objects
|
|
# and/or executables.
|
|
@${REINPLACE_CMD} -e '/^PROGRAMS /s/\$$(noinst_PROGRAMS)//' ${WRKSRC}/src/Makefile.in
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|