2 # Copyright (C) 2007-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://downloads.es.net/pub/iperf
16 PKG_HASH:=de5d51e46dc460cc590fb4d44f95e7cad54b74fea1eba7d6ebd6f8887d75946e
18 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
19 PKG_LICENSE:=BSD-3-Clause
26 include $(INCLUDE_DIR)/package.mk
30 define Package/iperf3/default
33 TITLE:=Internet Protocol bandwidth measuring tool
34 URL:=https://github.com/esnet/iperf
38 $(call Package/iperf3/default)
42 define Package/iperf3-ssl
43 $(call Package/iperf3/default)
44 TITLE+= with iperf_auth support
49 TARGET_CFLAGS += -D_GNU_SOURCE
50 CONFIGURE_ARGS += --disable-shared
52 ifeq ($(BUILD_VARIANT),ssl)
53 CONFIGURE_ARGS += --with-openssl="$(STAGING_DIR)/usr"
55 CONFIGURE_ARGS += --without-openssl
58 MAKE_FLAGS += noinst_PROGRAMS=
60 define Package/iperf3/description
61 Iperf is a modern alternative for measuring TCP and UDP bandwidth
62 performance, allowing the tuning of various parameters and
66 # autoreconf fails if the README file isn't present
68 $(call Build/Prepare/Default)
69 touch $(PKG_BUILD_DIR)/README
72 define Package/iperf3/install
73 $(INSTALL_DIR) $(1)/usr/bin
74 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iperf3 $(1)/usr/bin/
77 define Package/iperf3-ssl/install
78 $(INSTALL_DIR) $(1)/usr/bin
79 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iperf3 $(1)/usr/bin/
82 $(eval $(call BuildPackage,iperf3))
83 $(eval $(call BuildPackage,iperf3-ssl))