mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-20 02:30:05 +02:00
86 lines
1.8 KiB
Bash
86 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="1"
|
|
SOURCE_URI="https://github.com/uriparser/uriparser/releases/download/uriparser-$portVersion/uriparser-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="75248f3de3b7b13c8c9735ff7b86ebe72cbb8ad043291517d7d53488e0893abe"
|
|
PATCHES="uriparser-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="1.0.24"
|
|
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"
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|