SUMMARY="Tools including assembler, linker and librarian for PIC microcontrollers"
DESCRIPTION="GPUTILS is a collection of tools for the Microchip (TM) PIC microcontrollers. \
It includes gpasm, gplink, and gplib. It's distributed under the terms of the GNU Public Li\
cense. There are other GNU PIC tools available such as gpsim, a gputils compatible simulator."
HOMEPAGE="https://gputils.sourceforge.io/"
COPYRIGHT="Craig Franklin, James Bowman"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://sourceforge.net/projects/gputils/files/gputils/$portVersion/gputils-$portVersion-1.tar.bz2"
CHECKSUM_SHA256="6f88a018e85717b57a22f27a0ca41b2157633a82351f7755be92e2d7dc40bb14"
PATCHES="gputils-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	gputils = $portVersion
	cmd:gpasm
	cmd:gpdasm
	cmd:gplib
	cmd:gplink
	cmd:gpstrip
	cmd:gpvc
	cmd:gpvo
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:automake
	cmd:autoreconf
	cmd:gawk
	cmd:gcc
	cmd:make
	"

BUILD()
{
	aclocal
	automake --add-missing
	autoreconf -f
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
