mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
100 lines
2.5 KiB
Bash
100 lines
2.5 KiB
Bash
SUMMARY="Sigrok drivers for logic analyzers and IO file formats"
|
|
DESCRIPTION="Analysis software suite that supports various device types \
|
|
(e.g. logic analyzers, oscilloscopes, and many more).
|
|
* Broad hardware support. Supports many different devices (logic analyzers, \
|
|
oscilloscopes, multimeters, data loggers etc.) from various vendors.
|
|
* Scriptable protocol decoding. Extendable with stackable protocol decoders.
|
|
* Various input/output file formats.
|
|
|
|
This package contains libsigrok, the library with code shared between the
|
|
different frontends.
|
|
"
|
|
HOMEPAGE="https://sigrok.org"
|
|
COPYRIGHT="2011-2018 sigrok contributors"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="4"
|
|
SOURCE_URI="http://sigrok.org/download/source/libsigrok/libsigrok-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="e40fde7af98d29e922e9d3cbe0a6c0569889153fc31e47b8b1afe4d846292b9c"
|
|
PATCHES="libsigrok-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
lisigrok$secondaryArchSuffix = $portVersion
|
|
lib:libsigrok$secondaryArchSuffix = 4.1.0 compat >= 4
|
|
lib:libsigrokcxx$secondaryArchSuffix = 4.1.0 compat >= 4
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libftdi1$secondaryArchSuffix
|
|
lib:libzip$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libglibmm$secondaryArchSuffix
|
|
lib:libsigc_3.0$secondaryArchSuffix
|
|
lib:libusb_1.0$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
lisigrok${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsigrok$secondaryArchSuffix = 4.1.0 compat >= 4
|
|
devel:libsigrokcxx$secondaryArchSuffix = 4.1.0 compat >= 4
|
|
"
|
|
|
|
REQUIRES_devel="
|
|
lisigrok$secondaryArchSuffix == $portVersion base
|
|
devel:libglibmm$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libftdi1$secondaryArchSuffix
|
|
devel:libzip$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libusb_1.0$secondaryArchSuffix
|
|
devel:libftdi1$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libglibmm$secondaryArchSuffix
|
|
devel:libzip$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:awk
|
|
cmd:cmp
|
|
cmd:doxygen
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python3
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export CFLAGS=-D_BSD_SOURCE
|
|
libtoolize -fci
|
|
automake --add-missing
|
|
aclocal
|
|
autoconf
|
|
runConfigure ./configure --disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libsigrok libsigrokcxx
|
|
rm $developLibDir/*.la
|
|
fixPkgconfig
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|