git: 6f86d9470517 - main - benchmarks/iperf3: Make static library optional.

Bruce A. Mah bmah at FreeBSD.org
Fri Jun 11 15:07:14 UTC 2021


The branch main has been updated by bmah:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6f86d9470517968d72b71a829e1c6fe4e6192773

commit 6f86d9470517968d72b71a829e1c6fe4e6192773
Author:     Daniel Engberg <daniel.engberg.lists at pyret.net>
AuthorDate: 2021-06-11 15:03:43 +0000
Commit:     Bruce A. Mah <bmah at FreeBSD.org>
CommitDate: 2021-06-11 15:06:14 +0000

    benchmarks/iperf3: Make static library optional.
    
    While here, do some minor changes to Makefile to follow the Porter's
    Handbook more closely.
    
    PR:             256495
---
 benchmarks/iperf3/Makefile  | 10 +++++++---
 benchmarks/iperf3/pkg-plist |  2 +-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/benchmarks/iperf3/Makefile b/benchmarks/iperf3/Makefile
index 03d9f3dc732f..4f49a10628e5 100644
--- a/benchmarks/iperf3/Makefile
+++ b/benchmarks/iperf3/Makefile
@@ -1,7 +1,8 @@
 # Created by: Bruce A. Mah <bmah at FreeBSD.org>
 
 PORTNAME=	iperf
-PORTVERSION=	3.10.1
+DISTVERSION=	3.10.1
+PORTREVISION=	1
 CATEGORIES=	benchmarks
 MASTER_SITES=	https://downloads.es.net/pub/iperf/
 PKGNAMESUFFIX=	3
@@ -12,8 +13,8 @@ COMMENT=	Improved tool to measure TCP and UDP bandwidth
 LICENSE=	BSD3CLAUSE MIT
 LICENSE_COMB=	multi
 
-GNU_CONFIGURE=	yes
 USES=		libtool ssl
+GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
 PORTDOCS=	README.md RELNOTES.md
@@ -21,7 +22,10 @@ PORTDOCS=	README.md RELNOTES.md
 # Set ${DOCSDIR} to avoid conflict with benchmarks/iperf ${DOCSDIR}
 DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
 
-OPTIONS_DEFINE=	DOCS
+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
diff --git a/benchmarks/iperf3/pkg-plist b/benchmarks/iperf3/pkg-plist
index ad244993e85c..96004fb1efb1 100644
--- a/benchmarks/iperf3/pkg-plist
+++ b/benchmarks/iperf3/pkg-plist
@@ -1,6 +1,6 @@
 bin/iperf3
 include/iperf_api.h
-lib/libiperf.a
+%%STATIC%%lib/libiperf.a
 lib/libiperf.so
 lib/libiperf.so.0
 lib/libiperf.so.0.0.0


More information about the dev-commits-ports-main mailing list