SUMMARY="Standard tool to compile source trees"
DESCRIPTION="
Make is a tool which controls the generation of executables and other \
non-source files of a program from the program's source files.
Make gets its knowledge of how to build your program from a file called the \
makefile, which lists each of the non-source files and how to compute it from \
other files. When you write a program, you should write a makefile for it, so \
that it is possible to use Make to build and install the program.
"
HOMEPAGE="http://www.gnu.org/software/make/"
LICENSE="GNU GPL v3"
COPYRIGHT="1988-2010 Free Software Foundation, Inc."
SRC_URI="http://ftp.gnu.org/pub/gnu/make/make-3.82.tar.bz2"
CHECKSUM_SHA256="e2c1a73f179c40c71e2fe8abf8a8a0688b8499538512984da4a76958d0402966"
REVISION="5"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"

PATCHES="make-3.82.patch"

PROVIDES="
	make = $portVersion compat >= 3.82
	cmd:make = $portVersion compat >= 3.82
	"
REQUIRES="
	haiku >= $haikuVersion
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:gcc
	cmd:ld
	cmd:libtoolize
	cmd:sed
	"


BUILD()
{
	libtoolize --force --copy --install
	runConfigure ./configure \
		--disable-rpath --with-gnu-ld
	./build.sh
}

INSTALL()
{
	./make install
}
