SUMMARY="A tool for generating 'Makefile.in' from 'Makefile.am'"
DESCRIPTION="Automake is a tool for automatically generating 'Makefile.in' \
files from 'Makefile.am' files.  'Makefile.am' is a series of 'make' macro \
definitions (with rules occasionally thrown in).  The generated 'Makefile.in' \
files are compatible with the GNU Makefile standards."
HOMEPAGE="http://www.gnu.org/software/automake/"
COPYRIGHT="2013 Free Software Foundation, Inc."
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://ftp.gnu.org/gnu/automake/automake-1.13.1.tar.gz"
CHECKSUM_SHA256="51bc10031847e9965c4f2c16a0a66552309ce28ea82b1afa8cef736643ebaa27"
SOURCE_DIR="automake-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	automake113 = $portVersion compat >= 1.13
	cmd:aclocal_1.13 = $portVersion compat >= 1.13
	cmd:automake_1.13 = $portVersion compat >= 1.13
	"
REQUIRES="
	haiku
	coreutils
	diffutils
	cmd:awk
	cmd:m4 >= 1.4
	cmd:perl >= 5.8
	cmd:sh
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:autoconf >= 2.60
	cmd:find
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:makeinfo
	cmd:perl >= 5.8
	cmd:sed
	"

BUILD()
{
	./bootstrap.sh
	PERL="/bin/env perl" runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
	make install-html

	rm $binDir/automake $binDir/aclocal
}

TEST()
{
	make check
}
