mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 14:38:51 +02:00
74 lines
1.7 KiB
Bash
74 lines
1.7 KiB
Bash
SUMMARY="Character set guessing library"
|
|
DESCRIPTION="Libguess is a high speed, open source character set encoding \
|
|
detector. Libguess employs discrete-finite automata to deduce the character \
|
|
set of the input buffer. The advantage of this is that all character sets can \
|
|
be checked in parallel, and quickly."
|
|
HOMEPAGE="https://github.com/kaniini/libguess"
|
|
COPYRIGHT="2000-2003 Shiro Kawai
|
|
2009-2013 Tony Vroon"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="3"
|
|
srcGitRev="b44a240c57ddce98f772ae7d9f2cf11a5972d8c2"
|
|
SOURCE_URI="https://github.com/kaniini/libguess/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="ae110f2fe4f93837720f04232348498d8c84af32db352d01a02e50609c643e22"
|
|
SOURCE_DIR="libguess-$srcGitRev"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libguess$secondaryArchSuffix = $portVersion compat >= 1.2
|
|
lib:libguess$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libguess${secondaryArchSuffix}_devel = $portVersion compat >= 1.2
|
|
devel:libguess$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libguess$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libiconv$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:gettext
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLib libguess
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make -C src/tests/testbench
|
|
}
|