SUMMARY="Port of the DOS game Syndicate Wars"
DESCRIPTION="Syndicate Wars presents a followup to the events in Syndicate \
taking place 95 years later (the year 2191). At the game's opening, the \
player-controlled syndicate (called EuroCorp) is at the peak of its power \
(achieved in the previous game), an alliance of corporations controlling the \
world through a combination of military and economic power, and \
technological mind control. Corporate decisions are facilitated through a \
number of AI entities connected through a global communications network.

Syndicate Wars preserves the isometric view of Syndicate, while adding \
rotation and pitch controls over the view. Control over agents \
(or acolytes, when playing as the Church) is largely the same as the \
previous syndicate games, being based on a combination of keyboard and \
mouse actions.

Check the 'documentation/packages/swars/ReadmeHaiku' on how to play"
HOMEPAGE="http://swars.vexillium.org/"
COPYRIGHT="2010 Unavowed
	2010 Gynvael Coldwind
	2010 Memek
	2010 oshogbo
	2010 Blount
	2010 Xa
	"
LICENSE="GNU GPL v3"
REVISION="5"
SOURCE_URI="http://swars.vexillium.org/files/swars-0.3.tar.bz2"
CHECKSUM_SHA256="01f44e5b792d41b138d361d04810a875cfa5f897c642a2b13d0dde633fabdacb"
SOURCE_DIR="swars-$portVersion"
PATCHES="swars_x86-0.3.patchset"
ADDITIONAL_FILES="ReadmeHaiku"

ARCHITECTURES="!all x86"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	swars$secondaryArchSuffix = $portVersion
	cmd:swars$secondaryArchSuffix
	cmd:swarsinstall$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libcrypto$secondaryArchSuffix
	lib:libopenal$secondaryArchSuffix
	lib:libpng16$secondaryArchSuffix
	lib:libSDL_1.2$secondaryArchSuffix
	lib:libvorbisfile$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libcrypto$secondaryArchSuffix
	devel:libopenal$secondaryArchSuffix
	devel:libpng16$secondaryArchSuffix
	devel:libSDL$secondaryArchSuffix
	devel:libvorbisfile$secondaryArchSuffix
	devel:libz$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	cmd:python
	"

BUILD()
{
	runConfigure ./configure --datadir=$settingsDir
	make $jobArgs
}

INSTALL()
{
	make install
	/bin/install -m 0755  util/install ${binDir}/swarsinstall

	mv $portDir/additional-files/ReadmeHaiku $docDir/ReadmeHaiku
}
