SUMMARY="View and edit files in hexadecimal or in ASCII"
DESCRIPTION="hexedit shows a file both in ASCII and in hexadecimal. \
The file can be a device as the file is read a piece at a time. \
You can modify the file and search through it. \
You have also copy&paste and save to file functions. \
Truncating or appending to the file is allowed. \
Modifications are shown in bold."
HOMEPAGE="http://rigaux.org/hexedit.html"
COPYRIGHT="1998-2013 Pixel (Pascal Rigaux)"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="http://rigaux.org/hexedit-$portVersion.src.tgz"
CHECKSUM_SHA256="6a126da30a77f5c0b08038aa7a881d910e3b65d13767fb54c58c983963b88dd7"
SOURCE_DIR="hexedit"
PATCHES="hexedit-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	hexedit = $portVersion
	cmd:hexedit = $portVersion
	"
REQUIRES="
	haiku
	cmd:groff
	lib:libncurses
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libncurses
	"
BUILD_PREREQUIRES="
	cmd:autoreconf
	cmd:gcc
	cmd:groff
	cmd:ld
	cmd:libtoolize
	cmd:make
	cmd:pkg_config
	"

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

INSTALL()
{
	make install
}
