Files
haikuports/dev-libs/uriparser/uriparser-0.8.5.recipe

81 lines
1.8 KiB
Bash

SUMMARY="A strictly RFC 3986 compliant URI parsing library in C"
DESCRIPTION="Uriparser is a strictly RFC 3986 compliant URI parsing library \
written in C."
HOMEPAGE="https://uriparser.github.io/"
COPYRIGHT="2007 Weijia Song
2013 Radu Hociung
2007-2018 Sebastian Pipping"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="https://github.com/uriparser/uriparser/releases/download/uriparser-$portVersion/uriparser-$portVersion.tar.bz2"
CHECKSUM_SHA256="58eacd5c03d9e341c04eb0b30831faec89f3b415949ff8d72254e63432352cdd"
PATCHES="uriparser-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="1.0.21"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
uriparser$secondaryArchSuffix = $portVersion
lib:liburiparser$secondaryArchSuffix = $libVersionCompat
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:uriparse = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
uriparser${secondaryArchSuffix}_devel = $portVersion
devel:liburiparser$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
uriparser$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
"
defineDebugInfoPackage uriparser$secondaryArchSuffix \
"$libDir"/liburiparser.so.$libVersion
BUILD()
{
autoreconf
runConfigure ./configure --disable-test --disable-doc
make $jobArgs
}
INSTALL()
{
make install
rm -f "$libDir"/liburiparser.la
if [ -n "$secondaryArchSuffix" ]; then
rm -rf "$binDir"
fi
prepareInstalledDevelLib liburiparser
fixPkgconfig
packageEntries devel \
"$developDir"
}