SUMMARY="Analyze HTTP streams from the command line"
DESCRIPTION="A command line utility helps to capture and dump HTTP stream."
HOMEPAGE="https://github.com/six-ddc/httpflow"
COPYRIGHT="2020 dudongcheng"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
SOURCE_FILENAME="httpflow-$portVersion.tar.gz"
CHECKSUM_SHA256="2347bd416641e165669bf1362107499d0bc4524ed9bfbb273ccd3b3dd411e89c"
PATCHES="httpflow-$portVersion.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
       httpflow$secondaryArchSuffix = $portVersion
       cmd:httpflow = $portVersion
       "
REQUIRES="
       haiku$secondaryArchSuffix
       lib:libpcap$secondaryArchSuffix
       lib:libpcre$secondaryArchSuffix
       lib:libz$secondaryArchSuffix
       "

BUILD_REQUIRES="
       haiku${secondaryArchSuffix}_devel
       devel:libpcap$secondaryArchSuffix
       devel:libpcre$secondaryArchSuffix
       devel:libz$secondaryArchSuffix
       "
BUILD_PREREQUIRES="
       cmd:gcc$secondaryArchPrefix
       cmd:make
       cmd:pkg_config$secondaryArchPrefix
       cmd:sed
       "

BUILD()
{
       make
}

INSTALL()
{
       mkdir -p $binDir
       cp httpflow $binDir
}
