SUMMARY="An e-mail client." 
HOMEPAGE="http://beam.sourceforge.net" 
SRC_URI="git://beam.git.sourceforge.net/gitroot/beam/beam"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
	beam = $portVersion
	"
REQUIRES="
	liblayout >= 1.4.0
	libpcre >= 8.00
	lib:libssl
"
BUILD_REQUIRES="
	devel:liblayout >= 1.4.0
	devel:libpcre
	devel:libiconv
	devel:libssl
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:jam
	cmd:gcc
	cmd:bison
	cmd:flex
	"

PATCHES="beam-1.2alpha.patchset"

BUILD()
{
	jam -q $jobArgs
}

INSTALL()
{
	mkdir -p ${appsDir}/Beam
	cp -a generated/distro-haiku/* ${appsDir}/Beam
	cp -a Changes.txt Readme.txt ${appsDir}/Beam
	mkdir -p ${appsDir}/Beam/Icons
	cp -a resources/iconset* ${appsDir}/Beam/Icons
	cd ${appsDir}/Beam/tools
	ln -s ../lib .
	ln -s ../add-ons .

	addAppDeskbarSymlink ${appsDir}/Beam/Beam
}
LICENSE="GNU GPL v2"
COPYRIGHT="2000-2012 Oliver Tappe"
DESCRIPTION="
Beam (BEware, Another Mailer) is an open source e-mail client for BeOS (R5 and \
onwards) that aims to be fast, stable and feature-complete.
"
