0
0
Fork 0
haikuports/sci-electronics/sigrok-cli/sigrok_cli-0.7.2.recipe

72 lines
1.8 KiB
Bash

SUMMARY="Command line interface to sigrok logic analyzer toolsuite"
DESCRIPTION="sigrok-cli is a cross-platform command line utility for the \
sigrok software.
It cannot display graphical output, but is still sufficient to run through \
the whole process of hardware initialization, acquisition, protocol decoding \
and saving the session.
It is useful for running on remote or embedded systems, netbooks, PDAs, and \
for various other use-cases. It can display samples on standard output or \
save them in various file formats."
HOMEPAGE="https://sigrok.org/wiki/Sigrok-cli"
COPYRIGHT="2014-2020 sigrok contributors"
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://sigrok.org/download/source/sigrok-cli/sigrok-cli-$portVersion.tar.gz"
SOURCE_DIR="sigrok-cli-$portVersion"
CHECKSUM_SHA256="71d0443f36897bf565732dec206830dbea0f2789b6601cf10536b286d1140ab8"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sigrok_cli$secondaryArchSuffix = $portVersion
cmd:sigrok_cli
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsigrok$secondaryArchSuffix
lib:libsigrokdecode$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libftdi1$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libusb_1.0$secondaryArchSuffix
lib:libzip$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsigrok$secondaryArchSuffix
devel:libsigrokdecode$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libusb_1.0$secondaryArchSuffix
devel:libzip$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
export LDFLAGS="-lusb-1.0 -lftdi1 -lnetwork -lzip"
runConfigure --omit-dirs binDir ./configure
make $jobArgs
}
INSTALL()
{
make install
#remove not needed data files
rm -rf $dataDir
}
TEST()
{
make check
}