--- deps_src/hidapi/CMakeLists.txt.orig	2025-10-02 17:32:12 UTC
+++ deps_src/hidapi/CMakeLists.txt
@@ -22,4 +22,9 @@
 	# Don't link the udev library, as there are two versions out there (libudev.so.0, libudev.so.1), so they are linked explicitely.
 #	target_link_libraries(hidapi udev)
 	target_link_libraries(hidapi dl)
+elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+	find_package(PkgConfig REQUIRED)
+	pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
+	target_include_directories(hidapi SYSTEM PRIVATE ${LIBUSB_INCLUDE_DIRS})
+	target_link_libraries(hidapi ${LIBUSB_LIBRARIES} iconv)
 endif()
