mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
81 lines
1.7 KiB
Bash
81 lines
1.7 KiB
Bash
SUMMARY="Line and word breaking library"
|
|
DESCRIPTION="An implementation of the line breaking and word breaking \
|
|
algorithms as described in Unicode Standard Annex 14 and Unicode Standard \
|
|
Annex 29."
|
|
HOMEPAGE="http://vimgadgets.sourceforge.net/libunibreak/"
|
|
COPYRIGHT="2022 Andreas Röver"
|
|
LICENSE="Zlib"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/adah1972/libunibreak/releases/download/libunibreak_${portVersion//./_}/libunibreak-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="dd1a92d4c5646aa0e457ff41d89812ec5243863be6c20bbcb5ee380f3dd78377"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.0.1"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libunibreak$secondaryArchSuffix = $portVersion
|
|
lib:libunibreak$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libunibreak${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libunibreak$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libunibreak$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:cmp
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cmd:wget
|
|
"
|
|
|
|
defineDebugInfoPackage libunibreak$secondaryArchSuffix \
|
|
"$libDir"/libunibreak.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure --disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm $libDir/*.la
|
|
|
|
# prepare develop/lib
|
|
prepareInstalledDevelLib libunibreak
|
|
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|