SUMMARY="A lightweight XMPP client"
DESCRIPTION="
Dengon is an XMPP client, allowing to use instant messaging networks such as \
Jabber, Google Talk, or Facebook Chat. It supports multi-use rchat, Psi \
bookmarks, in-band registration and other features.
"
HOMEPAGE="http://synrc.com/client/chat/haiku/"
SOURCE_URI="git+https://github.com/diger/dengon.git#aa5c1ecda7b2f087434df28f3b99cc4aaf6e199d"
LICENSE="MIT"
COPYRIGHT="2010-2014 Maxim Sokhatsky"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	dengon = $portVersion
	app:Chat = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libssl$secondaryArchSuffix
	lib:libexpat$secondaryArchSuffix
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libssl$secondaryArchSuffix
	devel:libexpat$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:make
	cmd:which
	"

BUILD()
{	
	BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY` make
}

INSTALL()
{
	mkdir -p $appsDir
	cp objects.*-release/Chat $appsDir/Chat
	addAppDeskbarSymlink $appsDir/Chat "Chat"
}
