mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
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:
32
net-wireless/libxtrx/files/libxtrx-cmake4.patch
Normal file
32
net-wireless/libxtrx/files/libxtrx-cmake4.patch
Normal 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)
|
||||
|
||||
@@ -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)"
|
||||
@@ -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)"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user