Makefile 1.3 KB

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