public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: net-wireless/sdrpp/, net-wireless/sdrpp/files/
Date: Sat, 15 Jun 2024 15:55:14 +0000 (UTC)	[thread overview]
Message-ID: <1718463553.618816b32d9eb3a89954d82ccb9eb994b45a8952.julien@gentoo> (raw)

commit:     618816b32d9eb3a89954d82ccb9eb994b45a8952
Author:     Eli Burch <eli.burch <AT> burchbytes <DOT> com>
AuthorDate: Sat Jun 15 14:53:39 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sat Jun 15 14:59:13 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=618816b3

net-wireless/sdrpp: new package, add 1.2.0

Signed-off-by: Eli Burch <eli.burch <AT> burchbytes.com>

 net-wireless/sdrpp/Manifest           |  1 +
 net-wireless/sdrpp/files/lib64.patch  | 11 ++++
 net-wireless/sdrpp/metadata.xml       | 23 +++++++++
 net-wireless/sdrpp/sdrpp-1.2.0.ebuild | 95 +++++++++++++++++++++++++++++++++++
 4 files changed, 130 insertions(+)

diff --git a/net-wireless/sdrpp/Manifest b/net-wireless/sdrpp/Manifest
new file mode 100644
index 000000000..a2347fb90
--- /dev/null
+++ b/net-wireless/sdrpp/Manifest
@@ -0,0 +1 @@
+DIST sdrpp-1.2.0.tar.gz 3719680 BLAKE2B 0d6e8aa35fa6378687fd6c691e391c3ebe9a1302d9d7ca5511c439d701f3ca5b52c85b85f2a74efc0f2ef7c71e446217519d70a1049b484b4ff48aa81ae6b78b SHA512 7bf829149a5be59686ce973c25062281a2542255ea87fbcb9277a1dfcbc2584f41e33009e6dbff45d6696affc6ba25b0c357cd67f7d7a2968acca161a1144bc4

diff --git a/net-wireless/sdrpp/files/lib64.patch b/net-wireless/sdrpp/files/lib64.patch
new file mode 100644
index 000000000..1233c85fd
--- /dev/null
+++ b/net-wireless/sdrpp/files/lib64.patch
@@ -0,0 +1,11 @@
+diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
+index f194d7a..7aa825d 100644
+--- a/core/CMakeLists.txt
++++ b/core/CMakeLists.txt
+@@ -167,4 +167,4 @@ set(CORE_FILES ${RUNTIME_OUTPUT_DIRECTORY} PARENT_SCOPE)
+ # cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/dev/vcpkg/scripts/buildsystems/vcpkg.cmake"
+ 
+ # Install directives
+-install(TARGETS sdrpp_core DESTINATION lib)
+\ No newline at end of file
++install(TARGETS sdrpp_core DESTINATION lib64)

diff --git a/net-wireless/sdrpp/metadata.xml b/net-wireless/sdrpp/metadata.xml
new file mode 100644
index 000000000..54d8c6579
--- /dev/null
+++ b/net-wireless/sdrpp/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>eli.burch@burchbytes.com</email>
+		<name>Eli Burch</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">AlexandreRouma/SDRPlusPlus</remote-id>
+	</upstream>
+	<use>
+		<flag name="airspy">Support for airspy hardware</flag>
+		<flag name="airspyhf">Support for airspyhf+ hardware</flag>
+		<flag name="hackrf">Support for HackRF hardware</flag>
+		<flag name="rtlsdr">Support for rtlsdr dongles</flag>
+		<flag name="soapy">Support for hardware supported by SoapySDR</flag>
+		<flag name="bladerf">Support for bladerf hardware</flag>
+		<flag name="hermes">Support for hermes</flag>
+		<flag name="plutosdr">Support for plutosdr hardware</flag>
+		<flag name="sdrplay">Support for sdrplay hardware</flag>
+		<flag name="uhd">Support for uhd hardware</flag>
+	</use>
+</pkgmetadata>

diff --git a/net-wireless/sdrpp/sdrpp-1.2.0.ebuild b/net-wireless/sdrpp/sdrpp-1.2.0.ebuild
new file mode 100644
index 000000000..4cb7415b9
--- /dev/null
+++ b/net-wireless/sdrpp/sdrpp-1.2.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CMAKE_MAKEFILE_GENERATOR="emake"
+inherit cmake
+
+DESCRIPTION="Cross-Platform SDR Software "
+HOMEPAGE="https://www.sdrpp.org/"
+SRC_URI="https://github.com/AlexandreRouma/SDRPlusPlus/archive/206ce6e8c37aa7ee2e1990b80644330b6ac69b6b.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Sources
+SOURCES_IUSE="airspy airspyhf bladerf hackrf hermes plutosdr rtlsdr sdrplay soapy uhd"
+
+SINKS_IUSE="portaudio"
+
+IUSE="${SOURCES_IUSE} ${SINKS_IUSE}"
+
+DEPEND="sci-libs/fftw
+	media-libs/glfw
+	media-libs/glew
+	sci-libs/volk
+	app-arch/zstd
+	media-libs/rtaudio
+	dev-build/cmake
+	airspy? (
+		net-wireless/airspy
+	)
+	airspyhf? (
+		net-wireless/airspyhf
+	)
+	bladerf? (
+		net-wireless/bladerf
+	)
+	hackrf? (
+		net-libs/libhackrf
+	)
+	plutosdr? (
+		net-libs/libad9361-iio
+		net-libs/libiio
+	)
+	sdrplay? (
+		net-wireless/sdrplay
+	)
+	soapy? (
+		net-wireless/soapysdr
+	)
+	rtlsdr? (
+		net-wireless/rtl-sdr
+	)
+	uhd? (
+		net-wireless/uhd
+	)
+	portaudio? (
+		media-libs/portaudio
+	)
+"
+RDEPEND="${DEPEND}"
+
+src_unpack(){
+	default
+	mv SDRPlusPlus* "${P}" || die
+}
+
+src_prepare(){
+	if [ "${ARCH}" = "amd64" ];
+	then
+		eapply "${FILESDIR}/lib64.patch"
+	fi
+	cmake_src_prepare
+}
+
+src_configure(){
+	mycmakeargs+=(
+		-DOPT_BUILD_AIRSPY_SOURCE=$(usex airspy ON OFF)
+		-DOPT_BUILD_AIRSPYHF_SOURCE=$(usex airspyhf ON OFF)
+		-DOPT_BUILD_BLADERF_SOURCE=$(usex bladerf ON OFF)
+		-DOPT_BUILD_HACKRF_SOURCE=$(usex hackrf ON OFF)
+		-DOPT_BUILD_HERMES_SOURCE=$(usex hermes ON OFF)
+		-DOPT_BUILD_PLUTOSDR_SOURCE=$(usex plutosdr ON OFF)
+		-DOPT_BUILD_RTL_SDR_SOURCE=$(usex rtlsdr ON OFF)
+		-DOPT_BUILD_SDRPLAY_SOURCE=$(usex sdrplay ON OFF)
+		-DOPT_BUILD_SOAPY_SOURCE=$(usex soapy ON OFF)
+		-DOPT_BUILD_USRP_SOURCE=$(usex uhd ON OFF)
+		-DOPT_BUILD_NEW_PORTAUDIO_SINK=$(usex portaudio ON OFF)
+		-DOPT_BUILD_PORTAUDIO_SINK=$(usex portaudio ON OFF)
+		-DOPT_BUILD_DISCORD_PRESENCE="OFF"
+	)
+	cmake_src_configure
+}


             reply	other threads:[~2024-06-15 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-15 15:55 Julien Roy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-06-19  7:15 [gentoo-commits] repo/proj/guru:master commit in: net-wireless/sdrpp/, net-wireless/sdrpp/files/ Florian Schmaus
2024-06-25  9:52 David Roman

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=1718463553.618816b32d9eb3a89954d82ccb9eb994b45a8952.julien@gentoo \
    --to=julien@jroy.ca \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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