# -*- 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           app 1.0
PortGroup           github 1.0
PortGroup           wxWidgets 1.0

github.setup        rzvncj xchm 1.38
github.tarball_from releases
categories          textproc
license             GPL-2
maintainers         nomaintainer

description         A cross-platform GUI front-end to chmlib.
long_description    A cross-platform GUI front-end to chmlib, xCHM can \
                    show the content tree if one is available, print pages, \
                    change font face and size, remember bookmarks, display \
                    a searchable index, and search for words in the current \
                    page and the whole book.

checksums           rmd160  dbf9b1a636ea55d2ddd8815cc0422fca2192a2a0 \
                    sha256  a7a8c92181b84071884cad219fbeecf861c1344c85511c762431f1f4c455d711 \
                    size    886802

app.name            xCHM
app.executable      xchm
app.icon            ${worksrcpath}/art/128x128/apps/xchm.png

wxWidgets.use       wxWidgets-3.2

patchfiles          window.patch

depends_build-append \
                    port:gettext

depends_lib-append  port:chmlib \
                    port:${wxWidgets.port}

compiler.cxx_standard   2017

configure.args      --with-wxdir=${wxWidgets.wxdir}
