SUMMARY="Form groups of four puyos of the same color"
DESCRIPTION="If you don't believe in Tetris games anymore, FloboPuyo will make \
you change your mind. Its funny puyos and legendary opponents know how to heat \
the game every time. Don't forget to develop your skills in secret before \
challenging your friends with the multi-player mode."
HOMEPAGE="http://www.ios-software.com/flobopuyo-en"
COPYRIGHT="2015 Fovea"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://archive.ubuntu.com/ubuntu/pool/universe/f/flobopuyo/flobopuyo_0.20.orig.tar.gz"
CHECKSUM_SHA256="bcad1be163b597b71d7dec33891e96fae85a0c09ecba6b7e70707d30af1eceb2"
SOURCE_DIR="flobopuyo-0.20.orig"
PATCHES="flobopuyo-$portVersion.patchset"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	flobopuyo = $portVersion
	app:Flobopuyo
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	lib:libSDL_image_1.2
	lib:libSDL_mixer_1.2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL
	devel:libSDL_image
	devel:libSDL_mixer
	"
BUILD_PREREQUIRES="
	cmd:bison
	cmd:dos2unix
	cmd:flex
	cmd:gcc
	cmd:make
	"

BUILD()
{
	dos2unix SDL_prim.h scenar.y
	make $jobArgs PREFIX=$appsDir DATADIR=$dataDir \
		INSTALL_BINDIR='$(PREFIX)' INSTALL_DATADIR='$(DATADIR)'
}

INSTALL()
{
	make install PREFIX=$appsDir DATADIR=$dataDir \
		INSTALL_BINDIR='$(PREFIX)' INSTALL_DATADIR='$(DATADIR)'
	mv $appsDir/flobopuyo $appsDir/Flobopuyo
	addAppDeskbarSymlink $appsDir/Flobopuyo
}
