SUMMARY="JOYCE emulates the Amstrad PCW."
DESCRIPTION="
The latest version of JOYCE (2.2.5) includes ANNE, which emulates the PcW16.
"
HOMEPAGE="http://www.seasip.demon.co.uk/Unix/Joyce/"
SRC_URI="http://www.seasip.info/Unix/Joyce/joyce-2.2.6.tar.gz"
CHECKSUM_SHA256="d92089dc3e583e88973ef6708dc35e649500949086da0a03f973efe3f62c3d8f"
REVISION="1"
COPYRIGHT="2002-2012 John Elliott"
LICENSE="GNU GPL v2"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	joyce = $portVersion
	cmd:xjoyce = $portVersion
	cmd:xanne = $portVersion
	devel:lib765
	devel:libcpmredir
	devel:liblink
	"
REQUIRES="
	haiku
	lib:libsdl
	lib:libpng
	lib:libxml2
	lib:libz
	lib:libgl
	"
BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	devel:libsdl
	devel:libpng
	devel:libxml2
	devel:libz
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	cmd:awk
	"

PATCHES="joyce-2.2.6.patchset"
BUILD()
{
	runConfigure ./configure
	make
}

INSTALL()
{
	make install

	# These are already provided in the libdsk package.
	rm $binDir/apriboot $binDir/dsk* $binDir/md3serial $libDir/libdsk*
	prepareInstalledDevelLibs lib765 libcpmredir liblink
}

