SUMMARY="A Go-playing program"
DESCRIPTION="GNU Go is a free program that plays the game of Go. GNU Go has played \
thousands of games on the NNGS Go server. GNU Go is now also playing regularly on \
the Legend Go Server in Taiwan, on the WING server in Japan, and many volunteers \
run GNU Go clients on KGS. GNU Go has established itself as the leading \
non-commercial go program in the recent tournaments that it has taken part in."
HOMEPAGE="https://www.gnu.org/software/gnugo/"
COPYRIGHT="1989-2009 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://ftp.gnu.org/gnu/gnugo/gnugo-$portVersion.tar.gz"
CHECKSUM_SHA256="da68d7a65f44dcf6ce6e4e630b6f6dd9897249d34425920bfdd4e07ff1866a72"

ARCHITECTURES="all"

PROVIDES="
	gnugo = $portVersion
	cmd:gnugo = $portVersion
	"
REQUIRES="
	haiku
	lib:libiconv
	lib:libintl
	lib:libncurses
	lib:libreadline
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libiconv
	devel:libintl
	devel:libncurses
	devel:libreadline
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:g++
	cmd:gettext
	cmd:make
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	make check
}
