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

# clock_gettime: not strictly required, but the build checks for it.
legacysupport.newest_darwin_requires_legacy 15

name                ipbt
version             20240909.a852474
categories          sysutils
maintainers         {khindenburg @kurthindenburg} openmaintainer

description         a high-tech ttyrec player for Unix
long_description    \
    ipbt plays ttyrec files and works by embedding a terminal emulator \
    (PuTTY). The input file is read in full and run through the internal \
    terminal emulator, and the resulting screen states are saved in an \
    internal movie array in such a way that any screen state ('frame') \
    can be retrieved efficiently.

license             MIT
homepage            https://www.chiark.greenend.org.uk/~sgtatham/ipbt/
master_sites        ${homepage}

checksums           rmd160  12f1b1b7cb0361f88ac0128284f9009c4575628c \
                    sha256  89d95b6c806461ac0dc2096732e266dfb288d08cd8cbe68df83cea9fe0895bfe \
                    size    359455

patchfiles          patch-remove-ncursesw.diff

depends_build-append \
                    port:perl5

depends_lib         port:ncurses

cmake.build_type    Debug

# https://trac.macports.org/ticket/66737
compiler.c_standard 2011

# This software requires NDEBUG to not be set
variant debug description {Use debug, required here} {}

default_variants +debug

post-destroot {
    copy ${worksrcpath}/ipbt.1 ${destroot}${prefix}/share/man/man1/
}

livecheck.regex     ${name}-(\[0-9.a-z\]*)${extract.suffix}
