SUMMARY="IRC client for Haiku"
DESCRIPTION="
Vision is an IRC client for Haiku.
"
HOMEPAGE="http://vision.sourceforge.net/"
SRC_URI="svn://svn.code.sf.net/p/vision/code/branches/0.9.7#947"
LICENSE="MPL v1.1"
COPYRIGHT="1999-2010 The Vision Team"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 x86_64"

if [ $targetArchitecture != x86_gcc2 ]; then
	PATCHES="vision-0.9.7-gcc4.patch"
fi

ADDITIONAL_FILES="InitialSettings"

PROVIDES="
	vision = $portVersion
	"
REQUIRES="
	haiku >= $haikuVersion
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:gcc
	cmd:ld
	cmd:make
	"

USER_SETTINGS_FILES="
	settings/Vision directory
	"


BUILD()
{
	make
		# multi-job build not supported
}

INSTALL()
{
	visionDir=$appsDir/Vision
	mkdir -p $visionDir

	cp Vision $visionDir
	cp -a $portDir/additional-files/InitialSettings $visionDir

	cd data
	cp -a * $visionDir

	addAppDeskbarSymlink $visionDir/Vision
}
