# Template file for 'iperf'
pkgname=iperf
version=2.1.8
revision=1
build_style=gnu-configure
configure_args="--enable-ipv6 --enable-multicast --enable-threads
 ac_cv_sizeof_bool=0"
short_desc="Perform network throughput tests"
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
license="NCSA"
homepage="https://iperf.fr/"
changelog="https://sourceforge.net/p/iperf2/code/ci/master/tree/doc/RELEASE_NOTES?format=raw"
distfiles="${SOURCEFORGE_SITE}/${pkgname}2/${pkgname}-${version}.tar.gz"
checksum=8e2cf2fbc9d0d4d1cf9d109b1e328459f9622993dc9a4c5a7dc8a2088fb7beaf

if [ "$XBPS_TARGET_LIBC" = musl ]; then
	# do not define struct ethhdr in <linux/if_ether.h> to avoid
	# redefinition in <netinet/if_ether.h>
	CFLAGS="-D__UAPI_DEF_ETHHDR=0"
	CXXFLAGS="-D__UAPI_DEF_ETHHDR=0"
fi

post_install() {
	vlicense COPYING LICENSE
}
