# SliTaz package receipt.

PACKAGE="bison"
VERSION="3.7.5"
CATEGORY="development"
SHORT_DESC="GNU parser generator."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gnu.org/software/bison/"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
TAGS="parser language"

DEPENDS="m4"
BUILD_DEPENDS="m4"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure $CONFIGURE_ARGS &&
	# 2.6.5
	#echo '#define YYENABLE_NLS 1' >> config.h &&
	make && make install
}

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