SUMMARY="Standard GNU documentation format tool"
DESCRIPTION="
Texinfo is the official documentation format of the GNU project."
HOMEPAGE="http://www.gnu.org/software/texinfo/"
COPYRIGHT="1992-2008 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="3"
SOURCE_URI="http://ftp.gnu.org/gnu/texinfo/texinfo-$portVersion.tar.gz"
CHECKSUM_SHA256="a52d05076b90032cb2523673c50e53185938746482cf3ca0213e9b4b50ac2d3e"
PATCHES="texinfo-$portVersion.patchset"

ARCHITECTURES="all ?x86_gcc2 ?x86 ?arm"

PROVIDES="
	texinfo = $portVersion compat >= 4
	cmd:info = $portVersion compat >= 4
	cmd:infokey = $portVersion compat >= 4
	cmd:install_info = $portVersion compat >= 4
	cmd:makeinfo = $portVersion compat >= 4
	cmd:pdftexi2dvi = $portVersion compat >= 4
	cmd:pod2texi = $portVersion compat >= 6
	cmd:texi2any = $portVersion compat >= 6
	cmd:texi2dvi = $portVersion compat >= 4
	cmd:texi2pdf = $portVersion compat >= 4
	cmd:texindex = $portVersion compat >= 4
	"
REQUIRES="
	haiku
	cmd:awk
	lib:libiconv
	lib:libintl
	lib:libncurses
	lib:libperl
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libncurses
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:awk
	cmd:gcc
	cmd:gettext
	cmd:grep
	cmd:ld
	cmd:make
	cmd:perl
	cmd:sed
	"

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

INSTALL()
{
	make install
}
