# -*- 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.5 v github.tarball_from releases revision 1 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 b01bafa56008a38e9e43dc4b4963b8af19dfac1d \ sha256 efd3e9a406f827ac22d4157e345079dde15ee5a948b24156561d6c97a54e6ec0 \ size 3456676 # https://lists.apple.com/archives/macnetworkprog/2002/Dec/msg00091.html # After (!) 18 years, it has only been implemented in macOS Big Sur if {${os.platform} eq "darwin" && ${os.major} < 20} { post-patch { reinplace "s|MSG_NOSIGNAL|SO_NOSIGPIPE|" \ ${worksrcpath}/src/socket.c } } 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 post-destroot { xinstall -d ${destroot}${prefix}/share/${name} copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name} }