SUMMARY="Assember for the Atmel AVR microcontroller family"
DESCRIPTION="AVRA is an assembler for Atmel AVR microcontrollers, and it is \
almost compatible with Atmel’s own assembler AVRASM32. The programming \
principles and conceptions are based on the ANSI programming language \"C\"."
HOMEPAGE="http://avra.sourceforge.net/"
COPYRIGHT="1999-2010 John Anders Haugum, Tobias Weber, Jerry Jacobs"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://downloads.sourceforge.net/avra/avra-$portVersion.tar.bz2"
CHECKSUM_SHA256="a62cbf8662caf9cc4e75da6c634efce402778639202a65eb2d149002c1049712"

ARCHITECTURES="all"

PROVIDES="
	avra = $portVersion
	cmd:avra
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd src
	touch NEWS ChangeLog
	sh bootstrap
	runConfigure --omit-dirs "docDir dataRootDir" ./configure
	make $jobArgs
}

INSTALL()
{
	cd src
	make install
}
