-- 2nd part is a workaround for https://github.com/jacktrip/jacktrip/issues/1381

--- CMakeLists.txt.orig	2025-01-21 17:04:33 UTC
+++ CMakeLists.txt
@@ -101,7 +101,7 @@ string(PREPEND QtVersion "Qt")
 
 string(PREPEND QtVersion "Qt")
 
-if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
   find_package(PkgConfig REQUIRED)
   pkg_check_modules(JACK REQUIRED IMPORTED_TARGET jack)
   if (weakjack)
@@ -217,6 +217,9 @@ if (NOT nogui)
       src/vs/vsAudio.cpp
       src/vs/vsWebSocket.cpp
       src/vs/vsPermissions.cpp
+      src/vs/vsPinger.cpp
+      src/vs/vsPing.cpp
+      src/vs/WebSocketTransport.cpp
       src/vs/vs.qrc
       src/images/images.qrc
       src/Analyzer.cpp
