# -*- 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.2.11
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  1ffd7df0f632851ec28d78291286c2736dd840a4 \
                    sha256  d81140eea5c69d14b0cfb63816d4b4c9e18fba51f5267de5b1539f468939e9bd \
                    size    811399

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