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/" 
SOURCE_URI="http://ftp.gnu.org/gnu/autoconf/autoconf-$portVersion.tar.gz"
CHECKSUM_SHA256="f0611136bee505811e9ca11ca7ac188ef5323a8e2ef19cffd3edb3cf08fd791e"
REVISION="2"

SOURCE_DIR="autoconf-$portVersion"

LICENSE="GNU GPL v2"
COPYRIGHT="1992-1998 Free Software Foundation, Inc."

ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	autoconf213$secondaryArchSuffix = $portVersion
	cmd:autoconf_$portVersion$secondaryArchSuffix = $portVersion
	cmd:autoheader_$portVersion$secondaryArchSuffix = $portVersion
	cmd:autoreconf_$portVersion$secondaryArchSuffix = $portVersion
	cmd:autoscan_$portVersion$secondaryArchSuffix = $portVersion
	cmd:autoupdate_$portVersion$secondaryArchSuffix = $portVersion
	cmd:ifnames_$portVersion$secondaryArchSuffix = $portVersion
	"
	
REQUIRES="
	haiku$secondaryArchSuffix
	"
	
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"

BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:make
	cmd:autoconf
	"

BUILD()
{
	autoconf
	runConfigure ./configure --program-suffix=-$portVersion
	make $jobArgs
}

INSTALL()
{
	make install
}
