Files
haikuports/dev-libs/litehtml/litehtml-0.9.recipe
DigitalBox98 a6e0ea96c6 Litehtml : tentative to port (#11874)
* Litehtml : tentative to port

* Fix recipe for liblitehtml

* Fix recipe for devel part

* Add libgumbo

* Fix container include

* Remove container part

---------

Co-authored-by: DigitalBox98 <digitalbox098@gmail.com>
2025-03-08 07:59:57 +00:00

70 lines
1.5 KiB
Bash

SUMMARY="Lightweight HTML/CSS rendering engine"
DESCRIPTION="
Litehtml is lightweight HTML/CSS rendering engine. The main goal of the \
litehtml library is to give the developers the easy way to show the HTML pages \
in theirs applications."
HOMEPAGE="http://www.litehtml.com/"
COPYRIGHT="2013-2025 Aliaksei Chapyzhenka"
LICENSE="BSD (2-clause)"
REVISION="1"
SOURCE_URI="https://github.com/litehtml/litehtml/archive/refs/tags/v0.9.tar.gz"
CHECKSUM_SHA256="ef957307da15b1258a70961942840bcf54225a8d75315dcbc156186eba35b1a7"
PATCHES="litehtml-0.9.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
litehtml$secondaryArchSuffix = $portVersion
lib:libgumbo$secondaryArchSuffix
lib:liblitehtml$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
litehtml${secondaryArchSuffix}_devel = $portVersion
devel:libgumbo$secondaryArchSuffix
devel:liblitehtml$secondaryArchSuffix
"
REQUIRES_devel="
litehtml$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DBUILD_SHARED_LIBS=ON \
-DLITEHTML_BUILD_TESTING=OFF
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLibs libgumbo \
liblitehtml
packageEntries devel \
$developDir \
$libDir/cmake
}