SUMMARY="Utilities to access MS-DOS disks without mounting"
DESCRIPTION="Mtools is a collection of utilities to access MS-DOS disks from \
GNU and Unix without mounting them. It supports Win'95 style long file names, \
OS/2 Xdf disks and 2m disks (store up to 1992k on a high density 3 1/2 disk). \
In addition to file access, it supports many FAT-specific features: volume \
labels, FAT-specific file attributes (hidden, system, ...), \"bad block\" map \
maintenance, access to remote floppy drives, Iomega ZIP disk protection, \
\"secure\" erase, display of file's on-disk layout, etc."
HOMEPAGE="http://www.gnu.org/software/mtools/"
LICENSE="GNU GPL v3"
REVISION="1"

ARCHITECTURES="x86_64"
COPYRIGHT="1997-2009 Alain Knaff"

SOURCE_URI="ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.18.tar.bz2"
CHECKSUM_SHA256="59e9cf80885399c4f229e5d87e49c0c2bfeec044e1386d59fcd0b0aead6b2f85"

PROVIDES="
	mtools = $portVersion
	cmd:amuFormat.sh
	cmd:lz
	cmd:mattrib
	cmd:mbadblocks
	cmd:mcat
	cmd:mcd
	cmd:mcheck
	cmd:mclasserase
	cmd:mcomp
	cmd:mcopy
	cmd:mdel
	cmd:mdeltree
	cmd:mdir
	cmd:mdu
	cmd:mformat
	cmd:minfo
	cmd:mkmanifest
	cmd:mlabel
	cmd:mmd
	cmd:mmount
	cmd:mmove
	cmd:mpartition
	cmd:mrd
	cmd:mren
	cmd:mshortname
	cmd:mshowfat
	cmd:mtools
	cmd:mtoolstest
	cmd:mtype
	cmd:mxtar
	cmd:mzip
	cmd:tgz
	cmd:uz
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:make
	"

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

INSTALL()
{
	make install
}
