SUMMARY="A 'remote control' for the CD-ROM drive"
DESCRIPTION="CDPlayer is like a remote control for the CD-ROM drive. \
It completely by-passes Haiku's media services. If your CD-ROM drive \
doesn't support that or its audio outputs aren't connected to speakers \
(or routed through your soundcard), you won't hear a thing...
Modern computers only rarely fulfill these requirements.

In that case you're better off mounting the CD in Tracker and use \
MediaPlayer to play back the audio files in its wav folder."
HOMEPAGE="https://github.com/HaikuArchives/CDPlayer"
COPYRIGHT="1992-2000 Be Incorporated
	2006-2009 by Haiku Inc."
LICENSE="Be Sample Code License
	MIT"
REVISION="1"
srcGitRev="f7e839c39669be0f5119941eda30231be522ad97"
SOURCE_URI="https://github.com/HaikuArchives/CDPlayer/archive/$srcGitRev.zip"
SOURCE_DIR="CDPlayer-$srcGitRev"
CHECKSUM_SHA256="571cafe47ce1e74eae92db87477a7f3604b6ba8fe7e124265055636eea24e80a"

ARCHITECTURES="all"

PROVIDES="
	CDPlayer = $portVersion
	app:CDPlayer = $portVersion
	"
REQUIRES="
	haiku
	"

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

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

INSTALL()
{
	mkdir -p $appsDir
	cp -af src/objects/CDPlayer $appsDir
	addAppDeskbarSymlink $appsDir/CDPlayer
}
