Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:=3.1.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.es.net/pub/iperf
  13. PKG_HASH:=db61d70ac62003ebe0bf15496bd8c4b3c4b728578a44d0a1a88fcf8afc0e8f76
  14. PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/iperf3
  20. SECTION:=net
  21. CATEGORY:=Network
  22. TITLE:=Internet Protocol bandwidth measuring tool
  23. URL:=https://github.com/esnet/iperf
  24. endef
  25. TARGET_CFLAGS += -D_GNU_SOURCE
  26. CONFIGURE_ARGS += --disable-shared
  27. MAKE_FLAGS += noinst_PROGRAMS=
  28. define Package/iperf3/description
  29. Iperf is a modern alternative for measuring TCP and UDP bandwidth
  30. performance, allowing the tuning of various parameters and
  31. characteristics.
  32. endef
  33. define Package/iperf3/install
  34. $(INSTALL_DIR) $(1)/usr/bin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iperf3 $(1)/usr/bin/
  36. endef
  37. $(eval $(call BuildPackage,iperf3))