# -*- 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        akinomyoga cxxmatrix f338ed434e3f759e9be9dd8e0212e9e4a895d2a9
github.tarball_from archive
version             20220322
revision            0

description         C++ Matrix: The Matrix Reloaded in Terminals

long_description    {*}${description}. (Number falls, Banners, Matrix rains, \
                    Conway's Game of Life and Mandelbrot set). Features \
                    Hankaku kana characters as in the original film, ten \
                    levels of green using terminal 256 color support, \
                    twinkling effects by adding random brightness \
                    fluctuations, and diffused reflection effects by cell \
                    background colors.

categories          games graphics
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           darwin linux freebsd

checksums           rmd160  1ae6c35a3599167b74d0dafc985f2de9c529fc04 \
                    sha256  f7e0db9cb358b54970aebef8ae01c78b13326de7afed34abc3c2db0c660f22fa \
                    size    30846

compiler.cxx_standard       2017

depends_build-append        port:gawk

patch {
    # Install license text to share/cxxmatrix instead of
    # share/licenses/cxxmatrix
    reinplace -E \
        "s|share/licenses/${name}|share/${name}|g" ${worksrcpath}/GNUmakefile
}