SUMMARY="A simple audio wave viewer"
DESCRIPTION="Waveview is a simple audio wave viewer."
HOMEPAGE="https://github.com/aldeck/waveview"
COPYRIGHT="2011 Alexandre Deckner"
LICENSE="MIT"
REVISION="2"
srcGitRev="fce091e76ae7db4f9d3c1cea502c91ff6040f279"
SOURCE_URI="https://github.com/aldeck/waveview/archive/fce091e76ae7db4f9d3c1cea502c91ff6040f279.tar.gz"
CHECKSUM_SHA256="20cbb040002e1913b7f1f5cd3811cb9f1a0b521eedd9b6c6f1242064e5966ba2"
SOURCE_DIR="waveview-$srcGitRev"

ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	waveview = $portVersion
	app:WaveView = $portVersion
	"
REQUIRES="
	haiku
	lib:libpcre
	lib:libpcreposix
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libpcre
	devel:libpcreposix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:bison
	cmd:flex
	cmd:gcc
	cmd:jam
	cmd:ld
	cmd:make
	"

BUILD()
{
	make OBJ_DIR=objects \
		BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $appsDir
	cp -a objects/WaveView $appsDir
	addAppDeskbarSymlink $appsDir/WaveView
}
