From ca9de0d9cac23900b4bed125a41e72cbb6b0b013 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 11 Jan 2019 23:33:24 +0100 Subject: [PATCH] add recipe for libsigrokdecode --- .../libsigrokdecode-0.5.2.recipe | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 sci-libs/libsigrokdecode/libsigrokdecode-0.5.2.recipe diff --git a/sci-libs/libsigrokdecode/libsigrokdecode-0.5.2.recipe b/sci-libs/libsigrokdecode/libsigrokdecode-0.5.2.recipe new file mode 100644 index 000000000..28a5d7438 --- /dev/null +++ b/sci-libs/libsigrokdecode/libsigrokdecode-0.5.2.recipe @@ -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 +}