# -*- 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        velorek1 fread b04add6e5ac23281051b8946c0f867b1b53ec5c5
version             2024.08.26
revision            0
categories          textproc sysutils
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         TUI Text file viewer
long_description    {*}${description}, written in C
checksums           rmd160  540ca2378f8618bcc4f979328bb22e83b5319fe4 \
                    sha256  465b7df1ee858206d98bd4b3c9938d075369474b5ccc99b8a5c54abc2f64e51f \
                    size    57543
github.tarball_from archive

post-patch {
    reinplace "s|CFLAGS =|CFLAGS +=|" ${worksrcpath}/Makefile
}

compiler.c_standard 2011

destroot {
    copy ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
