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

# clock_gettime, strndup
legacysupport.newest_darwin_requires_legacy 15

github.setup            tio tio 3.8 v
github.tarball_from     releases
revision                0

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

homepage                https://tio.github.io

description             Simple TTY terminal I/O application
long_description        tio is a simple serial device tool which \
                        features a straightforward command-line \
                        and configuration file interface to easily \
                        connect to serial TTY devices for basic \
                        I/O operations.

checksums               rmd160  2c0fd538959429ad0e34c2bd80d5da6a1ba6cd5c \
                        sha256  a24c69e59b53cf72a147db2566b6ff3b6a018579684caa4b16ce36614b2b68d4 \
                        size    3460060

depends_build-append    path:bin/pkg-config:pkgconfig

depends_lib-append      path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        port:inih   \
                        port:lua54

use_xz                  yes

# cc1: error: unrecognized command line option "-Wno-unused-result"
# powerpc-apple-darwin10-gcc-4.2.1: : No such file or directory
compiler.blacklist-append \
                        *gcc-4.0 *gcc-4.2

post-destroot {
    xinstall -d ${destroot}${prefix}/share/${name}
    copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
}
