mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
92 lines
2.4 KiB
Bash
92 lines
2.4 KiB
Bash
SUMMARY="Reference implementation of the ZIM specification"
|
|
DESCRIPTION="The Libzim is the reference implementation for the ZIM file format.
|
|
It's a software library to read and write ZIM files on many systems and architectures.
|
|
More information about the ZIM format and the openZIM project at https://openzim.org/."
|
|
HOMEPAGE="https://github.com/openzim/libzim"
|
|
COPYRIGHT="2016-2022 openZIM and contributors"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="5cce7a572a06c55f0c651553426fc51e579cd2078a85a00cb2f377390b420eac"
|
|
SOURCE_URI_2="https://github.com/openzim/zim-testing-suite/archive/refs/tags/v0.4.tar.gz"
|
|
CHECKSUM_SHA256_2="7a4f0c773e65be6fe49d3b2159bd9c0f051e8319932ebd3474db0f77f7ea9b27"
|
|
PATCHES="libzim-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libzim$secondaryArchSuffix = $portVersion
|
|
lib:libzim$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgtest$secondaryArchSuffix
|
|
lib:libicui18n$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:libxapian$secondaryArchSuffix
|
|
lib:libzstd$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libzim${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libzim$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libzim$secondaryArchSuffix == $portVersion base
|
|
devel:libicui18n$secondaryArchSuffix
|
|
devel:libicuuc$secondaryArchSuffix
|
|
devel:libicudata$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libxapian$secondaryArchSuffix
|
|
devel:libzstd$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgtest$secondaryArchSuffix
|
|
devel:libicui18n$secondaryArchSuffix
|
|
devel:libicuuc$secondaryArchSuffix
|
|
devel:libicudata$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libxapian$secondaryArchSuffix
|
|
devel:libzstd$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson . build --buildtype=release \
|
|
--prefix=$prefix \
|
|
--includedir=$includeDir \
|
|
--libdir=$libDir #--reconfigure
|
|
ninja -C build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libzim
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cp -r $sourceDir2/zim-testing-suite-0.4/data $sourceDir/build/test
|
|
ninja -C build test
|
|
}
|