From cf8be636ac156c7d4ca1dbfc36239bc5f9a0d4cd 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 | 94 ++++++++++++++++++++++++++++++++++++++ srcpkgs/SoapyLMS7 | 1 + 5 files changed, 98 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 befa6484dfee..278a3c81eac7 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4006,3 +4006,4 @@ libmt32emu.so.2 libmt32emu-2.5.1_1 libqrtr-glib.so.0 libqrtr-glib-1.0.0_1 libstemmer.so.2 libstemmer-2.1.0_1 libdecor-0.so.0 libdecor-0.1.0_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..1aec9ee25d1e --- /dev/null +++ b/srcpkgs/LimeSuite/template @@ -0,0 +1,94 @@ +# Template file for 'LimeSuite' +pkgname=LimeSuite +version=20.10.0 +revision=1 +build_style=cmake +build_helper=cmake-wxWidgets-gtk3 +configure_args=" + -DCMAKE_BUILD_TYPE=Release + -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" + +case "$XBPS_TARGET_MACHINE" in + armv[67]*|aarch64*) + # Octave is not built on arm, so the limesuite octave plugin is not built + configure_args+=" -DENABLE_OCTAVE=False" + + # On arm, cmake adds `-march=native` to the build flags, + # which is invalid and conflicts with the xbps-provided `-march` value. + # This does not happen on x86 because the default SIMD_FLAGS is not "native". + configure_args+=" -DENABLE_SIMD_FLAGS=none" + ;; + *) + configure_args+=" -DENABLE_OCTAVE=True" + makedepends+=" octave" + ;; +esac + +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() { + 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