0
0
Fork 0
haikuports/dev-libs/libfstrcmp/libfstrcmp-0.7.recipe

85 lines
1.9 KiB
Bash

SUMMARY="Make fuzzy comparisons of strings and byte arrays"
DESCRIPTION="The fstrcmp project provides a library that is used to make \
fuzzy comparisons of strings and byte arrays, including multi-byte \
character strings.
This can be useful in error messages, enabling the suggestion of likely \
valid alternatives. In compilers, this can reduce the cascade of secondary \
errors."
HOMEPAGE="http://fstrcmp.sourceforge.net/"
COPYRIGHT="2009 Peter Miller"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://fstrcmp.sourceforge.net/fstrcmp-$portVersion.D001.tar.gz"
CHECKSUM_SHA256="e4018e850f80700acee8da296e56e15b1eef711ab15157e542e7d7e1237c3476"
SOURCE_FILENAME="libfstrcmp-$portVersion.tar.gz"
SOURCE_DIR="fstrcmp-$portVersion.D001"
ARCHITECTURES="all ?x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.6.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libfstrcmp$secondaryArchSuffix = $portVersion
cmd:fstrcmp$secondaryArchSuffix = $portVersion
lib:libfstrcmp$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libfstrcmp${secondaryArchSuffix}_devel = $portVersion
devel:libfstrcmp$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libfstrcmp$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:groff
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:ps2pdf
cmd:refer
cmd:soelim
"
defineDebugInfoPackage libfstrcmp$secondaryArchSuffix \
"$libDir"/libfstrcmp.so.$libVersion
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
# Cleanup
rm -rf $libDir/*.la
# prepare develop/lib
prepareInstalledDevelLibs libfstrcmp
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make test
}