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
:=bdb77c11f72bce90214883159577fa24412013e62b2083cf5f54391d79b1d8ff
18 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_CPE_ID
:=cpe
:/a
:es
:iperf3
27 include $(INCLUDE_DIR
)/package.mk
31 define Package
/iperf3
/default
34 TITLE
:=Internet Protocol bandwidth measuring tool
35 URL
:=https
://github.com
/esnet
/iperf
39 $(call Package
/iperf3
/default
)
44 define Package
/iperf3-ssl
45 $(call Package
/iperf3
/default
)
46 TITLE
+= with iperf_auth support
51 define Package
/libiperf3
54 TITLE
:=Internet Protocol bandwidth measuring library
55 URL
:=https
://github.com
/esnet
/iperf
58 TARGET_CFLAGS
+= -D_GNU_SOURCE
60 ifeq ($(BUILD_VARIANT
),ssl
)
61 CONFIGURE_ARGS
+= --with-openssl
="$(STAGING_DIR)/usr" --disable-shared
63 CONFIGURE_ARGS
+= --without-openssl
66 MAKE_FLAGS
+= noinst_PROGRAMS
=
68 define Package
/iperf3
/description
69 Iperf is a modern alternative for measuring TCP and UDP bandwidth
70 performance
, allowing the tuning of various parameters and
74 define Package
/libiperf3
/description
75 Libiperf is a library providing an API for iperf3 functionality.
78 define Build
/InstallDev
79 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(INSTALL_DIR
) $(1)/usr
/include
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiperf.
* $(1)/usr
/lib
/
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
85 # autoreconf fails if the README file isn't present
87 $(call Build
/Prepare
/Default
)
88 touch
$(PKG_BUILD_DIR
)/README
91 define Package
/iperf3
/install
92 $(INSTALL_DIR
) $(1)/usr
/bin
93 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/iperf3
$(1)/usr
/bin
/
96 define Package
/iperf3-ssl
/install
97 $(INSTALL_DIR
) $(1)/usr
/bin
98 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/iperf3
$(1)/usr
/bin
/
101 define Package
/libiperf3
/install
102 $(INSTALL_DIR
) $(1)/usr
/lib
103 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libiperf.so.
* $(1)/usr
/lib
106 $(eval
$(call BuildPackage
,iperf3
))
107 $(eval
$(call BuildPackage
,iperf3-ssl
))
108 $(eval
$(call BuildPackage
,libiperf3
))