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
:=de8cb409fad61a0574f4cb07eb19ce1159707403ac2dc01b5d175e91240b7e5f
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
)
43 define Package
/iperf3-ssl
44 $(call Package
/iperf3
/default
)
45 TITLE
+= with iperf_auth support
50 define Package
/libiperf3
53 TITLE
:=Internet Protocol bandwidth measuring library
54 URL
:=https
://github.com
/esnet
/iperf
57 TARGET_CFLAGS
+= -D_GNU_SOURCE
59 ifeq ($(BUILD_VARIANT
),ssl
)
60 CONFIGURE_ARGS
+= --with-openssl
="$(STAGING_DIR)/usr" --disable-shared
62 CONFIGURE_ARGS
+= --without-openssl
65 MAKE_FLAGS
+= noinst_PROGRAMS
=
67 define Package
/iperf3
/description
68 Iperf is a modern alternative for measuring TCP and UDP bandwidth
69 performance
, allowing the tuning of various parameters and
73 define Package
/libiperf3
/description
74 Libiperf is a library providing an API for iperf3 functionality.
77 define Build
/InstallDev
78 $(INSTALL_DIR
) $(1)/usr
/lib
79 $(INSTALL_DIR
) $(1)/usr
/include
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiperf.
* $(1)/usr
/lib
/
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
84 # autoreconf fails if the README file isn't present
86 $(call Build
/Prepare
/Default
)
87 touch
$(PKG_BUILD_DIR
)/README
90 define Package
/iperf3
/install
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/iperf3
$(1)/usr
/bin
/
95 define Package
/iperf3-ssl
/install
96 $(INSTALL_DIR
) $(1)/usr
/bin
97 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/iperf3
$(1)/usr
/bin
/
100 define Package
/libiperf3
/install
101 $(INSTALL_DIR
) $(1)/usr
/lib
102 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiperf.so.
* $(1)/usr
/lib
105 $(eval
$(call BuildPackage
,iperf3
))
106 $(eval
$(call BuildPackage
,iperf3-ssl
))
107 $(eval
$(call BuildPackage
,libiperf3
))