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."
LICENSE="GNU GPL v2"
HOMEPAGE="http://basilisk.cebix.net/"
REVISION="1"
COPYRIGHT="1997-2015 Christian Bauer, Gwenolé Beauchene"

ARCHITECTURES="x86_gcc2"

SOURCE_URI="git+https://github.com/cebix/macemu.git#c2b519ee1ea848ac827e68cd1d536b3464b79ed1"
PATCHES="basiliskii-1.0.0.patchset"

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

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"
}
