SUMMARY="Cypress FX2 generic logic analyzer firmware"
DESCRIPTION="Firmware for Cypress FX2 chips which makes them usable as simple \
logic analyzer and/or oscilloscope hardware.

The fx2lafw firmware is meant to work on any FX2-based hardware, including \
logic analyzers, FX2 eval boards, oscilloscopes, or other hardware which has \
this chip on-board.

Devices running this firmware can be used with the sigrok suite tools for \
capturing data."
HOMEPAGE="https://sigrok.org/wiki/Fx2lafw"
COPYRIGHT="2014-2018 Sigrok contributors"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://sigrok.org/download/source/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-$portVersion.tar.gz"
SOURCE_DIR="sigrok-firmware-fx2lafw-$portVersion"
CHECKSUM_SHA256="e4c96927324f50d08071aa646124d8b6adfe89352ab650ccdad4b3d587fca5a3"

ARCHITECTURES="any"

PROVIDES="
	fx2lafw = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:make
	cmd:sdcc
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
