Browse Source

comms/sdr++: Add Airspy HF+ support

Approved by:	yuri (maintainer)
2022Q3
Dmitri Goutnik 2 weeks ago
parent
commit
3575e3dddb
  1. 5
      comms/sdr++/Makefile
  2. 15
      comms/sdr++/files/patch-CMakeLists.txt
  3. 8
      comms/sdr++/pkg-message
  4. 2
      comms/sdr++/pkg-plist

5
comms/sdr++/Makefile

@ -1,5 +1,6 @@
PORTNAME= sdr++
DISTVERSION= 1.0.4
PORTREVISION= 1
CATEGORIES= comms hamradio
MAINTAINER= yuri@FreeBSD.org
@ -10,6 +11,7 @@ LICENSE_FILE= ${WRKSRC}/license
LIB_DEPENDS= libad9361.so:misc/libad9361-iio \
libairspy.so:comms/airspy \
libairspyhf.so:comms/airspyhf \
libfftw3f.so:math/fftw3-float \
libglfw.so:graphics/glfw \
libhackrf.so:comms/hackrf \
@ -27,6 +29,7 @@ USE_GITHUB= yes
GH_ACCOUNT= AlexandreRouma
GH_PROJECT= SDRPlusPlus
CMAKE_OFF= OPT_BUILD_AIRSPYHF_SOURCE # dependency isn't ported yet
# Broken with clang 14
CMAKE_OFF= OPT_BUILD_DISCORD_PRESENCE
.include <bsd.port.mk>

15
comms/sdr++/files/patch-CMakeLists.txt

@ -1,17 +1,22 @@
--- CMakeLists.txt.orig 2022-06-23 16:25:30 UTC
--- CMakeLists.txt.orig 2021-10-17 22:38:02 UTC
+++ CMakeLists.txt
@@ -3,8 +3,8 @@ project(sdrpp)
@@ -1,11 +1,11 @@ project(sdrpp)
cmake_minimum_required(VERSION 3.13)
project(sdrpp)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
-if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+#if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_INSTALL_PREFIX "/usr/local")
-else()
- set(CMAKE_INSTALL_PREFIX "/usr")
-endif()
+#else()
+# set(CMAKE_INSTALL_PREFIX "/usr")
endif()
+#endif()
# Compatibility Options
@@ -206,8 +206,8 @@ install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/icons D
option(OPT_OVERRIDE_STD_FILESYSTEM "Use a local version of std::filesystem on systems that don't have it yet" OFF)
@@ -206,8 +206,8 @@ configure_file(${CMAKE_SOURCE_DIR}/sdrpp.desktop ${CMA
install(DIRECTORY ${CMAKE_SOURCE_DIR}/root/res/themes DESTINATION share/sdrpp)
configure_file(${CMAKE_SOURCE_DIR}/sdrpp.desktop ${CMAKE_CURRENT_BINARY_DIR}/sdrpp.desktop @ONLY)

8
comms/sdr++/pkg-message

@ -0,0 +1,8 @@
[
{ type: install
message: <<EOM
This port requires audio/rtaudio built with PULSEAUDIO option.
audio/rtaudio currently doesn't work with PCM devices directly.
EOM
}
]

2
comms/sdr++/pkg-plist

@ -5,8 +5,8 @@ lib/libcorrect.a
lib/libcorrect.so
lib/libsdrpp_core.so
lib/sdrpp/plugins/airspy_source.so
lib/sdrpp/plugins/airspyhf_source.so
lib/sdrpp/plugins/audio_sink.so
lib/sdrpp/plugins/discord_integration.so
lib/sdrpp/plugins/file_source.so
lib/sdrpp/plugins/frequency_manager.so
lib/sdrpp/plugins/hackrf_source.so

Loading…
Cancel
Save