SUMMARY="Atari Running on Any Machine"
DESCRIPTION="ARAnyM (Atari Running on Any Machine) is a multiplatform virtual \
machine for running Atari ST/TT/Falcon operating systems and applications."
HOMEPAGE="https://aranym.github.io/"
COPYRIGHT="2001-2014 ARAnyM developer team"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/aranym/aranym/archive/ARANYM_1_0_2.tar.gz"
CHECKSUM_SHA256="c0935aee14cca55c08e75a94b77dcd69f326ae563ae371b22c7b9d8efd82e24e"
SOURCE_FILENAME="anarym-$portVersion.tar.gz"
SOURCE_DIR="aranym-ARANYM_1_0_2"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	aranym = $portVersion
	app:ARAnyM = $portVersion
	cmd:aranym = $portVersion
	"
REQUIRES="
	haiku
	lib:libsdl
	lib:libsdl_image
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libsdl
	devel:libSDL_image
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:gcc
	cmd:make
	"

BUILD()
{
	NO_CONFIGURE=1 ./autogen.sh
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	mkdir -p $docDir

	make install
	mv $prefix/share/doc/aranym/* $docDir
	rm -r $prefix/share

	mimeset $prefix/bin/aranym
	addAppDeskbarSymlink /bin/aranym ARAnyM
}
