SUMMARY="A fast, simple LZW file compressor"
DESCRIPTION="Compress is a fast, simple LZW file compressor. Compress does not \
have the highest compression rate, but it is one of the fastest programs to \
compress data. Compress is the defacto standard in the UNIX community for \
compressing files."
HOMEPAGE="http://ncompress.sourceforge.net/"
COPYRIGHT="Mike Frysinger
	Spencer W. Thomas
	Jim McKie
	Steve Davies
	Ken Turkowski
	James A. Woods
	Joe Orost
	Dave Mack
	Peter Jannesen"
LICENSE="Public Domain"
REVISION="1"
SOURCE_URI="http://sourceforge.net/projects/ncompress/files/ncompress-4.2.4.4.tar.gz"
CHECKSUM_SHA256="b00ba28d3f332b38aa75478a15c1b789957aa6c02d6453471f452c0ec3e6517a"
PATCHES="ncompress-$portVersion.patchset"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	ncompress = $portVersion
	cmd:compress
	cmd:zcat
	cmd:zmore
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:cpio
	cmd:find
	cmd:gcc
	cmd:sh
	"

BUILD()
{
	echo -e "1\n$binDir\n$manDir\n7\n-DNOFUNCDEF=1\nc\n\nq"|sh build
}

INSTALL()
{
	echo -e "1\n$binDir\n$manDir\n7\n-DNOFUNCDEF=1\ni\n\n\nq"|sh build
}

TEST()
{
	echo -e "1\n$binDir\n$manDir\n7\n-DNOFUNCDEF=1\nt\n\n\nq"|sh build
}
