# -*- 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           legacysupport 1.1
PortGroup           wxWidgets 1.0

github.setup        rzvncj xchm 1.37
revision            0
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  3d19178b89926deabe50b1b0f397c3ff77a4415e \
                    sha256  c6f059a70cb97c49f5dbe16165c25afdb2e7ea3964027dcc1d2eebfc2608a786 \
                    size    893765
github.tarball_from releases

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

wxWidgets.use       wxGTK-3.2

depends_build-append \
                    port:gettext

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

depends_run-append  port:desktop-file-utils

compiler.cxx_standard   2014

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

post-activate {
    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
}
