# -*- 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           makefile 1.0

name                bs
version             2.13
revision            0

homepage            http://www.catb.org/~esr/bs/

categories          games
license             GPL-2
maintainers         nomaintainer
description         ncurses version of Battleship
long_description \
    The classic game of Battleships against the computer. Uses \
    character-cell graphics with a visual point-and-shoot interface. \
    If you're using an xterm under Linux the mouse will work.

master_sites        ${homepage}

checksums           rmd160  46c7fa6c92a8a8b10fd74c69e7da3bc3e74d3f3d \
                    sha256  7ed6385c0e953d66171f3acf2a49b03f9c29e31f3b4739994702564cc32e32ed \
                    size    14242

patch {
    reinplace "s|/usr|${prefix}|g" ${worksrcpath}/Makefile
}

build.target        ${name}

makefile.has_destdir \
                    yes

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
