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\"."
COPYRIGHT="1999-2010 John Anders Haugum, Tobias Weber, Jerry Jacobs"
LICENSE="GNU GPL v2"
HOMEPAGE="http://avra.sourceforge.net/"
ARCHITECTURES="x86_gcc2"
REVISION="1"

SOURCE_URI="http://sourceforge.net/projects/avra/files/1.3.0/avra-1.3.0.tar.bz2"
CHECKSUM_SHA256="a62cbf8662caf9cc4e75da6c634efce402778639202a65eb2d149002c1049712"

PROVIDES="
	avra = $portVersion
	cmd:avra
"

REQUIRES="
	haiku
"

BUILD_PREREQUIRES="
	haiku_devel
	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
}
