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

name            gnuchess
version         6.3.0
revision        0
categories      games
platforms       darwin freebsd
maintainers     {khindenburg @kurthindenburg} openmaintainer

license         GPL-3+

description     GNU Chess is a chess-playing program.
long_description    ${description} It can be used to play chess \
                    against the computer on a terminal or, more \
                    commonly, as a chess engine for graphical chess \
                    frontends such as XBoard.

homepage        https://www.gnu.org/software/chess
master_sites    gnu:chess

depends_lib-append      port:readline port:ncurses

checksums           rmd160  7d3986d2088bc665e2140f764419183df4ec3074 \
                    sha256  0b37bec2098c2ad695b7443e5d7944dc6dc8284f8d01fcc30bdb94dd033ca23a \
                    size    835620

post-patch {
    # Fix "/bin/sh: .././install-sh: Permission denied"
    file attributes ${worksrcpath}/install-sh -permissions a+x
}
