SUMMARY="Metal Blob Solid is a 2D platform game"
DESCRIPTION="Since their world was invaded by an alien race, the Blobs have \
faced a lifetime of war. But now they have a chance to win the war once and \
for all. In Blob Wars: Metal Blob Solid, you take on the role of a fearless \
Blob agent, Bob. Bob's mission is to infiltrate the various enemy bases around \
the Blobs' homeworld and rescue as many MIAs as possible. But standing in his \
way are many vicious aliens, other Blobs who have been assimilated and the \
evil alien leader, Galdov."
HOMEPAGE="http://www.parallelrealities.co.uk/p/blob-wars-metal-blob-solid.html"
SOURCE_URI="http://sourceforge.net/projects/blobwars/files/blobwars-1.19.tar.gz"
CHECKSUM_SHA256="f9bafe59ead9e370ceaba4aae3d280241bf05fa06c8ae006eec0322c2fe9e2ed"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2004, 2005 Milan Babuskov"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PATCHES="blobwars-1.19.patch"

PROVIDES="
	blobwars = $portVersion
	app:blobwars = $portVersion
	"
REQUIRES="
	haiku
	lib:libsdl
	lib:libSDL_mixer
	lib:libSDL_image
	lib:libSDL_net
	lib:libSDL_ttf
	lib:libintl
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL
	devel:libSDL_mixer
	devel:libSDL_image
	devel:libSDL_net
	devel:libSDL_ttf
	devel:libz
	devel:libintl
	"

BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/BlobWars/{data,doc,icons,sound,gfx,locale}
	
	cp blobwars $appsDir/BlobWars/
	cp -r data/* $appsDir/BlobWars/data/
	cp -r doc $appsDir/BlobWars/
	cp -r icons $appsDir/BlobWars/
	cp -r sound $appsDir/BlobWars/
	cp -r gfx $appsDir/BlobWars/
	cp -r locale $appsDir/BlobWars/
	
	addAppDeskbarSymlink $appsDir/BlobWars/blobwars BlobWars
}
