SUMMARY="VoIP for Haiku"
DESCRIPTION="Whisper BeNet aims to provide a VoIP solution to the Haiku \
platform. It was ported from ZETA."
HOMEPAGE="https://github.com/HaikuArchives/WhisperBeNet"
COPYRIGHT="1998-2001 the BeNet team
	2004-2006 Bernd Korz & Oliver Ruiz Dorantes
	2008 Oliver Ruiz Dorantes"
LICENSE="MIT"
REVISION="2"
srcGitRev="56515401b1eab401a3b2390196f85d70aedaaedf"
SOURCE_URI="https://github.com/HaikuArchives/WhisperBeNet/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="dc8c9879d7c2945526b939a2e35c7d0af6cb75a0fd333062a76e5b2ee91ae7c5"
SOURCE_DIR="WhisperBeNet-$srcGitRev"

ARCHITECTURES="?all x86_gcc2 !x86"

USER_SETTINGS_FILES="
	settings/BeNet directory"

PROVIDES="
	whisper = $portVersion
	app:WhisperBeNet = $portVersion
	"
REQUIRES="
	haiku
	lib:libsanta
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libsanta
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	rc -o BeNet.rsrc BeNet.rdef
	make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $appsDir

	cd dist
	cp WhisperBeNet $appsDir
	addAppDeskbarSymlink $appsDir/WhisperBeNet
}
