From 094948024d120f94cde8643a3e581e264680a124 Mon Sep 17 00:00:00 2001 From: Abigail G Date: Wed, 18 Aug 2021 23:10:00 -0400 Subject: [PATCH] New package: LimeSuite-20.10.0 --- common/shlibs | 1 + srcpkgs/LimeSuite-devel | 1 + srcpkgs/LimeSuite-doc | 1 + srcpkgs/LimeSuite/template | 86 ++++++++++++++++++++++++++++++++++++++ srcpkgs/SoapyLMS7 | 1 + 5 files changed, 90 insertions(+) create mode 120000 srcpkgs/LimeSuite-devel create mode 120000 srcpkgs/LimeSuite-doc create mode 100644 srcpkgs/LimeSuite/template create mode 120000 srcpkgs/SoapyLMS7 diff --git a/common/shlibs b/common/shlibs index 76df17e8ba13..9c62e8fed234 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4102,3 +4102,4 @@ libkaddressbookprivate.so.5 kaddressbook-21.08.3_1 libcodec2.so.1.0 codec2-1.0.1_1 libx86emu.so.3 libx86emu-3.4_1 libdeflate.so.0 libdeflate-1.8_1 +libLimeSuite.so.20.10-1 LimeSuite-20.10.0_1 diff --git a/srcpkgs/LimeSuite-devel b/srcpkgs/LimeSuite-devel new file mode 120000 index 000000000000..4431f3d5064a --- /dev/null +++ b/srcpkgs/LimeSuite-devel @@ -0,0 +1 @@ +LimeSuite \ No newline at end of file diff --git a/srcpkgs/LimeSuite-doc b/srcpkgs/LimeSuite-doc new file mode 120000 index 000000000000..4431f3d5064a --- /dev/null +++ b/srcpkgs/LimeSuite-doc @@ -0,0 +1 @@ +LimeSuite \ No newline at end of file diff --git a/srcpkgs/LimeSuite/template b/srcpkgs/LimeSuite/template new file mode 100644 index 000000000000..16fa4dfc03d1 --- /dev/null +++ b/srcpkgs/LimeSuite/template @@ -0,0 +1,86 @@ +# Template file for 'LimeSuite' +pkgname=LimeSuite +version=20.10.0 +revision=1 +build_style=cmake +build_helper=cmake-wxWidgets-gtk3 +configure_args=" + -DENABLE_SIMD_FLAGS=none + -DENABLE_UTILITIES=True + -DENABLE_LIME_UTIL=True + -DCMAKE_SKIP_RPATH=True + -DENABLE_DESKTOP=False + -DENABLE_SOAPY_LMS7=True + -DENABLE_PCIE_XILLYBUS=True + -DENABLE_QUICKTEST=True + -DENABLE_MCU_TESTBENCH=True + -DENABLE_FTDI=True + -DENABLE_FX3=True + -DENABLE_STREAM_UNITE=True + -DENABLE_EXAMPLES=True + -DENABLE_HEADERS=True + -DENABLE_GUI=True + -DENABLE_API_DOXYGEN=True + -DLIME_SUITE_EXTVER=${version}" +hostmakedepends="doxygen" +makedepends="gnuplot wxWidgets-gtk3-devel libusb-devel SoapySDR-devel libfreeglut-devel + fltk-devel glew-devel sqlite-devel libgomp-devel" +depends="wget" +short_desc="Driver and GUI for LimeSDR/LMS7002M-based SDR platforms" +maintainer="classabbyamp " +license="Apache-2.0" +homepage="https://myriadrf.org/projects/lime-suite/" +distfiles="https://github.com/myriadrf/LimeSuite/archive/refs/tags/v${version}.tar.gz" +checksum=f6d79dc67cb52a5aea839d1dc00e65f85367cb2c275d77f149833d32cf79b467 +shlib_provides="libLimeSuite.so.20.10-1" + +# Octave is not built on arm, so the limesuite octave plugin is not built +case "$XBPS_TARGET_MACHINE" in + armv[67]*|aarch64*) + configure_args+=" -DENABLE_OCTAVE=False" + ;; + *) + configure_args+=" -DENABLE_OCTAVE=True" + makedepends+=" octave" + ;; +esac + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" +fi + +post_install() { + vinstall udev-rules/64-limesuite.rules 644 usr/lib/udev/rules.d + + for res in 16 22 32 48 64 128; do + vinstall Desktop/lime-suite-$res.png 644 usr/share/pixmaps + done + vinstall Desktop/lime-suite.desktop 755 usr/share/applications +} + +LimeSuite-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +} + +LimeSuite-doc_package() { + short_desc+=" - documentation" + pkg_install() { + vdoc docs/lms7_api_quick_start_guide.pdf + vdoc docs/StreamProtocol.pdf + vcopy docs/LMS_API_Documentation usr/share/doc/$pkgname + } +} + +SoapyLMS7_package() { + short_desc="SoapySDR module for LimeSDR/LMS7002M" + pkg_install() { + vmove usr/lib/SoapySDR/modules0.7/libLMS7Support.so + } +} diff --git a/srcpkgs/SoapyLMS7 b/srcpkgs/SoapyLMS7 new file mode 120000 index 000000000000..4431f3d5064a --- /dev/null +++ b/srcpkgs/SoapyLMS7 @@ -0,0 +1 @@ +LimeSuite \ No newline at end of file