Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: LimeSuite-20.10.0
Date: Sat, 21 Aug 2021 19:10:18 +0200	[thread overview]
Message-ID: <20210821171018.GNuGj-IlxWQSUIMAIEJElFJY9Nkb4-Y-iIo8JxvRiwc@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32573@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1655 bytes --]

There is an updated pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages limesdr
https://github.com/void-linux/void-packages/pull/32573

New package: LimeSuite-20.10.0
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (x86_64-glibc)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] x86_64-musl (cross)
  - [x] aarch64-musl (cross)
  - [x] armv7l (cross)
  - [x] armv6l-musl (cross)



A patch file from https://github.com/void-linux/void-packages/pull/32573.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-limesdr-32573.patch --]
[-- Type: text/x-diff, Size: 4992 bytes --]

From c710f4a63f68ff7b355614eace03adadfdd13761 Mon Sep 17 00:00:00 2001
From: Abigail G <dev@kb6.ee>
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 +
 .../LimeSuite/patches/no-march-native.patch   | 12 +++
 srcpkgs/LimeSuite/template                    | 92 +++++++++++++++++++
 srcpkgs/SoapyLMS7                             |  1 +
 6 files changed, 108 insertions(+)
 create mode 120000 srcpkgs/LimeSuite-devel
 create mode 120000 srcpkgs/LimeSuite-doc
 create mode 100644 srcpkgs/LimeSuite/patches/no-march-native.patch
 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/patches/no-march-native.patch b/srcpkgs/LimeSuite/patches/no-march-native.patch
new file mode 100644
index 000000000000..3e25a03cd9b9
--- /dev/null
+++ b/srcpkgs/LimeSuite/patches/no-march-native.patch
@@ -0,0 +1,12 @@
+`-march=native` is not needed because xbps adds the proper -march itself
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -121,7 +121,6 @@ if(CMAKE_COMPILER_IS_GNUCXX)
+     SET_PROPERTY(CACHE ENABLE_SIMD_FLAGS PROPERTY STRINGS none native SSE3 SSE4.2 AVX AVX2) 
+ 
+     if(${ENABLE_SIMD_FLAGS} MATCHES "native")
+-        add_definitions(-march=native)
+         if(X86)
+             add_definitions(-mfpmath=both)
+         endif()
diff --git a/srcpkgs/LimeSuite/template b/srcpkgs/LimeSuite/template
new file mode 100644
index 000000000000..db8235474a77
--- /dev/null
+++ b/srcpkgs/LimeSuite/template
@@ -0,0 +1,92 @@
+# Template file for 'LimeSuite'
+pkgname=LimeSuite
+version=20.10.0
+revision=1
+build_style=cmake
+build_helper=cmake-wxWidgets-gtk3
+configure_args="
+	-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 <dev@kb6.ee>"
+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() {
+	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

  parent reply	other threads:[~2021-08-21 17:10 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-19  3:33 [PR PATCH] [WIP] " classabbyamp
2021-08-19  7:09 ` classabbyamp
2021-08-20  2:32 ` classabbyamp
2021-08-21  0:20 ` [PR PATCH] [Updated] " classabbyamp
2021-08-21  0:27 ` classabbyamp
2021-08-21  0:29 ` classabbyamp
2021-08-21  1:23 ` [PR PATCH] [Updated] " classabbyamp
2021-08-21  1:31 ` classabbyamp
2021-08-21  1:36 ` classabbyamp
2021-08-21  3:05 ` q66
2021-08-21  4:14 ` [PR PATCH] [Updated] " classabbyamp
2021-08-21  4:15 ` classabbyamp
2021-08-21  4:52 ` [PR PATCH] [Updated] " classabbyamp
2021-08-21 11:19 ` q66
2021-08-21 17:08 ` classabbyamp
2021-08-21 17:09 ` classabbyamp
2021-08-21 17:10 ` classabbyamp [this message]
2021-08-21 17:46 ` q66
2021-08-21 18:31 ` classabbyamp
2021-08-21 18:37 ` classabbyamp
2021-08-21 19:05 ` q66
2021-08-21 19:06 ` q66
2021-08-21 19:08 ` q66
2021-08-22  4:04 ` classabbyamp
2021-08-22  4:04 ` classabbyamp
2021-08-22  7:23 ` q66
2021-08-22 14:45 ` [PR PATCH] [Updated] " classabbyamp
2021-11-05 23:23 ` classabbyamp
2021-11-05 23:27 ` [PR REVIEW] " Duncaen
2021-11-05 23:40 ` [PR PATCH] [Updated] " classabbyamp
2021-11-13  3:40 ` classabbyamp
2021-11-13  3:42 ` [PR REVIEW] " abenson
2021-11-13  3:43 ` abenson
2021-11-13  3:44 ` abenson
2021-11-13  3:47 ` classabbyamp
2021-11-13  3:53 ` classabbyamp
2021-11-13  3:56 ` [PR PATCH] [Updated] " classabbyamp
2021-11-13  4:09 ` [PR REVIEW] " classabbyamp
2021-11-13  4:12 ` classabbyamp
2021-11-13  4:12 ` classabbyamp
2021-11-13  6:06 ` [PR PATCH] [Updated] " classabbyamp
2021-11-13 15:20 ` [PR REVIEW] " abenson
2021-11-13 16:34 ` [PR PATCH] [Updated] " classabbyamp
2021-11-13 16:36 ` [PR REVIEW] " classabbyamp
2022-02-04 18:05 ` [PR PATCH] [Updated] " classabbyamp
2022-03-05 22:47 ` classabbyamp
2022-03-06  3:14 ` classabbyamp
2022-03-22  2:12 ` classabbyamp
2022-03-22  3:55 ` classabbyamp
2022-03-22  3:57 ` classabbyamp
2022-04-02 21:13 ` paper42
2022-04-02 21:33 ` [PR PATCH] [Updated] " classabbyamp
2022-04-02 21:33 ` classabbyamp
2022-04-03  0:06 ` [PR PATCH] [Updated] " classabbyamp
2022-04-03  8:20 ` [PR PATCH] [Merged]: " paper42

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210821171018.GNuGj-IlxWQSUIMAIEJElFJY9Nkb4-Y-iIo8JxvRiwc@z \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).