# -*- 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

name                libt3widget
version             1.2.2
revision            0

homepage            https://os.ghalkes.nl/

description         The ${name} library provides a C++ dialog toolkit.

long_description    \
    {*}${description} It provides objects for dialogs and widgets like \
    buttons, text fields, check boxes etc., to facilitate easy construction \
    of dialog based programs for Un*x terminals.

categories          devel
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  2ab0839cba41200727b1138d7573315d9a14a738 \
                    sha256  9eb7e1d0ccdfc917f18ba1785a2edb4faa6b0af8b460653d962abf91136ddf1c \
                    size    175406

depends_build-append \
                    port:libtool \
                    port:pkgconfig

depends_lib-append  port:libt3config    \
                    port:libt3key       \
                    port:libtranscript  \
                    port:libt3window    \
                    port:libunistring   \
                    port:pcre2          \
                    port:xorg-libxcb

master_sites        ${homepage}/dist/
distname            ${name}-${version}
use_bzip2           yes

# libt3widget requires a C++11 compatible compiler
compiler.cxx_standard   2011

patchfiles-append   patch-menu.cc.diff

configure.env-append \
                    LIBTOOL=${prefix}/bin/glibtool
configure.args-append \
                    --without-gettext
