SUMMARY="A strategy game simulating a world wide war"
DESCRIPTION="\"What Went Wrong? it's a World Wide War!\" features a worldmap \
with every single country on this planet including Swaziland (great hello to \
all of you Swaziland BeOS users). It has real data for every country in the \
world (at least in the 70's), including population, PNB etc.
Using the editor, you can let the computer play alone and turn it in kind of \
war simulation software.
"
HOMEPAGE="http://lema.link-u.com/be/"
SRC_URI="http://lema.link-u.com/be/W6Haiku.zip"
CHECKSUM_MD5="763e608d79ee6de6efe6dcb77600a331"
SRC_URI_2="http://lema.link-u.com/be/W6forR5-with-sources.zip"
CHECKSUM_MD5_2="4974a2ee05c68de6c5f7817d6be3bf97"
REVISION="1"
LICENSE="Public Domain"
COPYRIGHT="1998-1999 Santiago Lema"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	w6 = $portVersion
	app:w6 = $portVersion
	"
REQUIRES="
	haiku >= $haikuVersion
	"
BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:gcc
	"

SOURCE_DIR="W6Haiku"
SOURCE_DIR_2="W6"

PATCHES="w6-1.7.patch"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	ARCHITECTURE=$(echo $buildArchitecture | sed 's/_/-/g')
	
	APPDIR=$appsDir/W6
	mkdir -p $APPDIR
	cp -a objects.$ARCHITECTURE-release/W6Haiku $APPDIR/W6
	cp -r $sourceDir2/w6s $APPDIR
	cp -r $sourceDir2/help $APPDIR
	addAppDeskbarSymlink $APPDIR/W6
}
