# SliTaz package receipt.

PACKAGE="make"
VERSION="4.3"
CATEGORY="development"
SHORT_DESC="GNU Make to generate executables and other files from source."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/make/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="glibc-base"
BUILD_DEPENDS="gcc"

# Rules to compile & install the temporary toolchain.
cook_tmp_toolchain()
{
	cd $src
	# http://savannah.gnu.org/bugs/?30612
	patch -Np1 -i $stuff/bug30612.patch
	# http://savannah.gnu.org/bugs/?30723
	patch -Np1 -i $stuff/bug30723.patch
	./configure && make && make install
}

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure $CONFIGURE_ARGS &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/usr/bin $fs/usr
}