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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)$(PKG_VERSION_SUFFIX
).
tar.gz
16 # Temporary URL change - iperf upstream altered the already released target
17 # without bumping the version number. The new tarball is renamed to avoid
18 # conflicts with existing mirrored files.
19 # PKG_SOURCE_URL:=@SF/iperf2
20 PKG_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
21 PKG_MD5SUM
:=db02911f35686e808ed247160dfa766e08ae3f59d1e7dcedef0ffb2a6643f0bf
23 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
24 PKG_LICENSE
:=BSD-3-Clause
28 include $(INCLUDE_DIR
)/uclibc
++.mk
29 include $(INCLUDE_DIR
)/package.mk
34 DEPENDS
:= $(CXX_DEPENDS
) +libpthread
35 TITLE
:=Internet Protocol bandwidth measuring tool
36 URL
:=http
://sourceforge.net
/projects
/iperf2
/
39 define Package
/iperf
/description
40 Iperf is a modern alternative for measuring TCP and UDP bandwidth
41 performance
, allowing the tuning of various parameters and
45 TARGET_CFLAGS
+= -D_GNU_SOURCE
46 CONFIGURE_ARGS
+= --disable-multicast
48 CONFIGURE_VARS
+= CXXFLAGS
="$$$$CXXFLAGS -fno-rtti"
49 CONFIGURE_VARS
+= LIBS
="-lpthread -lm"
51 define Package
/iperf
/install
52 $(INSTALL_DIR
) $(1)/usr
/bin
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/iperf
$(1)/usr
/bin
/iperf
56 $(eval
$(call BuildPackage
,iperf
))