# SliTaz package receipt.

PACKAGE="crosstool-ng"
VERSION="1.12.4"
CATEGORY="development"
SHORT_DESC="Tool to Build toolchains."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://ymorin.is-a-geek.org/projects/crosstool"
WGET_URL="http://ymorin.is-a-geek.org/download/$PACKAGE/$TARBALL"
DEPENDS="slitaz-toolchain"
BUILD_DEPENDS="subversion flex cvs gawk texinfo"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$DESTDIR install
}

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