# $Id: Portfile,v 1.5 2004/01/16 20:22:34 fkr Exp $

PortSystem 1.0
name		xboard
version		4.2.6
revision	0
categories	games
maintainers	darwinports@opendarwin.org
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.tim-mann.org/xboard.html
platforms	darwin
master_sites	\
	http://mirrors.kernel.org/gnu/xboard/
checksums	md5 1d6e38c61277eed6ad7af352586b37d5
depends_lib	lib:libX11.6:XFree86 lib:libfreetype.6:freetype
destroot.destdir	prefix=${destroot}${prefix}

variant darwin {
	pre-configure {
		file copy -force /usr/share/libtool/config.guess ${worksrcpath}/  
		file copy -force /usr/share/libtool/config.sub ${worksrcpath}/  
	}
	configure.env	CPPFLAGS=-no-cpp-precomp
}
