Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=iperf
  9. PKG_VERSION:=2.0.12
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_HASH:=367f651fb1264b13f6518e41b8a7e08ce3e41b2a1c80e99ff0347561eed32646
  13. PKG_SOURCE_URL:=@SF/iperf2
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/uclibc++.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/iperf
  20. SECTION:=net
  21. CATEGORY:=Network
  22. DEPENDS:= $(CXX_DEPENDS) +libpthread
  23. TITLE:=Internet Protocol bandwidth measuring tool
  24. URL:=http://sourceforge.net/projects/iperf2/
  25. endef
  26. define Package/iperf/description
  27. Iperf is a modern alternative for measuring TCP and UDP bandwidth
  28. performance, allowing the tuning of various parameters and
  29. characteristics.
  30. endef
  31. TARGET_CFLAGS += -D_GNU_SOURCE
  32. CONFIGURE_ARGS += --disable-multicast
  33. ifeq ($(CONFIG_IPV6),)
  34. CONFIGURE_ARGS += --disable-ipv6
  35. endif
  36. CONFIGURE_VARS += CXXFLAGS="$$$$CXXFLAGS -fno-rtti"
  37. CONFIGURE_VARS += LIBS="-lpthread -lm"
  38. define Package/iperf/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/usr/bin/iperf
  41. endef
  42. $(eval $(call BuildPackage,iperf))