SUMMARY="BeRDP is a project dedicated to bringing the RDP protocol to the BeOS"
DESCRIPTION="
BeRDP is a project dedicated to bringing the RDP protocol to the BeOS platform \
utilizing the rdesktop project. RDP is a protocol designed by Microsoft to \
remotely administer / run a session on Windows 2000/2003 Servers / Windows XP \
Professional workstations.
"
HOMEPAGE="https://github.com/HaikuArchives/BeRDP/"
SRC_URI="git+https://github.com/HaikuArchives/BeRDP.git#8d73363b567361a5f14bf36173bf68f01260013a"
COPYRIGHT="2003-2004 Sikos"
LICENSE="BSD (4-clause)"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	berdp = $portVersion
	app:BeRDP = $portVersion
	"

BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	cmd:mkdepend
	"


BUILD_REQUIRES="
	haiku_devel >= $haikuVersion 
	"
	
REQUIRES="
	haiku >= $haikuVersion
	cmd:rdesktop
	"


BUILD()
{
	cd Source
	make
}

INSTALL()
{
	mkdir -p $appsDir/BeRDP
	objDir=Source/objects.$(echo $buildArchitecture|sed -r s/_/-/g)-release
	cp $objDir/BeRDP $appsDir/BeRDP
	addAppDeskbarSymlink $appsDir/BeRDP/BeRDP
}
