# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

github.setup        litehtml litebrowser-linux 0e7c315170ccff16248424989eaf71dfaa86024e
revision            0
checksums           rmd160  a4efbe80172d560da9f6565d375e9ac962ad9cd5 \
                    sha256  389a01bdc4a934c354d4d7cc8b726a77caf2f13871114a8c2bcaddabc5f5bbad \
                    size    14157
github.tarball_from archive

name                litebrowser
version             0.0.0-20240331

categories          www
maintainers         {ryandesign @ryandesign} openmaintainer
license             BSD

description         a simple web browser based on litehtml

long_description    ${name} is a minimal web browser intended \
                    primarily to demonstrate the capabilities \
                    of the litehtml rendering engine.

github.tarball_from archive

depends_build-append \
                    port:pkgconfig

depends_lib-append  path:lib/pkgconfig/cairo.pc:cairo \
                    port:curl \
                    port:fontconfig \
                    path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    port:gtkmm3 \
                    port:litehtml \
                    path:lib/pkgconfig/pango.pc:pango \
                    port:poco

patchfiles-append   litehtml.patch

compiler.c_standard 1999
compiler.cxx_standard \
                    2014

# There is no `make install'.
destroot {
    xinstall ${build.dir}/${name} ${destroot}${prefix}/bin

    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE ${destroot}${docdir}
}
