SUMMARY="ZX Spectrum emulator utilities"
DESCRIPTION="Several tools to manage files in ZX spectrum emulator formats:
disk and tape images, machine state snapshots, and a few other things."
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-utils/$portVersion/fuse-utils-$portVersion.tar.gz"
CHECKSUM_SHA256="7c36c0b42805661a06c21aede3461ffc8ccdb5ce56fe232875bf86e79f77c93c"
SOURCE_DIR="fuse-utils-$portVersion"
PATCHES="fuse_utils-$portVersion"

PROVIDES="
	fuse_utils = $portVersion
	cmd:createhdf
	cmd:fmfconv
	cmd:listbasic
	cmd:profile2map
	cmd:raw2hdf
	cmd:rzxdump
	cmd:rzxtool
	cmd:scl2trd
	cmd:snap2tzx
	cmd:snapconv
	cmd:tapeconv
	cmd:tzxlist
"

REQUIRES="
	haiku
	lib:libbz2
	lib:libavcodec
	lib:libavformat
	lib:libavutil
	lib:libswscale
	lib:libspectrum
	lib:libz
"

BUILD_REQUIRES="
	haiku_devel
	devel:libavformat
	devel:libbz2
	devel:libgcrypt
	devel:libspectrum
	devel:libz
"

BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:make
	cmd:pkg_config
"

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

INSTALL()
{
	make install
}
