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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/iperf2
17 PKG_MD5SUM:=e5887f799d8dc64a974c6c2f2e5cc339
19 PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
20 PKG_LICENSE:=BSD-3-Clause
24 include $(INCLUDE_DIR)/uclibc++.mk
25 include $(INCLUDE_DIR)/package.mk
30 DEPENDS:= $(CXX_DEPENDS) +libpthread
31 TITLE:=Internet Protocol bandwidth measuring tool
32 URL:=http://sourceforge.net/projects/iperf2/
35 define Package/iperf/description
36 Iperf is a modern alternative for measuring TCP and UDP bandwidth
37 performance, allowing the tuning of various parameters and
41 TARGET_CFLAGS += -D_GNU_SOURCE
42 CONFIGURE_ARGS += --disable-multicast
44 CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
45 CONFIGURE_VARS += LIBS="-lpthread"
47 define Package/iperf/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/usr/bin/iperf
52 $(eval $(call BuildPackage,iperf))