# $Id: Portfile 70626 2010-08-15 14:06:35Z ryandesign@macports.org $

PortSystem          1.0

name                xboard
version             4.4.3
categories          games
maintainers         nomaintainer
platforms           darwin
license             GPL-3+

description         X frontend for Crafty, GNUChess, Internet Chess Servers, \
                    or e-mail chess

long_description    Xboard is a graphical chessboard that can serve as a user \
                    interface for Crafty, GNU Chess, for Internet Chess \
                    Servers, or for electronic mail correspondence chess. \
                    xboard can also be used by itself.

homepage            http://www.gnu.org/software/xboard/
master_sites        gnu

checksums           md5     6b30535c0883205d23d389b12c1295a8 \
                    sha1    bcc7ce76475ac70d306e89ee8cf87496f6e7cd26 \
                    rmd160  e56694324acaf671d3dc4480aefe83fda89a7138

depends_lib         port:xorg-libXaw

configure.args      --enable-zippy

destroot.destdir    prefix=${destroot}${prefix} \
                    mandir=${destroot}${prefix}/share/man

platform darwin {
    depends_build-append port:libtool
    pre-configure {
        copy -force ${prefix}/share/libtool/config/config.guess ${prefix}/share/libtool/config/config.sub ${worksrcpath}
    }
}
