mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 18:13:50 +02:00
CubicSDR: update to 0.2.5.
This commit is contained in:
parent
cff8b921db
commit
f4b05fcf11
2 changed files with 37 additions and 1 deletions
36
srcpkgs/CubicSDR/patches/hamlib42.patch
Normal file
36
srcpkgs/CubicSDR/patches/hamlib42.patch
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
Index: external/hamlib/hamlib/rig.h
|
||||||
|
===================================================================
|
||||||
|
--- external/hamlib/hamlib/rig.h
|
||||||
|
+++ external/hamlib/hamlib/rig.h
|
||||||
|
@@ -147,7 +147,7 @@ typedef struct rig RIG;
|
||||||
|
|
||||||
|
#define RIGNAMSIZ 30
|
||||||
|
#define RIGVERSIZ 8
|
||||||
|
-#define FILPATHLEN 100
|
||||||
|
+#define HAMLIB_FILPATHLEN 100
|
||||||
|
#define FRQRANGESIZ 30
|
||||||
|
#define MAXCHANDESC 30 /* describe channel eg: "WWV 5Mhz" */
|
||||||
|
#define TSLSTSIZ 20 /* max tuning step list size, zero ended */
|
||||||
|
@@ -1479,7 +1479,7 @@ typedef struct hamlib_port {
|
||||||
|
int timeout; /*!< Timeout, in mS */
|
||||||
|
int retry; /*!< Maximum number of retries, 0 to disable */
|
||||||
|
|
||||||
|
- char pathname[FILPATHLEN]; /*!< Port pathname */
|
||||||
|
+ char pathname[HAMLIB_FILPATHLEN]; /*!< Port pathname */
|
||||||
|
|
||||||
|
union {
|
||||||
|
struct {
|
||||||
|
|
||||||
|
Index: src/rig/RigThread.cpp
|
||||||
|
===================================================================
|
||||||
|
--- src/rig/RigThread.cpp
|
||||||
|
+++ src/rig/RigThread.cpp
|
||||||
|
@@ -114,7 +114,7 @@ void RigThread::run() {
|
||||||
|
std::cout << "Rig thread starting." << std::endl;
|
||||||
|
|
||||||
|
rig = rig_init(rigModel);
|
||||||
|
- strncpy(rig->state.rigport.pathname, rigFile.c_str(), FILPATHLEN - 1);
|
||||||
|
+ strncpy(rig->state.rigport.pathname, rigFile.c_str(), HAMLIB_FILPATHLEN - 1);
|
||||||
|
rig->state.rigport.parm.serial.rate = serialRate;
|
||||||
|
retcode = rig_open(rig);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'CubicSDR'
|
# Template file for 'CubicSDR'
|
||||||
pkgname=CubicSDR
|
pkgname=CubicSDR
|
||||||
version=0.2.5
|
version=0.2.5
|
||||||
revision=2
|
revision=3
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
build_helper="cmake-wxWidgets-gtk3"
|
build_helper="cmake-wxWidgets-gtk3"
|
||||||
configure_args="-DUSE_HAMLIB=1 $(vopt_bool alsa USE_AUDIO_ALSA)
|
configure_args="-DUSE_HAMLIB=1 $(vopt_bool alsa USE_AUDIO_ALSA)
|
||||||
|
|
Loading…
Add table
Reference in a new issue