SUMMARY="A'dam Music Composer"
DESCRIPTION="This is a great app for creating music with, it supports \
keyboard and it creates MP3s and WAVE files"
HOMEPAGE="https://github.com/HaikuArchives/AMC"
COPYRIGHT="1989 Atsushi Moriwaki"
LICENSE="Public Domain"
REVISION="1"
srcGitRev="451087418bc91f626ba7cb1b112816e3bac898f9"
SOURCE_URI="https://github.com/HaikuArchives/AMC/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="8e90759b128c66f3a3443fecf0b9ffda112a911be77fc14d7666d7bb051b98f7"
SOURCE_DIR="AMC-$srcGitRev"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	amc = $portVersion
	app:AMC = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd amc/src
	make $jobArgs
}

INSTALL()
{
	cd amc/src
	mkdir -p $appsDir/AMC
	cp -a amc $appsDir/AMC/A\'dams\ Music\ Composer
	cp -r ../doc $appsDir/AMC
	cp -r ../tunes $appsDir/AMC
}
