mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
61 lines
1.1 KiB
Bash
61 lines
1.1 KiB
Bash
SUMMARY="Network bandwidth testing tool"
|
|
DESCRIPTION="iperf3 is a tool for active measurements of the maximum \
|
|
achievable bandwitdh on IP networks."
|
|
HOMEPAGE="https://software.es.net/iperf/"
|
|
COPYRIGHT="2014-2022 The Regents of the University of California, \
|
|
through Lawrence Berkeley National Laboratory"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://downloads.es.net/pub/iperf/iperf-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="bee427aeb13d6a2ee22073f23261f63712d82befaa83ac8cb4db5da4c2bdc865"
|
|
SOURCE_DIR="iperf-$portVersion"
|
|
PATCHES="iperf3-$portVersion.patchset"
|
|
|
|
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
|
|
PATCHES+="
|
|
iperf3-$portVersion.gcc2.patchset
|
|
"
|
|
fi
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
libVersion="0.0.0"
|
|
|
|
PROVIDES="
|
|
iperf3 = $portVersion
|
|
cmd:iperf3 = $portVersion
|
|
lib:libiperf = $libVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:g++
|
|
cmd:gcc
|
|
cmd:grep
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure LDFLAGS="-lnetwork"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm $libDir/libiperf.a $libDir/libiperf.la
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|