1################################################################################
2#
3# iperf3
4#
5################################################################################
6
7IPERF3_VERSION = 3.16
8IPERF3_SITE = https://downloads.es.net/pub/iperf
9IPERF3_SOURCE = iperf-$(IPERF3_VERSION).tar.gz
10IPERF3_LICENSE = BSD-3-Clause, BSD-2-Clause, MIT
11IPERF3_LICENSE_FILES = LICENSE
12IPERF3_CPE_ID_VENDOR = es
13
14# 0001-Check-and-link-libatomic-if-needed.patch
15IPERF3_AUTORECONF = YES
16
17IPERF3_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
18
19ifeq ($(BR2_PACKAGE_OPENSSL),y)
20# We intentionally don't pass --with-openssl, otherwise pkg-config is
21# not used, and indirect libraries are not picked up when static
22# linking.
23IPERF3_DEPENDENCIES += host-pkgconf openssl
24else
25IPERF3_CONF_OPTS += --without-openssl
26endif
27
28$(eval $(autotools-package))
29