diff options
-rw-r--r-- | net-wireless/sdrpp/Manifest | 1 | ||||
-rw-r--r-- | net-wireless/sdrpp/files/lib64.patch | 11 | ||||
-rw-r--r-- | net-wireless/sdrpp/metadata.xml | 23 | ||||
-rw-r--r-- | net-wireless/sdrpp/sdrpp-1.2.0.ebuild | 95 |
4 files changed, 130 insertions, 0 deletions
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 +} |