SUMMARY="A tool for automatically configuring source code"
DESCRIPTION="
GNU Autoconf is a tool for configuring source code and makefiles. Using \
autoconf, programmers can create portable and configurable packages, because \
the person building the package is allowed to specify various configuration \
options.
"
HOMEPAGE="http://www.gnu.org/software/autoconf/" 
SRC_URI="http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2"
CHECKSUM_SHA256="c491fb273fd6d4ca925e26ceed3d177920233c76d542b150ff35e571454332c8"
REVISION="5"
ARCHITECTURES="x86_gcc2 ?x86"
LICENSE="
	GNU GPL v2
	GNU GPL v3"
COPYRIGHT="1992-2010 Free Software Foundation, Inc."

PROVIDES="
	autoconf = $portVersion compat >= 2.60
	cmd:autoconf = $portVersion compat >= 2.60
	cmd:autoheader = $portVersion compat >= 2.60
	cmd:autom4te = $portVersion compat >= 2.60
	cmd:autoreconf = $portVersion compat >= 2.60
	cmd:autoscan = $portVersion compat >= 2.60
	cmd:autoupdate = $portVersion compat >= 2.60
	cmd:ifnames = $portVersion compat >= 2.60
	"
REQUIRES="
	haiku >= $haikuVersion
	cmd:awk
	coreutils
	diffutils
	cmd:m4 >= 1.4
	cmd:perl >= 5
	cmd:sh
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:automake >= 1.11
	cmd:autoreconf >= 2.60
	cmd:make
	cmd:sed
	"

BUILD_PACKAGE_ACTIVATION_PHASE=INSTALL

BUILD()
{
	autoreconf
	PERL="perl" M4="m4" SED="sed" \
		./configure $configureDirArgs
	make -j$jobs
}

INSTALL()
{
	make install
}

TEST()
{
	make check
}

# ----- source package -------------------------------------------------------

PROVIDES_source="autoconf_source = $portVersion"
