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

github.setup        deadpixi mtm 1.2.1
revision            0
github.tarball_from archive

description         Perhaps the smallest useful terminal multiplexer in the \
                    world.

long_description    mtm is the Micro Terminal Multiplexer, a terminal \
                    multiplexer. It has four major features/principles: \
                    Simplicity, Compatibility, Small Size and Stability

checksums           rmd160  f8d3f06b2d5ce9ac4c30aca7b5f5b8ad26f703b7 \
                    sha256  2ae05466ef44efa7ddb4bce58efc425617583d9196b72e80ec1090bd77df598c \
                    size    383409

categories          sysutils
installs_libs       no
license             GPL-3+
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           darwin linux

depends_lib-append  port:ncurses

# vtparser.c:123: error: ‘for’ loop initial declaration used outside C99 mode
configure.cflags-append \
                    -std=c99

destroot {
    xinstall -m 755 ${worksrcpath}/mtm   ${destroot}${prefix}/bin/
    xinstall -m 644 ${worksrcpath}/mtm.1 ${destroot}${prefix}/share/man/man1/
}
