SUMMARY="Egg Chess"
DESCRIPTION="This game is similar to Tic-Tac-Toe. \
However, instead of using Xs and Os, you use different egg forms. \
What's more, you can actually change a square with something else. \
The first one to get three-in-a-row with the same egg form wins."
HOMEPAGE="http://www.haikuware.com/directory/view-details/development/games/egg-chess-ppc"
SOURCE_URI="https://codeload.github.com/HaikuArchives/EggChess/zip/feature"
CHECKSUM_SHA256="67b8a6061169031493103d0a32dbdcd3af3c69d540cf1294e249e199eb140bc0"
SOURCE_DIR="EggChess-feature"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1999-2000 Anders Lindström"
 
ARCHITECTURES="x86 x86_gcc2"
 
PROVIDES="
	eggchess = $portVersion
	app:eggchess= $portVersion
	"
 
REQUIRES="
        haiku
        lib:libsdl
	 lib:libsdl_mixer
        "
 
BUILD_REQUIRES="
        haiku_devel
        devel:libsdl
	 devel:libsdl_mixer
        "

BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
"
 
BUILD()
{	
	cd src
	mkdir -p objects
	make $jobArgs
}
 
INSTALL()
{
	mkdir -p $appsDir/EggChess
	cd $sourceDir
	cp eggchess.x86 $appsDir/EggChess
	cp -r gfx docs $appsDir/EggChess
	addAppDeskbarSymlink $appsDir/EggChess/eggchess.x86 EggChess
}
