Files
haikuports/dev-libs/libthai/libthai-0.1.29.recipe
Joachim Mairböck 30c59f4219 libthai: new recipe
2025-01-03 19:30:57 +01:00

97 lines
2.4 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="Thai language support routines"
DESCRIPTION="LibThai is a set of Thai language support routines aimed to ease developers tasks \
to incorporate Thai language support in their applications. It includes important Thai-specific \
functions e.g. word breaking, input and output methods as well as basic character and string \
supports. LibThai is an Open Source and collaborative effort initiated by Thai Linux Working \
Group and opened for all contributors.
LibThai includes Thai language support routines:
* Thai character set support: TIS 620, ISO/IEC 10646
* Thai character properties
* Thai string manipulators
* Thai string collation
* Thai word breaking
* Thai input method
* Thai output method"
HOMEPAGE="https://linux.thai.net/projects/libthai/"
COPYRIGHT="2001-2021 Theppitak Karoonboonyanan and others."
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/tlwg/libthai/releases/download/v$portVersion/libthai-$portVersion.tar.xz
https://linux.thai.net/pub/thailinux/software/libthai/libthai-$portVersion.tar.xz"
CHECKSUM_SHA256="fc80cc7dcb50e11302b417cebd24f2d30a8b987292e77e003267b9100d0f4bcd"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.3.1"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
libthai$secondaryArchSuffix = $portVersion
lib:libthai$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libdatrie$secondaryArchSuffix
"
PROVIDES_devel="
libthai${secondaryArchSuffix}_devel = $portVersion
devel:libthai$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
libthai$secondaryArchSuffix == $portVersion base
devel:libdatrie$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libdatrie$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:doxygen
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:trietool$secondaryArchSuffix
"
TEST_REQUIRES="
cmd:cmp
devel:libiconv$secondaryArchSuffix
"
defineDebugInfoPackage libthai$secondaryArchSuffix \
$libDir/libthai.so.$libVersion
BUILD()
{
runConfigure ./configure --disable-static --with-html-docdir=$docDir/html
make $jobArgs
}
INSTALL()
{
make install
# remove libtool fille
rm $libDir/libthai.la
prepareInstalledDevelLib libthai
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$documentationDir
}
TEST()
{
# tests don't build with gcc2
make LIBS=-liconv check
}