mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
96 lines
2.3 KiB
Bash
96 lines
2.3 KiB
Bash
SUMMARY="Common code base for all Kiwix ports"
|
|
DESCRIPTION="The Libkiwix provides the Kiwix software suite core. It contains the code shared by \
|
|
all Kiwix ports (Windows, GNU/Linux, macOS, Android, iOS, ...)."
|
|
HOMEPAGE="https://github.com/kiwix/libkiwix"
|
|
COPYRIGHT="2022 Kiwix contributors"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ec17342874e0444cc6585ab3f55447e139357128defb3f391b78bd3b24915123"
|
|
PATCHES="libkiwix-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libkiwix$secondaryArchSuffix = $portVersion
|
|
cmd:kiwix_compile_i18n = $portVersion
|
|
cmd:kiwix_compile_resources = $portVersion
|
|
lib:libkiwix$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libgnutls$secondaryArchSuffix
|
|
lib:libicui18n$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:libmicrohttpd$secondaryArchSuffix
|
|
lib:libpugixml$secondaryArchSuffix
|
|
lib:libxapian$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libzim$secondaryArchSuffix
|
|
lib:libzstd$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libkiwix${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libkiwix$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libkiwix$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:mustache$secondaryArchSuffix
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libgnutls$secondaryArchSuffix
|
|
devel:libgtest$secondaryArchSuffix
|
|
devel:libicui18n$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libmicrohttpd$secondaryArchSuffix
|
|
devel:libpugixml$secondaryArchSuffix
|
|
devel:libxapian$secondaryArchSuffix
|
|
devel:libzim$secondaryArchSuffix
|
|
devel:libzstd$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export LDFLAGS="-lnetwork"
|
|
meson --buildtype=release build \
|
|
--prefix=$prefix \
|
|
--includedir=$includeDir \
|
|
--libdir=$libDir \
|
|
--mandir=$manDir
|
|
ninja -C build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLib libkiwix
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
ninja -C build test
|
|
}
|