SUMMARY="68k Macintosh emulator"
DESCRIPTION="Basilisk II is an Open Source 68k Macintosh emulator. That is, it \
allows you to run 68k MacOS software on your computer, even if you are using a \
different operating system. However, you still need a copy of MacOS and a \
Macintosh ROM image to use Basilisk II."
HOMEPAGE="http://basilisk.cebix.net/"
COPYRIGHT="1997-2015 Christian Bauer, Gwenolé Beauchene"
LICENSE="GNU GPL v2"
REVISION="2"
srcGitRev="c2b519ee1ea848ac827e68cd1d536b3464b79ed1"
SOURCE_URI="https://github.com/cebix/macemu/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="37c3e841f719f4fd0ed5c17d5f8286420f4b4a35c6709de932274919cda27976"
SOURCE_DIR="macemu-$srcGitRev"
PATCHES="basiliskii-1.0.0.patchset"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	basiliskii$secondaryArchSuffix = $portVersion
	app:BasiliskII
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	makefile_engine
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	cd BasiliskII/src/BeOS
	make $jobArgs
}

INSTALL()
{
	cd BasiliskII/src/BeOS
	make install INSTALL_DIR=$appsDir

	addAppDeskbarSymlink $appsDir/BasiliskII "Basilisk II"
}
