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"
SOURCE_URI="git://github.com/HaikuArchives/CDPlayer#f7e839c39669be0f5119941eda30231be522ad97"
LICENSE="Be Sample Code License
	MIT"
COPYRIGHT="1992-2000, Be Incorporated
	2006-2009 by Haiku Inc.
	"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	CDPlayer$secondaryArchSuffix = $portVersion
	app:CDPlayer$secondaryArchSuffix = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++$secondaryArchSuffix
	cmd:make
	"

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

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