# -*- 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.32
github.tarball_from releases
categories          textproc
license             GPL-2
maintainers         nomaintainer
platforms           darwin

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  331174baa5d89a5645cd6595be37da83a68dca93 \
                    sha256  b225adf2da99ab26b039d675c446018bb33815f47aae898cf0bc18cb4ef5222c \
                    size    986604

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

wxWidgets.use       wxWidgets-3.0

depends_build-append \
                    port:gettext

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

compiler.cxx_standard   2014

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