SUMMARY="Berkeley implementation of Yacc"
DESCRIPTION="
Berkeley Yacc (byacc) is generally conceded to be the best yacc variant \
available. In contrast to bison, it is written to avoid dependencies upon a \
particular compiler.
"
REVISION="1"
LICENSE="Public Domain"
COPYRIGHT="2002-2013,2014 by Thomas E. Dickey"
HOMEPAGE="http://invisible-island.net/byacc/byacc.html"
ARCHITECTURES="x86_gcc2"

SOURCE_URI="ftp://invisible-island.net/byacc/byacc.tar.gz"
CHECKSUM_SHA256="2f104c7e200dd86844d5f3521e12cb55fc48a9c3da3480a65fde2ca8c053bdcc"

PROVIDES="
	byacc = $portVersion
	cmd:yacc = $portVersion
"

REQUIRES="
	haiku
"

BUILD_REQUIRES="
	haiku_devel
"

BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:ld
	cmd:make
"

BUILD()
{
	runConfigure --omit-dirs docDir ./configure
	make
}

INSTALL()
{
	make install
}
