ea8f026315e530ad7a7f7f6403f9c455898d41f6
[openwrt/openwrt.git] / package / network / utils / iperf / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=iperf
11 PKG_VERSION:=2.0.9
12 PKG_VERSION_SUFFIX:=a
13 PKG_RELEASE:=1
14
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_HASH:=db02911f35686e808ed247160dfa766e08ae3f59d1e7dcedef0ffb2a6643f0bf
22
23 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
24 PKG_LICENSE:=BSD-3-Clause
25
26 PKG_BUILD_PARALLEL:=1
27
28 include $(INCLUDE_DIR)/uclibc++.mk
29 include $(INCLUDE_DIR)/package.mk
30
31 define Package/iperf
32 SECTION:=net
33 CATEGORY:=Network
34 DEPENDS:= $(CXX_DEPENDS) +libpthread
35 TITLE:=Internet Protocol bandwidth measuring tool
36 URL:=http://sourceforge.net/projects/iperf2/
37 endef
38
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
42 characteristics.
43 endef
44
45 TARGET_CFLAGS += -D_GNU_SOURCE
46 CONFIGURE_ARGS += --disable-multicast
47
48 CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
49 CONFIGURE_VARS += LIBS="-lpthread -lm"
50
51 define Package/iperf/install
52 $(INSTALL_DIR) $(1)/usr/bin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/usr/bin/iperf
54 endef
55
56 $(eval $(call BuildPackage,iperf))