6 changed files with 630 additions and 521 deletions
@ -0,0 +1,76 @@
@@ -0,0 +1,76 @@
|
||||
From effadce6c756247ea8bae32dc13bb3e6f464f0eb Mon Sep 17 00:00:00 2001
|
||||
From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
|
||||
Date: Sun, 16 Jul 2023 18:18:02 +0300
|
||||
Subject: [PATCH] avcodec/x86/mathops: clip constants used with shift
|
||||
instructions within inline assembly
|
||||
|
||||
Fixes assembling with binutil as >= 2.41
|
||||
|
||||
Signed-off-by: James Almer <jamrial@gmail.com>
|
||||
---
|
||||
libavcodec/x86/mathops.h | 26 +++++++++++++++++++++++---
|
||||
1 file changed, 23 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
|
||||
index 6298f5ed19..ca7e2dffc1 100644
|
||||
--- a/libavcodec/x86/mathops.h
|
||||
+++ b/libavcodec/x86/mathops.h
|
||||
@@ -35,12 +35,20 @@
|
||||
static av_always_inline av_const int MULL(int a, int b, unsigned shift)
|
||||
{
|
||||
int rt, dummy;
|
||||
+ if (__builtin_constant_p(shift))
|
||||
__asm__ (
|
||||
"imull %3 \n\t"
|
||||
"shrdl %4, %%edx, %%eax \n\t"
|
||||
:"=a"(rt), "=d"(dummy)
|
||||
- :"a"(a), "rm"(b), "ci"((uint8_t)shift)
|
||||
+ :"a"(a), "rm"(b), "i"(shift & 0x1F)
|
||||
);
|
||||
+ else
|
||||
+ __asm__ (
|
||||
+ "imull %3 \n\t"
|
||||
+ "shrdl %4, %%edx, %%eax \n\t"
|
||||
+ :"=a"(rt), "=d"(dummy)
|
||||
+ :"a"(a), "rm"(b), "c"((uint8_t)shift)
|
||||
+ );
|
||||
return rt;
|
||||
}
|
||||
|
||||
@@ -113,19 +121,31 @@ __asm__ volatile(\
|
||||
// avoid +32 for shift optimization (gcc should do that ...)
|
||||
#define NEG_SSR32 NEG_SSR32
|
||||
static inline int32_t NEG_SSR32( int32_t a, int8_t s){
|
||||
+ if (__builtin_constant_p(s))
|
||||
__asm__ ("sarl %1, %0\n\t"
|
||||
: "+r" (a)
|
||||
- : "ic" ((uint8_t)(-s))
|
||||
+ : "i" (-s & 0x1F)
|
||||
);
|
||||
+ else
|
||||
+ __asm__ ("sarl %1, %0\n\t"
|
||||
+ : "+r" (a)
|
||||
+ : "c" ((uint8_t)(-s))
|
||||
+ );
|
||||
return a;
|
||||
}
|
||||
|
||||
#define NEG_USR32 NEG_USR32
|
||||
static inline uint32_t NEG_USR32(uint32_t a, int8_t s){
|
||||
+ if (__builtin_constant_p(s))
|
||||
__asm__ ("shrl %1, %0\n\t"
|
||||
: "+r" (a)
|
||||
- : "ic" ((uint8_t)(-s))
|
||||
+ : "i" (-s & 0x1F)
|
||||
);
|
||||
+ else
|
||||
+ __asm__ ("shrl %1, %0\n\t"
|
||||
+ : "+r" (a)
|
||||
+ : "c" ((uint8_t)(-s))
|
||||
+ );
|
||||
return a;
|
||||
}
|
||||
|
||||
--
|
||||
2.30.2
|
||||
|
||||
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
From 48289eff726ba9ab23e495e068ded1ef514219d9 Mon Sep 17 00:00:00 2001
|
||||
From: Sergei Trofimovich <slyich@gmail.com>
|
||||
Date: Sun, 20 Aug 2023 10:05:53 +0100
|
||||
Subject: [PATCH] lms7002m_mcu: fix `gcc-13` build (missing <stdint.h>)
|
||||
|
||||
Without the change build on `gcc-13` fails as:
|
||||
|
||||
/build/source/src/lms7002m_mcu/MCU_File.cpp:340:21: error: 'uint8_t' was not declared in this scope
|
||||
340 | uint8_t i = 0;
|
||||
| ^~~~~~~
|
||||
/build/source/src/lms7002m_mcu/MCU_File.cpp:4:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
|
||||
3 | #include <iostream>
|
||||
+++ |+#include <cstdint>
|
||||
---
|
||||
src/lms7002m_mcu/MCU_File.cpp | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/lms7002m_mcu/MCU_File.cpp b/src/lms7002m_mcu/MCU_File.cpp
|
||||
index f1b6f667..65516fe3 100644
|
||||
--- a/src/lms7002m_mcu/MCU_File.cpp
|
||||
+++ b/src/lms7002m_mcu/MCU_File.cpp
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "MCU_File.h"
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
+#include <stdint.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -506,4 +507,4 @@ bool MCU_File::BitString(const unsigned long address, const unsigned char bits,
|
||||
mask <<= 1;
|
||||
}
|
||||
return true;
|
||||
-}
|
||||
\ No newline at end of file
|
||||
+}
|
||||
--
|
||||
2.41.0
|
||||
|
||||
@ -1,517 +0,0 @@
@@ -1,517 +0,0 @@
|
||||
{ |
||||
"app-id": "org.sdrangel.SDRangel", |
||||
"runtime": "org.kde.Platform", |
||||
"runtime-version": "5.12", |
||||
"sdk": "org.kde.Sdk", |
||||
"command": "sdrangel", |
||||
"rename-desktop-file": "sdrangel.desktop", |
||||
"rename-icon": "sdrangel_icon", |
||||
"copy-icon": true, |
||||
"finish-args": [ |
||||
"--filesystem=xdg-documents", |
||||
"--device=all", |
||||
"--share=network", |
||||
"--share=ipc", |
||||
"--socket=pulseaudio", |
||||
"--socket=x11", |
||||
"--socket=wayland", |
||||
"--env=QT_QPA_PLATFORM=xcb" |
||||
], |
||||
"modules": [ |
||||
{ |
||||
"name": "boost", |
||||
"buildsystem": "simple", |
||||
"sources": [ |
||||
{ |
||||
"type": "archive", |
||||
"url": "https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.tar.bz2", |
||||
"sha256": "d73a8da01e8bf8c7eda40b4c84915071a8c8a0df4a6734537ddde4a8580524ee" |
||||
} |
||||
], |
||||
"build-commands": [ |
||||
"./bootstrap.sh --prefix=/app", |
||||
"./b2 -j $FLATPAK_BUILDER_N_JOBS", |
||||
"./b2 install" |
||||
] |
||||
}, |
||||
{ |
||||
"name" : "libusb", |
||||
"config-opts" : [ |
||||
"--disable-udev" |
||||
], |
||||
"sources" : [ |
||||
{ |
||||
"type" : "archive", |
||||
"url" : "https://github.com/libusb/libusb/releases/download/v1.0.23/libusb-1.0.23.tar.bz2", |
||||
"sha256" : "db11c06e958a82dac52cf3c65cb4dd2c3f339c8a988665110e0d24d19312ad8d" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "libxml2", |
||||
"config-opts": [ |
||||
"--with-python=no" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "archive", |
||||
"url": "https://github.com/GNOME/libxml2/archive/v2.9.9.tar.gz", |
||||
"sha256": "d673f0284cec867ee00872a8152e0c3c09852f17fd9aa93f07579a37534f0bfe" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "fftw3", |
||||
"config-opts" : [ |
||||
"--enable-shared", |
||||
"--disable-static", |
||||
"--enable-threads", |
||||
"--enable-float" |
||||
], |
||||
"sources" : [ |
||||
{ |
||||
"type" : "archive", |
||||
"url" : "http://www.fftw.org/fftw-3.3.8.tar.gz", |
||||
"md5": "8aac833c943d8e90d51b697b27d4384d" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "xxd", |
||||
"build-options": { |
||||
"env": { |
||||
"LIBS": "-lm" |
||||
} |
||||
}, |
||||
"cleanup": [ |
||||
"/bin/vim*", |
||||
"/bin/rvim", |
||||
"/bin/view", |
||||
"/bin/rview", |
||||
"/bin/ex", |
||||
"/share" |
||||
], |
||||
"config-opts": [ |
||||
"--disable-gui", |
||||
"--disable-gtk3", |
||||
"--disable-luainterp", |
||||
"--disable-python3interp", |
||||
"--disable-xim", |
||||
"--disable-xsmp", |
||||
"--disable-xsmp-interact", |
||||
"--disable-desktop-database-update", |
||||
"--disable-icon-cache-update", |
||||
"--disable-gnome-check", |
||||
"--disable-motif-check", |
||||
"--disable-athena-check", |
||||
"--disable-fontset" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/vim/vim", |
||||
"tag": "v8.1.2102", |
||||
"commit": "d17a57a43330977b8f4eb36f1f7a4a66a7bb26c8" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "python-cheetah", |
||||
"buildsystem": "simple", |
||||
"sources": [ |
||||
{ |
||||
"type": "archive", |
||||
"url": "https://files.pythonhosted.org/packages/4e/72/e6a7d92279e3551db1b68fd336fd7a6e3d2f2ec742bf486486e6150d77d2/Cheetah3-3.2.4.tar.gz", |
||||
"sha256": "caabb9c22961a3413ac85cd1e5525ec9ca80daeba6555f4f60802b6c256e252b" |
||||
} |
||||
], |
||||
"build-commands": [ |
||||
"python setup.py install --prefix=/app --root=/" |
||||
] |
||||
}, |
||||
{ |
||||
"name": "python-mako", |
||||
"buildsystem": "simple", |
||||
"sources": [ |
||||
{ |
||||
"type": "archive", |
||||
"url": "https://files.pythonhosted.org/packages/b0/3c/8dcd6883d009f7cae0f3157fb53e9afb05a0d3d33b3db1268ec2e6f4a56b/Mako-1.1.0.tar.gz", |
||||
"sha256": "a36919599a9b7dc5d86a7a8988f23a9a3a3d083070023bab23d64f7f1d1e0a4b" |
||||
} |
||||
], |
||||
"build-commands": [ |
||||
"python setup.py install --prefix=/app --root=/" |
||||
] |
||||
}, |
||||
{ |
||||
"name": "opencv", |
||||
"buildsystem": "cmake-ninja", |
||||
"builddir": true, |
||||
"sources": [ |
||||
{ |
||||
"type": "archive", |
||||
"url": "https://github.com/opencv/opencv/archive/3.4.6.tar.gz", |
||||
"sha256": "e7d311ff97f376b8ee85112e2b536dbf4bdf1233673500175ed7cf21a0089f6d" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "libpostproc", |
||||
"config-opts": [ |
||||
"--disable-debug", |
||||
"--disable-doc", |
||||
"--disable-static", |
||||
"--enable-shared", |
||||
"--enable-gpl", |
||||
"--disable-libvpx", |
||||
"--disable-ffplay", |
||||
"--disable-ffprobe", |
||||
"--disable-ffserver", |
||||
"--disable-everything", |
||||
"--enable-postproc" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "archive", |
||||
"url": "https://ffmpeg.org/releases/ffmpeg-3.4.1.tar.xz", |
||||
"sha256": "5a77278a63741efa74e26bf197b9bb09ac6381b9757391b922407210f0f991c0" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "cm256cc", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/f4exb/cm256cc.git", |
||||
"commit": "f21e8bc" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "mbelib", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/szechyjs/mbelib.git", |
||||
"commit": "e2d84c1" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "serialdv", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/f4exb/serialDV.git", |
||||
"commit": "abd65a0" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "dsdcc", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DUSE_MBELIB=ON" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/f4exb/dsdcc.git", |
||||
"commit": "a0f4694" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "codec2", |
||||
"buildsystem": "cmake-ninja", |
||||
"builddir": true, |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/drowe67/codec2.git", |
||||
"commit": "76a20416d715ee06f8b36a9953506876689a3bd2" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "airspy", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/airspy/host.git", |
||||
"commit": "5c86e53" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "airspyhf", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DINSTALL_UDEV_RULES=OFF" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/airspy/airspyhf.git", |
||||
"commit": "99b1d38" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "rtlsdr", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DDETACH_KERNEL_DRIVER=ON" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/librtlsdr/librtlsdr.git", |
||||
"commit": "c7d970a" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "plutosdr", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DINSTALL_UDEV_RULE=OFF" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/analogdevicesinc/libiio.git", |
||||
"commit": "5bdc242" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "bladerf", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DINSTALL_UDEV_RULE=OFF" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/Nuand/bladeRF.git", |
||||
"commit": "32058c4" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "hackrf", |
||||
"buildsystem": "cmake-ninja", |
||||
"subdir": "host", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DINSTALL_UDEV_RULE=OFF" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/mossmann/hackrf.git", |
||||
"commit": "9bbbbbf" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "limesdr", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DENABLE_QUICKTEST=OFF", |
||||
"-DENABLE_GUI=OFF", |
||||
"-DENABLE_SOAPY_LMS7=OFF", |
||||
"-DENABLE_EXAMPLES=OFF", |
||||
"-DENABLE_UTILITIES=OFF", |
||||
"-DENABLE_HEADERS=ON", |
||||
"-DENABLE_SIMD_FLAGS=SSE3" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "archive", |
||||
"url": "https://github.com/myriadrf/LimeSuite/archive/v20.01.0.tar.gz", |
||||
"sha256": "3c1d898185419074ada669b6cb93f409f4c97a29df8778284f30f93b7879754d" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "perseus", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/f4exb/libperseus-sdr.git", |
||||
"commit": "afefa23" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "xtrx", |
||||
"buildsystem": "cmake-ninja", |
||||
"subdir": "sources", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DENABLE_SOAPY=NO" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/xtrx-sdr/images.git", |
||||
"commit": "9586a6e" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "uhd", |
||||
"buildsystem": "cmake-ninja", |
||||
"subdir": "host", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DENABLE_PYTHON_API=OFF", |
||||
"-DINSTALL_UDEV_RULES=OFF" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "git://github.com/EttusResearch/uhd.git", |
||||
"commit": "e0e61a5" |
||||
}, |
||||
{ |
||||
"type": "patch", |
||||
"path": "uhd-disable-ascii-art-dft.patch" |
||||
}, |
||||
{ |
||||
"type": "patch", |
||||
"path": "uhd-disable-latency-utils.patch" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "libmirisdr", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "git://github.com/f4exb/libmirisdr-4.git" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "soapy", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "git://github.com/pothosware/SoapySDR.git", |
||||
"commit": "5838bc9" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "soapy_remote", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "git://github.com/pothosware/SoapyRemote.git", |
||||
"commit": "4f5d717" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "soapy_limesdr", |
||||
"// TODO": "Basis is contained in build modules limesdr and soapy_remote", |
||||
"// buildsystem": "cmake-ninja", |
||||
"// config-opts": [ |
||||
"-Wno-dev" |
||||
] |
||||
}, |
||||
{ |
||||
"name": "soapy_uhd", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/pothosware/SoapyUHD.git", |
||||
"commit": "2900fff" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "soapy_redpitaya", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "git", |
||||
"url": "https://github.com/pothosware/SoapyRedPitaya.git", |
||||
"commit": "3d576f83b3bde52104b2a88150516ca8c9a78c7a" |
||||
} |
||||
] |
||||
}, |
||||
{ |
||||
"name": "sdrangel", |
||||
"buildsystem": "cmake-ninja", |
||||
"config-opts": [ |
||||
"-Wno-dev", |
||||
"-DDEBUG_OUTPUT=ON", |
||||
"-DCMAKE_BUILD_TYPE=RELEASE", |
||||
"-DRX_SAMPLE_24BIT=ON" |
||||
], |
||||
"sources": [ |
||||
{ |
||||
"type": "dir", |
||||
"path": ".." |
||||
}, |
||||
{ |
||||
"type": "shell", |
||||
"commands": ["sed -e 's|/usr/|/app/|g' -i cmake/Modules/FindSerialDV.cmake"] |
||||
} |
||||
] |
||||
} |
||||
] |
||||
} |
||||
@ -0,0 +1,507 @@
@@ -0,0 +1,507 @@
|
||||
id: org.sdrangel.SDRangel |
||||
runtime: org.kde.Platform |
||||
runtime-version: '6.9' |
||||
sdk: org.kde.Sdk |
||||
base: io.qt.qtwebengine.BaseApp |
||||
base-version: '6.9' |
||||
command: sdrangel |
||||
rename-desktop-file: sdrangel.desktop |
||||
rename-icon: sdrangel_icon |
||||
copy-icon: true |
||||
finish-args: |
||||
- --device=all |
||||
- --share=network |
||||
- --share=ipc |
||||
- --socket=pulseaudio |
||||
- --socket=x11 |
||||
- --filesystem=xdg-documents |
||||
cleanup-commands: |
||||
- /app/cleanup-BaseApp.sh |
||||
- mkdir -p ${FLATPAK_DEST}/lib/ffmpeg |
||||
add-extensions: |
||||
org.freedesktop.Platform.ffmpeg-full: |
||||
directory: lib/ffmpeg |
||||
add-ld-path: . |
||||
version: '24.08' |
||||
autodownload: true |
||||
autodelete: false |
||||
|
||||
modules: |
||||
- name: fftw3f |
||||
config-opts: |
||||
- --enable-threads |
||||
- --enable-shared |
||||
- --disable-static |
||||
- --enable-float |
||||
build-options: |
||||
arch: |
||||
x86_64: |
||||
config-opts: |
||||
- --enable-sse2 |
||||
- --enable-avx |
||||
- --enable-avx-128-fma |
||||
aarch64: |
||||
config-opts: |
||||
- --enable-neon |
||||
sources: |
||||
- type: archive |
||||
url: https://www.fftw.org/fftw-3.3.10.tar.gz |
||||
sha256: 56c932549852cddcfafdab3820b0200c7742675be92179e59e6215b340e26467 |
||||
|
||||
- name: libusb |
||||
config-opts: |
||||
- --disable-static |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/libusb/libusb/releases/download/v1.0.27/libusb-1.0.27.tar.bz2 |
||||
sha256: ffaa41d741a8a3bee244ac8e54a72ea05bf2879663c098c82fc5757853441575 |
||||
post-install: |
||||
- install -Dm644 COPYING ${FLATPAK_DEST}/share/licenses/libusb/COPYING |
||||
|
||||
- name: libxml2 |
||||
config-opts: |
||||
- --without-python |
||||
sources: |
||||
- type: archive |
||||
url: https://download.gnome.org/sources/libxml2/2.10/libxml2-2.10.4.tar.xz |
||||
sha256: ed0c91c5845008f1936739e4eee2035531c1c94742c6541f44ee66d885948d45 |
||||
|
||||
- name: boost |
||||
buildsystem: simple |
||||
sources: |
||||
- type: archive |
||||
url: https://sourceforge.net/projects/boost/files/boost/1.83.0/boost_1_83_0.tar.bz2 |
||||
sha256: 6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e |
||||
build-commands: |
||||
- ./bootstrap.sh --prefix=/app |
||||
- ./b2 -j $FLATPAK_BUILDER_N_JOBS |
||||
- ./b2 install |
||||
|
||||
- name: xxd |
||||
build-options: |
||||
env: |
||||
LIBS: -lm |
||||
cleanup: |
||||
- /bin/vim* |
||||
- /bin/rvim |
||||
- /bin/view |
||||
- /bin/rview |
||||
- /bin/ex |
||||
- /share |
||||
config-opts: |
||||
- --disable-gui |
||||
- --disable-gtk3 |
||||
- --disable-luainterp |
||||
- --disable-python3interp |
||||
- --disable-xim |
||||
- --disable-xsmp |
||||
- --disable-xsmp-interact |
||||
- --disable-desktop-database-update |
||||
- --disable-icon-cache-update |
||||
- --disable-gnome-check |
||||
- --disable-motif-check |
||||
- --disable-athena-check |
||||
- --disable-fontset |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/vim/vim/archive/refs/tags/v9.0.2059.tar.gz |
||||
sha256: 5b20c2fed3844ffbd2bef51d2e6de8e5c07f9c3cfb84e2679a729b69f178f8d6 |
||||
|
||||
- name: python-cheetah |
||||
buildsystem: simple |
||||
sources: |
||||
- type: archive |
||||
url: https://files.pythonhosted.org/packages/23/33/ace0250068afca106c1df34348ab0728e575dc9c61928d216de3e381c460/Cheetah3-3.2.6.post1.tar.gz |
||||
sha256: 58b5d84e5fbff6cf8e117414b3ea49ef51654c02ee887d155113c5b91d761967 |
||||
build-commands: |
||||
- python setup.py install --prefix=/app --root=/ |
||||
|
||||
- name: python-mako |
||||
buildsystem: simple |
||||
sources: |
||||
- type: archive |
||||
url: https://files.pythonhosted.org/packages/fa/0b/29bc5a230948bf209d3ed3165006d257e547c02c3c2a96f6286320dfe8dc/mako-1.3.6.tar.gz |
||||
sha256: 9ec3a1583713479fae654f83ed9fa8c9a4c16b7bb0daba0e6bbebff50c0d983d |
||||
build-commands: |
||||
- python setup.py install --prefix=/app --root=/ |
||||
|
||||
- name: flit-core |
||||
buildsystem: simple |
||||
sources: |
||||
- type: archive |
||||
url: https://files.pythonhosted.org/packages/d5/ae/09427bea9227a33ec834ed5461432752fd5d02b14f93dd68406c91684622/flit_core-3.10.1.tar.gz |
||||
sha256: 66e5b87874a0d6e39691f0e22f09306736b633548670ad3c09ec9db03c5662f7 |
||||
build-commands: |
||||
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST} |
||||
--no-build-isolation . |
||||
|
||||
- name: pyproject-metadata |
||||
buildsystem: simple |
||||
sources: |
||||
- type: archive |
||||
url: https://files.pythonhosted.org/packages/c0/79/406a9f56c435caaaca4a1c66397e4f63ecd48a72a6c4fc1d9ecdaac66acb/pyproject_metadata-0.9.0.tar.gz |
||||
sha256: 8511c00a4cad96686af6a6b4143433298beb96105a9379afdc9b0328f4f260c9 |
||||
build-commands: |
||||
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST} |
||||
--no-build-isolation . |
||||
|
||||
- name: python-meson |
||||
buildsystem: simple |
||||
sources: |
||||
- type: archive |
||||
url: https://files.pythonhosted.org/packages/67/66/91d242ea8dd1729addd36069318ba2cd03874872764f316c3bb51b633ed2/meson_python-0.17.1.tar.gz |
||||
sha256: efb91f69f2e19eef7bc9a471ed2a4e730088cc6b39eacaf3e49fc4f930eb5f83 |
||||
build-commands: |
||||
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST} |
||||
--no-build-isolation . |
||||
|
||||
- name: python-numpy |
||||
buildsystem: simple |
||||
sources: |
||||
- type: archive |
||||
url: https://files.pythonhosted.org/packages/25/ca/1166b75c21abd1da445b97bf1fa2f14f423c6cfb4fc7c4ef31dccf9f6a94/numpy-2.1.3.tar.gz |
||||
sha256: aa08e04e08aaf974d4458def539dece0d28146d866a39da5639596f4921fd761 |
||||
build-commands: |
||||
- pip3 install --no-index --find-links=file://${PWD} --prefix=${FLATPAK_DEST} |
||||
--no-build-isolation . |
||||
|
||||
- name: opencv |
||||
buildsystem: cmake-ninja |
||||
builddir: true |
||||
build-options: |
||||
cxxflags: -std=c++14 |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/opencv/opencv/archive/refs/tags/4.8.1.tar.gz |
||||
sha256: 62f650467a60a38794d681ae7e66e3e8cfba38f445e0bf87867e2f2cdc8be9d5 |
||||
|
||||
- name: libpostproc |
||||
config-opts: |
||||
- --disable-debug |
||||
- --disable-doc |
||||
- --disable-static |
||||
- --enable-shared |
||||
- --enable-gpl |
||||
- --disable-libvpx |
||||
- --disable-ffplay |
||||
- --disable-ffprobe |
||||
- --disable-everything |
||||
- --enable-postproc |
||||
sources: |
||||
- type: archive |
||||
url: https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz |
||||
sha256: 57be87c22d9b49c112b6d24bc67d42508660e6b718b3db89c44e47e289137082 |
||||
- type: patch |
||||
path: ffmpeg-fix-assembling.patch |
||||
|
||||
- name: libaio |
||||
no-autogen: true |
||||
make-install-args: |
||||
- prefix=${FLATPAK_DEST} |
||||
sources: |
||||
- type: archive |
||||
url: https://pagure.io/libaio/archive/libaio-0.3.113/libaio-libaio-0.3.113.tar.gz |
||||
sha256: 716c7059703247344eb066b54ecbc3ca2134f0103307192e6c2b7dab5f9528ab |
||||
|
||||
- name: cm256cc |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/f4exb/cm256cc.git |
||||
commit: 6f4a51802f5f302577d6d270a9fc0cb7a1ee28ef |
||||
|
||||
- name: mbelib |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/szechyjs/mbelib/archive/refs/tags/v1.3.0.tar.gz |
||||
sha256: 5a2d5ca37cef3b6deddd5ce8c73918f27936c50eb0e63b27e4b4fc493310518d |
||||
|
||||
- name: serialdv |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/f4exb/serialDV/archive/refs/tags/v1.1.4.tar.gz |
||||
sha256: 0764701ac7b52ab4e7db26d91b0c0d5206377574a8ce4d705c9ec99b8f85ef79 |
||||
|
||||
- name: dsdcc |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DUSE_MBELIB=ON |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/f4exb/dsdcc/archive/refs/tags/v1.9.4.tar.gz |
||||
sha256: 23b96630c5d2d3d2f8dabfd6e36aea34b670a286c835790af811f209cf408960 |
||||
|
||||
- name: codec2 |
||||
buildsystem: cmake-ninja |
||||
builddir: true |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/drowe67/codec2/archive/refs/tags/1.2.0.tar.gz |
||||
sha256: cbccae52b2c2ecc5d2757e407da567eb681241ff8dadce39d779a7219dbcf449 |
||||
|
||||
- name: faad2 |
||||
sources: |
||||
- type: archive |
||||
url: https://sourceforge.net/projects/faac/files/faad2-src/faad2-2.8.0/faad2-2.8.8.tar.gz |
||||
sha256: 985c3fadb9789d2815e50f4ff714511c79c2710ac27a4aaaf5c0c2662141426d |
||||
|
||||
- name: libdab |
||||
subdir: library |
||||
buildsystem: cmake-ninja |
||||
builddir: true |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/JvanKatwijk/dab-cmdline.git |
||||
commit: a09145a128fc2824ca5a04b2a5897b820328183f |
||||
|
||||
- name: hidapi |
||||
buildsystem: cmake-ninja |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.14.0.tar.gz |
||||
sha256: a5714234abe6e1f53647dd8cba7d69f65f71c558b7896ed218864ffcf405bcbd |
||||
|
||||
- name: graphviz |
||||
buildsystem: cmake-ninja |
||||
sources: |
||||
- type: archive |
||||
url: https://gitlab.com/graphviz/graphviz/-/archive/12.0.0/graphviz-12.0.0.tar.gz |
||||
sha256: ea12b4f73e7c7eb9fb9c1c29f7763491306c322f6f2332a352d09debc37f0ed7 |
||||
|
||||
- name: libsigmf |
||||
buildsystem: cmake-ninja |
||||
build-options: |
||||
cflags: -Wno-error |
||||
cflags-override: true |
||||
cxxflags: -Wno-error |
||||
cxxflags-override: true |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/f4exb/libsigmf.git |
||||
# branch: new-namespaces |
||||
commit: 299dc8f9725f1733e5cc1ce8a69fbcf7f18a2f58 |
||||
|
||||
- name: sgp4 |
||||
buildsystem: cmake-ninja |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/dnwrnr/sgp4.git |
||||
commit: 6a448b4850e5fbf8c1ca03bb5f6013a9fdc1fd91 |
||||
|
||||
- name: aptdec |
||||
buildsystem: cmake-ninja |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/srcejon/aptdec.git |
||||
# branch: libaptdec |
||||
commit: 3e8297a912f89a3c42af0845b83a209a6cd13c55 |
||||
|
||||
- name: ggmorse |
||||
buildsystem: cmake-ninja |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/f4exb/ggmorse.git |
||||
commit: 75c335f343aa15514c6437c5c19c7ea54ea3ce7e |
||||
|
||||
- name: hamlib |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/Hamlib/Hamlib/releases/download/4.6.5/hamlib-4.6.5.tar.gz |
||||
sha256: 90d6f1dba59417c00f8f4545131c7efd31930cd0e178598980a8210425e3852e |
||||
|
||||
- name: airspy |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/airspy/airspyone_host/archive/refs/tags/v1.0.10.tar.gz |
||||
sha256: fcca23911c9a9da71cebeffeba708c59d1d6401eec6eb2dd73cae35b8ea3c613 |
||||
|
||||
- name: airspyhf |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DINSTALL_UDEV_RULES=OFF |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/airspy/airspyhf/archive/refs/tags/1.6.8.tar.gz |
||||
sha256: cd1e5ae89e09b813b096ae4a328e352c9432a582e03fd7da86760ba60efa77ab |
||||
|
||||
- name: bladerf |
||||
buildsystem: cmake-ninja |
||||
build-options: |
||||
cflags: "-Wno-calloc-transposed-args" |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/Nuand/bladeRF.git |
||||
tag: '2023.02' |
||||
commit: 41ef63460956e833c9b321252245257ab3946055 |
||||
|
||||
- name: rtlsdr |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DDETACH_KERNEL_DRIVER=ON |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/steve-m/librtlsdr.git |
||||
commit: 619ac3186ea0ffc092615e1f59f7397e5e6f668c |
||||
|
||||
- name: plutosdr |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DINSTALL_UDEV_RULE=OFF |
||||
- -DHAVE_DNS_SD=OFF |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/analogdevicesinc/libiio/archive/refs/tags/v0.24.tar.gz |
||||
sha256: a2b5d848531ea64fd9f95327dfd5a588bd227d9577281ec375e822702c6a52d5 |
||||
|
||||
- name: hackrf |
||||
buildsystem: cmake-ninja |
||||
subdir: host |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DINSTALL_UDEV_RULE=OFF |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/greatscottgadgets/hackrf/archive/refs/tags/v2023.01.1.tar.gz |
||||
sha256: fd10cd3650900aef7546e7a40a2d475db9dd1eab86b5d6f0c1188c91bedadd31 |
||||
|
||||
- name: limesdr |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DENABLE_QUICKTEST=OFF |
||||
- -DENABLE_GUI=OFF |
||||
- -DENABLE_SOAPY_LMS7=OFF |
||||
- -DENABLE_EXAMPLES=OFF |
||||
- -DENABLE_UTILITIES=OFF |
||||
- -DENABLE_HEADERS=ON |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/myriadrf/LimeSuite/archive/refs/tags/v22.09.0.tar.gz |
||||
sha256: 521e45298e1ffd0fd65006598e1edf37bd92a13667afaab262582fc681f1cf16 |
||||
- type: patch |
||||
path: limesdr-fix-gcc-13-build.patch |
||||
|
||||
- name: perseus |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/f4exb/libperseus-sdr.git |
||||
commit: 30de6c708fa6afe2040a80df74afb39dcdc6e74a |
||||
|
||||
- name: xtrx |
||||
buildsystem: cmake-ninja |
||||
subdir: sources |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DENABLE_SOAPY=NO |
||||
sources: |
||||
- type: git |
||||
url: https://github.com/xtrx-sdr/images.git |
||||
commit: e7c68fa621004ee0d6a65171c786fd9d5a1f2ce6 |
||||
|
||||
- name: uhd |
||||
buildsystem: cmake-ninja |
||||
subdir: host |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DENABLE_PYTHON_API=OFF |
||||
- -DINSTALL_UDEV_RULES=OFF |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/EttusResearch/uhd/archive/refs/tags/v4.5.0.0.tar.gz |
||||
sha256: ca8217b1f0591fb99432a94f225e74fb4d0fe541d496ec1386221b6438d4875d |
||||
- type: patch |
||||
paths: |
||||
- uhd-disable-ascii-art-dft.patch |
||||
- uhd-disable-latency-utils.patch |
||||
|
||||
- name: libmirisdr |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/f4exb/libmirisdr-4/archive/refs/tags/v2.0.0.tar.gz |
||||
sha256: c9fa00737f37de788873248c71dd653b0e9c043aed70620ea17cfde8894be2df |
||||
|
||||
- name: soapy |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/pothosware/SoapySDR/archive/refs/tags/soapy-sdr-0.8.1.tar.gz |
||||
sha256: a508083875ed75d1090c24f88abef9895ad65f0f1b54e96d74094478f0c400e6 |
||||
|
||||
- name: soapy_remote |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/pothosware/SoapyRemote/archive/refs/tags/soapy-remote-0.5.2.tar.gz |
||||
sha256: 66a372d85c984e7279b4fdc0a7f5b0d7ba340e390bc4b8bd626a6523cd3c3c76 |
||||
|
||||
- name: soapy_uhd |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/pothosware/SoapyUHD/archive/refs/tags/soapy-uhd-0.4.1.tar.gz |
||||
sha256: 9779cce2e732cd41905b6cf8ea85edbbf51b1ac918e6180bd4891eebb4c8d085 |
||||
|
||||
- name: soapy_redpitaya |
||||
buildsystem: cmake-ninja |
||||
config-opts: |
||||
- -Wno-dev |
||||
sources: |
||||
- type: archive |
||||
url: https://github.com/pothosware/SoapyRedPitaya/archive/refs/tags/soapy-redpitaya-0.1.1.tar.gz |
||||
sha256: 71306b1bdc4bd53b059e374797e4ad86672221d5f8534bda60f2dc726005be50 |
||||
|
||||
- name: sdrangel |
||||
buildsystem: cmake-ninja |
||||
build-options: |
||||
cxxflags: -fpermissive |
||||
arch: |
||||
x86_64: |
||||
config-opts: |
||||
- -DARCH_OPT=nehalem |
||||
config-opts: |
||||
- -Wno-dev |
||||
- -DCMAKE_BUILD_TYPE=RelWithDebInfo |
||||
- -DRX_SAMPLE_24BIT=ON |
||||
- -DENABLE_QT6=ON |
||||
sources: |
||||
- type: dir |
||||
path: .. |
||||
- type: shell |
||||
commands: |
||||
- sed -e 's|/usr/|/app/|g' -i cmake/Modules/FindSerialDV.cmake |
||||
- sed -e 's|/usr/|/app/|g' -i cmake/Modules/FindLibDAB.cmake |
||||
- sed -e 's|/usr/|/app/|g' -i cmake/Modules/FindSgp4.cmake |
||||
- sed -e 's|/usr/|/app/|g' -i cmake/Modules/FindAptDec.cmake |
||||
Loading…
Reference in new issue