head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2026.01.19.13.40.53; author mef; state Exp; branches; next ; commitid yWKM2nfdqQdYu0rG; desc @@ 1.1 log @ham/wsjtx: import wsjtx-2.5.4 Weak Signal Communication Software WSJT-X, WSJT, MAP65, and WSPR are open-source programs designed for weak-signal digital communication by amateur radio. Normal usage requires a standard SSB transceiver and a personal computer with soundcard, or the equivalent. SDR-style hardware including the SDR-IQ, Perseus, SoftRock, and FUNcube Dongle is supported by MAP65 and WSPR. SimJT is a utility program that generates simulated signals for test purposes. All of the programs are available free of charge, licensed under the GNU General Public License. Installation packages for WSJT-X are available for Windows, Linux, and OS X; WSJT and WSPR have Windows and Linux packages, and MAP65 and SimJT are Windows only. For further details about source code and operating systems, see the Program Development page. @ text @$NetBSD$ From FreeBSD ports 2.5.4 --- wsjtx/CMake/Modules/FindUsb.cmake.orig 2021-11-03 19:53:01.000000000 -0400 +++ CMake/Modules/FindUsb.cmake 2021-12-31 07:48:03.412537000 -0500 @@@@ -13,25 +13,35 @@@@ # Usb::Usb - The libusb library # +if ( CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" ) + message ( Status "FreeBSD libusb is built in") + set (Usb_FOUND True) + set(Usb_LIBRARY "usb") + set(Usb_INCLUDE_DIR "/usr/include") + set(Usb_LIBRARIES "") + add_library (Usb "usb") +else() include (LibFindMacros) -if (WIN32) - # Use path suffixes on MS Windows as we probably shouldn't - # trust the PATH envvar. PATH will still be searched to find the - # library as last resort. - if (CMAKE_SIZEOF_VOID_P MATCHES "8") - set (_library_options PATH_SUFFIXES MinGW64/dll MinGW64/static) - else () - set (_library_options PATH_SUFFIXES MinGW32/dll MinGW32/static) - endif () -endif () -libfind_pkg_detect (Usb usb-1.0 - FIND_PATH libusb.h PATH_SUFFIXES libusb-1.0 - FIND_LIBRARY usb-1.0 ${_library_options} - ) + if (WIN32) + # Use path suffixes on MS Windows as we probably shouldn't + # trust the PATH envvar. PATH will still be searched to find the + # library as last resort. + if (CMAKE_SIZEOF_VOID_P MATCHES "8") + set (_library_options PATH_SUFFIXES MinGW64/dll MinGW64/static) + else () + set (_library_options PATH_SUFFIXES MinGW32/dll MinGW32/static) + endif () + endif () -libfind_process (Usb) + libfind_pkg_detect (Usb usb-1.0 + FIND_PATH libusb.h PATH_SUFFIXES libusb-1.0 + FIND_LIBRARY usb-1.0 ${_library_options} + ) + libfind_process (Usb) +endif() + if (Usb_FOUND AND NOT TARGET Usb::Usb) add_library (Usb::Usb UNKNOWN IMPORTED) set_target_properties (Usb::Usb PROPERTIES @@@@ -40,10 +50,12 @@@@ INTERFACE_INCLUDE_DIRECTORIES "${Usb_INCLUDE_DIRS}" INTERFACE_LINK_LIBRARIES "${Usb_LIBRARIES}" ) -endif () +endif() +if ( NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" ) mark_as_advanced ( Usb_INCLUDE_DIR Usb_LIBRARY Usb_LIBRARIES ) +endif() @