SUMMARY="The gzip compression utilities"
DESCRIPTION="gzip (GNU zip) is a compression utility designed to be a \
replacement for compress. Its main advantages over compress are much \
better compression and freedom from patented algorithms. It has been \
adopted by the GNU project and is now relatively popular on the Internet."
HOMEPAGE="http://www.gzip.org/"
SOURCE_URI="https://ftp.gnu.org/gnu/gzip/gzip-$portVersion.tar.xz"
CHECKSUM_SHA256="37dfed1a485d53212c43b3fa2a7c7952f09bf5cd86e37121c222341ee1b27847"
SOURCE_DIR="$portVersionedName"
REVISION="2"
LICENSE="GNU GPL v3"
COPYRIGHT="1992-1993 Jean-loup Gailly
	1999-2013 Free Software Foundation, Inc."

ARCHITECTURES="x86_gcc2 x86 x86_64 arm ppc"

PROVIDES="
	gzip = $portVersion
	cmd:gzip = $portVersion
	cmd:gunzip = $portVersion
	cmd:gzexe = $portVersion
	cmd:uncompress = $portVersion
	cmd:zcat = $portVersion
	cmd:zcmp = $portVersion
	cmd:zdiff = $portVersion
	cmd:zegrep = $portVersion
	cmd:zfgrep = $portVersion
	cmd:zforce = $portVersion
	cmd:zgrep = $portVersion
	cmd:zless = $portVersion
	cmd:zmore = $portVersion
	cmd:znew = $portVersion
	"

REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:libtoolize
	cmd:make
	cmd:gcc
	cmd:awk
	"

PATCHES="${portVersionedName}.patchset"

BUILD()
{
	export CFLAGS="-Wno-error"
	autoreconf -fi
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
