mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
add recipe for libsigrokdecode
This commit is contained in:
71
sci-libs/libsigrokdecode/libsigrokdecode-0.5.2.recipe
Normal file
71
sci-libs/libsigrokdecode/libsigrokdecode-0.5.2.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
SUMMARY="(streaming) protocol decoding library"
|
||||
DESCRIPTION="The sigrok project aims at creating a portable, cross-platform
|
||||
signal analysis software suite that supports various device types (such as \
|
||||
logic analyzers, oscilloscopes, multimeters, and more).
|
||||
|
||||
libsigrokdecode is a shared library written in C which provides the basic API \
|
||||
for (streaming) protocol decoding functionality.
|
||||
|
||||
The protocol decoders are written in Python (>= 3.0)."
|
||||
HOMEPAGE="https://sigrok.org/wiki/Libsigrokdecode"
|
||||
COPYRIGHT="2014-2019 sigrok contributors"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://sigrok.org/download/source/libsigrokdecode/libsigrokdecode-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e08d9e797c54eccf3144da631b6e5f1498ac531e51520428df537a1da82583f0"
|
||||
|
||||
ARCHITECTURES="?x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
libsigrokdecode$secondaryArchSuffix = $portVersion
|
||||
lib:libsigrokdecode$secondaryArchSuffix = 4.2.0 compat >= 4
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libpython3.6m$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libsigrokdecode${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsigrokdecode$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
libsigrokdecode$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libpython3.6m$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:awk
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLib libsigrokdecode
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user