SUMMARY="Free UNIX Spectrum emulator"
DESCRIPTION="ZX Spectrum and derivative machines emulator with the following \
features:
* Accurate 16K, 48K (including the NTSC variant), 128K, +2, +2A and +3 \
emulation.
* Working +3e, SE, TC2048, TC2068, TS2068, Pentagon 128, Pentagon \"512\" \
(Pentagon 128 modified for extra memory), Pentagon 1024 and Scorpion ZS 256 \
emulation.
* Runs at true Speccy speed on any computer you're likely to try it on.
* Support for loading from .tzx files, including accelerated loading.
* Sound (using SDL).
* Kempston joystick emulation.
* Emulation of the various printers you could attach to the Spectrum.
* Support for the RZX input recording file format, including 'competition mode'.
* Emulation of the DivIDE, Interface 1, +D, DISCiPLE, Beta 128, Opus \
Discovery, Kempston mouse, Fuller audio box, SpecDrum, Spectrum +3e, ZXATASP \
and ZXCF interfaces.
* Emulation of the Spectranet and SpeccyBoot interfaces.
"
REVISION="1"
ARCHITECTURES="x86_gcc2"
LICENSE="GNU GPL v2"
COPYRIGHT="2003-2015 Philip Kendall and FUSE contributors"
HOMEPAGE="http://fuse-emulator.sourceforge.net/fuse.php"

SOURCE_URI="http://sourceforge.net/projects/fuse-emulator/files/fuse/$portVersion/fuse-$portVersion.tar.gz"
CHECKSUM_SHA256="a857d4bd62e01d18429897467508af15624cbaf343caed8b9ba1ab3a8879444e"
PATCHES="fuse-$portVersion.patchset"

PROVIDES="
	fuse = $portVersion
	cmd:fuse
"

REQUIRES="
	haiku
	lib:libbz2
	lib:libGL
	lib:libpng
	lib:libSDL_1.2
	lib:libspectrum
	lib:libxml2
	lib:libz
"

BUILD_REQUIRES="
	haiku_devel
	devel:libbz2
	devel:libpng
	devel:libsdl
	devel:libspectrum
	devel:libxml2
	devel:libz
"

BUILD_PREREQUIRES="
	cmd:awk
	cmd:bison
	cmd:flex
	cmd:gcc
	cmd:make
	cmd:perl
	cmd:pkg_config
"

BUILD()
{
	runConfigure ./configure --with-sdl
	make $jobArgs
}

INSTALL()
{
	make install
}

