# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0

github.setup        dominikhackl ctris 0.43 v
github.tarball_from archive
categories          games
license             GPL-2
maintainers         nomaintainer

description         Ncurses based tetris clone written in C.
long_description \
    ctetris is a beautiful tetris clone, written in C using the ncurses \
    library. It works very fast and efficiently, so it should be possible to \
    play it even over a slow remote terminal.

checksums           rmd160  f30c7cda4849a49d6fc5587b30002fb5808432d5 \
                    sha256  21f19ea3402a19ba993affe2e7c322b8806b94e459cb710a4b33d6aa7add31a8 \
                    size    16663

#remove patch-version at the next update
patchfiles          patch-Makefile.diff \
                    patch-version.diff

configure {
    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/Makefile
    reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/Makefile
    reinplace "s|__CFLAGS__|${configure.cflags} [get_canonical_archflags cc]|" ${worksrcpath}/Makefile
}

github.livecheck.regex \
                    {([0-9.]+)}

