853636488cc0af4a48879c8e91ca7d58409d6890
[openwrt/openwrt.git] / package / network / utils / iperf3 / 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:=3.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://downloads.es.net/pub/iperf
16 PKG_HASH:=f207b36f861485845dbdf09f909c62f3d2222a3cf3d2682095aede8213cd9c1d
17
18 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
19 PKG_LICENSE:=BSD-3-Clause
20
21 PKG_BUILD_PARALLEL:=1
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 DISABLE_NLS:=
27
28 define Package/iperf3
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=Internet Protocol bandwidth measuring tool
32 URL:=https://github.com/esnet/iperf
33 DEPENDS:= +libopenssl
34 endef
35
36 TARGET_CFLAGS += -D_GNU_SOURCE
37 CONFIGURE_ARGS += --disable-shared \
38 --with-openssl="$(STAGING_DIR)/usr"
39
40 MAKE_FLAGS += noinst_PROGRAMS=
41
42 define Package/iperf3/description
43 Iperf is a modern alternative for measuring TCP and UDP bandwidth
44 performance, allowing the tuning of various parameters and
45 characteristics.
46 endef
47
48 define Package/iperf3/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iperf3 $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,iperf3))