SUMMARY="An application to burn audio and data discs"
DESCRIPTION="BurnItNow is a GUI frontend for cdrecord and mkisofs. \
It burns data and ISO images, and blanks rewritable RW media (the \
blanking depends very much on the used hardware and its configuration). \
It creates Audio CDs from drag & dropped WAV files and burns pre-authored \
DVD-Audio and DVD-Video."
HOMEPAGE="https://github.com/HaikuArchives/BurnItNow"
COPYRIGHT="2010-2017 BurnItNow Team"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="c86f6e49eb1a8ed448696f2c284bf57826e575ce042e17c51251ad0bb7983453"
SOURCE_DIR="BurnItNow-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	burnitnow = $portVersion
	app:BurnItNow = $portVersion
	"
REQUIRES="
	haiku
	cmd:cdrecord
	cmd:mkisofs
	cmd:readcd
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:ld
	cmd:make
	"

BUILD()
{
	cd Source
	make $jobArgs OBJ_DIR=objects
	make bindcatalogs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir $docDir

	cp Source/objects/BurnItNow $appsDir
	cp -r Docs/* $docDir/

	addAppDeskbarSymlink $appsDir/BurnItNow
}
