# $Id: Portfile,v 1.3 2004/04/15 08:47:41 mww Exp $

PortSystem 1.0

name		Gomoku
version		1.2.6
categories	games aqua gnustep
platforms	darwin
maintainers	mww@opendarwin.org
description	extended TicTacToe game
long_description	Gomoku.app is an extended TicTacToe game for GNUstep. \
			You win the game if you are able to put 5 of your \
			pieces in a row, column or diagonal. You loose if the \
			computer does it before you. You can play the game on \
			boards of different size\; the default size is 8 but \
			10 is also nice to play. The game has 6 different \
			difficulty levels.

homepage	http://www.gnustep.it/nicola/Applications/Gomoku/
master_sites	${homepage}:s \
		http://www.opendarwin.org/~mww/files/:p
distfiles	${distname}${extract.suffix}:s \
		${distname}_aqua${extract.suffix}:p
checksums	${distname}${extract.suffix} \
			md5 a6be66bed95483ecc6cfbde1ae746435 \
		${distname}_aqua${extract.suffix} \
			md5 0ed8a07fd4c2455651a6a5b630165b88
patchfiles	patch-Board.m.diff \
		patch-Controller.h.diff \
		patch-Controller.m.diff \
		patch-GomokuInfo.plist.diff \
		patch-main.m.diff

use_configure	no

post-extract	{
	file copy ${workpath}/English.lproj/MainMenu.nib \
		${worksrcpath}/English.lproj
	file copy ${workpath}/French.lproj/MainMenu.nib \
		${worksrcpath}/French.lproj
	file copy ${workpath}/German.lproj/MainMenu.nib \
		${worksrcpath}/German.lproj
	file copy ${workpath}/Italian.lproj/MainMenu.nib \
		${worksrcpath}/Italian.lproj
	file copy ${workpath}/Spanish.lproj/MainMenu.nib \
		${worksrcpath}/Spanish.lproj
	file copy ${workpath}/Swedish.lproj/MainMenu.nib \
		${worksrcpath}/Swedish.lproj
	file copy ${workpath}/GNUstep.h ${workpath}/about.png \
		${workpath}/Gomoku.pbproj ${worksrcpath}
}

build.type	pbx
build.target

destroot	{
	file mkdir ${destroot}/Applications/DarwinPorts
	file copy ${worksrcpath}/build/Gomoku.app \
		${destroot}/Applications/DarwinPorts
}
