Files
haikuports/sci-electronics/pulseview/pulseview-0.4.1.recipe
2019-01-14 17:36:29 +01:00

83 lines
2.5 KiB
Bash

SUMMARY="Logic analyzer, oscilloscope and MSO GUI for sigrok"
DESCRIPTION="A graphical frontend for the libsigrok and libsigrokdecode \
libraries, permitting access to a wide range of devices and protocol decoders \
to let you record, analyze, process and export analog and logic data.
The sigrok suite needs some kind of hardware to interface to the signals you \
want to examine.
A variety of compatible low cost chinese made logic analyzer products are \
available for as little as $5. Sigrok also supports FX2-based oscilloscopes \
such as the Hantek 6022BE, non-FX2 devices like the Openbench Logic Sniffer \
or devices that make use of the SCPI protocol, as all reasonably modern \
oscilloscopes do (Rigol DS1054z, LeCroy WaveRunner, Yokogawa DLM and similar)."
HOMEPAGE="https://sigrok.org/wiki/PulseView"
COPYRIGHT="2012-2019 PulseView contributors"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://sigrok.org/download/source/pulseview/pulseview-$portVersion.tar.gz"
CHECKSUM_SHA256="9ee7ce3dd1457c6a5f5e4e9c2469903a1f070ba077ea68535cc29ef1dfac6f2f"
PATCHES="pulseview-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
pulseview$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsigrok$secondaryArchSuffix
lib:libsigrokcxx$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libboost_filesystem$secondaryArchSuffix
lib:libboost_serialization$secondaryArchSuffix
lib:libzip$secondaryArchSuffix
lib:libqt5core$secondaryArchSuffix
lib:libqt5gui$secondaryArchSuffix
lib:libqt5widgets$secondaryArchSuffix
lib:libglibmm_2.58$secondaryArchSuffix
lib:libglib_2.0$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libftdi1$secondaryArchSuffix
lib:libsigrokdecode$secondaryArchSuffix
lib:libusb_1.0$secondaryArchSuffix
lib:libsigc_3.0$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsigrokcxx$secondaryArchSuffix
devel:libsigrokdecode$secondaryArchSuffix
devel:libqt5core$secondaryArchSuffix
devel:libboost_filesystem$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
devel:libftdi1$secondaryArchSuffix
devel:libusb_1.0$secondaryArchSuffix
devel:libzip$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:ninja
"
BUILD()
{
cmake $cmakeDirArgs -GNinja
ninja $jobArgs
}
INSTALL()
{
ninja install
rm -rf $prefix/share
addAppDeskbarSymlink $appsDir/pulseview
}
TEST()
{
ninja check
}