SUMMARY="A well featured audio editor"
DESCRIPTION="BeAE is an audio editor with features like silencing, fading \
in/out, analyzing, etc."
HOMEPAGE="https://github.com/HaikuArchives/BeAE/"
COPYRIGHT="2003 Xentronix"
LICENSE="BSD (3-clause)"
REVISION="5"
srcGitRev="ce7f02e451ff926c80e4b21bbee5a425dca159f3"
SOURCE_URI="https://github.com/HaikuArchives/BeAE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="8466fe021fb5e11fd0a756e86d6d662f6e6f2e15b00c0ea4d96eb50d18633a10"
SOURCE_DIR="BeAE-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	beae = $portVersion
	app:BeAE = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:cmake
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	cd Core-src
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir/BeAE
	cp -r BeAE $appsDir
	rm -rf $appsDir/BeAE/license.txt $appsDir/BeAE/Samples
	addAppDeskbarSymlink $appsDir/BeAE/BeAE
}
