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="https://www.gnu.org/software/automake/"
COPYRIGHT="2011-2021 Free Software Foundation, Inc."
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://ftpmirror.gnu.org/automake/automake-$portVersion.tar.gz
	https://ftp.gnu.org/gnu/automake/automake-$portVersion.tar.gz"
CHECKSUM_SHA256="07bd24ad08a64bc17250ce09ec56e921d6343903943e99ccf63bbf0705e34605"

ARCHITECTURES="all ?arm"

PROVIDES="
	automake = $portVersion compat >= 1.13
	cmd:aclocal = $portVersion compat >= 1.13
	cmd:aclocal_1.16 = $portVersion compat >= 1.16
	cmd:automake = $portVersion compat >= 1.13
	cmd:automake_1.16 = $portVersion compat >= 1.16
	"
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:awk
	cmd:find
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:makeinfo
	cmd:perl >= 5.8
	cmd:sed
	"

TEST_REQUIRES="
	cmd:bison
	cmd:bzip2
	cmd:compress
#	cmd:emacs
	cmd:flex
	cmd:gettext
#	cmd:gfortran
	cmd:gzip
	cmd:help2man
	cmd:libtool
	cmd:libtoolize
	cmd:perl
	cmd:python
	cmd:vala
	cmd:xz
	"

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

INSTALL()
{
	make install
}

TEST()
{
	make check
}
