mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
nghttp2: new recipe.
This commit is contained in:
76
net-libs/nghttp2/nghttp2-1.32.0.recipe
Normal file
76
net-libs/nghttp2/nghttp2-1.32.0.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
SUMMARY="HTTP/2 C Library"
|
||||
DESCRIPTION="nghttp2 is an implementation of HTTP/2 and its header compression \
|
||||
algorithm HPACK in C."
|
||||
HOMEPAGE="https://nghttp2.org/"
|
||||
COPYRIGHT="2012-2018 Tatsuhiro Tsujikawa & nghttp2 contributors"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/nghttp2/nghttp2/releases/download/v$portVersion/nghttp2-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="700a89d59fcc55acc2b18184001bfb3220fa6a6e543486aca35f40801cba6f7d"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
libVersion=14.16.2
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
nghttp2$secondaryArchSuffix = $portVersion
|
||||
lib:libnghttp2$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
nghttp2${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libnghttp2$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
nghttp2$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 nghttp2$secondaryArchSuffix \
|
||||
"$libDir"/libnghttp2.so.$libVersion
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure \
|
||||
--enable-lib-only \
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
rm -f "$libDir"/libnghttp2.la
|
||||
|
||||
rm -rf "$manDir"/man1
|
||||
|
||||
prepareInstalledDevelLib libnghttp2
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
"$developDir"
|
||||
|
||||
rmdir "$manDir"
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user