net-wireless/libxtrx: Fix build with CMake 4

* add missing remote ID

Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein
2025-07-12 11:23:07 +02:00
parent 57bc618a92
commit 9ae5d18cae
4 changed files with 43 additions and 8 deletions

View File

@@ -0,0 +1,32 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4615124..68551c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
+cmake_minimum_required(VERSION 3.10)
project(libxtrx C)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
-cmake_minimum_required(VERSION 2.8)
# Set the version information here
diff --git a/examples/xtrx_fft/CMakeLists.txt b/examples/xtrx_fft/CMakeLists.txt
index 2d1662a..eb044c5 100644
--- a/examples/xtrx_fft/CMakeLists.txt
+++ b/examples/xtrx_fft/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1.0)
+cmake_minimum_required(VERSION 3.10)
project(fft_wnd)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
diff --git a/soapy/CMakeLists.txt b/soapy/CMakeLists.txt
index edfe657..167887e 100644
--- a/soapy/CMakeLists.txt
+++ b/soapy/CMakeLists.txt
@@ -1,3 +1,4 @@
+cmake_minimum_required(VERSION 3.10)
set(CMAKE_CXX_STANDARD 11)
project(soapyxtrx C CXX)

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit cmake
@@ -20,8 +20,6 @@ else
KEYWORDS="~amd64 ~x86"
fi
IUSE=""
RDEPEND="
net-wireless/libxtrxll:=
net-wireless/libxtrxdsp:=
@@ -30,6 +28,8 @@ RDEPEND="
# soapy? ( net-wireless/soapysdr )
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}"/${PN}-cmake4.patch )
src_configure() {
#fails to build, not sure why
#-DENABLE_SOAPY="$(usex soapy ON OFF)"

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit cmake
@@ -20,8 +20,6 @@ else
KEYWORDS="~amd64 ~x86"
fi
IUSE=""
RDEPEND="
net-wireless/libxtrxll:=
net-wireless/libxtrxdsp:=
@@ -30,6 +28,8 @@ RDEPEND="
# soapy? ( net-wireless/soapysdr )
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}"/${PN}-cmake4.patch )
src_configure() {
#fails to build, not sure why
#-DENABLE_SOAPY="$(usex soapy ON OFF)"

View File

@@ -5,4 +5,7 @@
<email>radio@gentoo.org</email>
<name>Radio</name>
</maintainer>
<upstream>
<remote-id type="github">xtrx-sdr/libxtrx</remote-id>
</upstream>
</pkgmetadata>