mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
68 lines
1.6 KiB
Bash
68 lines
1.6 KiB
Bash
SUMMARY="Library to implement Cangjie input method"
|
|
DESCRIPTION="This is the C library implementing the Cangjie input method."
|
|
HOMEPAGE="https://gitlab.freedesktop.org/cangjie/libcangjie"
|
|
COPYRIGHT="2013 The LibCangjie authors"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="https://gitlab.freedesktop.org/cangjie/libcangjie/-/archive/v${portVersion}/ibcangjie-v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="629e53bfb26f0939bd11e71e2ff42e38d4456721ea96971646edd26228109242"
|
|
SOURCE_DIR="libcangjie-v$portVersion-a6e65884879315f7a2677528691e9c866cc2e391"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="2.0.1"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libcangjie$secondaryArchSuffix = $portVersion
|
|
cmd:libcangjie_bench
|
|
cmd:libcangjie_cli
|
|
cmd:libcangjie_dbbuilder
|
|
lib:libcangjie$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libsqlite3$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libcangjie${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libcangjie$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libcangjie$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libsqlite3$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
./autogen.sh
|
|
runConfigure ./configure --disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libcangjie.la
|
|
|
|
prepareInstalledDevelLib libcangjie
|
|
|
|
fixPkgconfig
|
|
|
|
packageEntries devel $developDir
|
|
}
|