nghttp3: new recipe

This commit is contained in:
Jerome Duval
2024-04-24 17:25:19 +02:00
parent 9b51e5308f
commit 9d80d32df5

View File

@@ -0,0 +1,72 @@
SUMMARY="HTTP/3 C Library"
DESCRIPTION="nghttp3 is an implementation of HTTP/3 in C."
HOMEPAGE="https://nghttp3.org/"
COPYRIGHT="2019-2024 nghttp3 contributors"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/ngtcp2/nghttp3/releases/download/v$portVersion/nghttp3-$portVersion.tar.xz"
CHECKSUM_SHA256="d2e216bae7bd7362f850922e4237a5caa204853b3594b22adccab4c1e1c1d1aa"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="9.2.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
nghttp3$secondaryArchSuffix = $portVersion
lib:libnghttp3$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
nghttp3${secondaryArchSuffix}_devel = $portVersion
devel:libnghttp3$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
nghttp3$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage nghttp3$secondaryArchSuffix \
"$libDir"/libnghttp3.so.$libVersion
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm -f "$libDir"/libnghttp3.la "$libDir"/libnghttp3.a
rm -rf "$manDir"/man1
prepareInstalledDevelLib libnghttp3
fixPkgconfig
packageEntries devel \
"$developDir"
}
TEST()
{
make check
}