head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.8 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.6 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.4 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.2 pkgsrc-2025Q2-base:1.1; locks; strict; comment @# @; 1.1 date 2025.04.13.16.07.16; author jmcneill; state Exp; branches; next ; commitid 4b7qj1TMzeOVkUQF; desc @@ 1.1 log @direwolf: Add CM108 PTT support for NetBSD. While here, mark BROKEN on big-endian machines since there appear to be some audio processing issues. Bump PKGREVISION. @ text @$NetBSD$ Build and install cm108 utility on NetBSD. --- src/CMakeLists.txt.orig 2023-10-28 15:03:04.000000000 +0000 +++ src/CMakeLists.txt @@@@ -140,6 +140,12 @@@@ if(LINUX) endif() endif() +if(NETBSD) + list(APPEND direwolf_SOURCES + cm108.c + ) +endif() + add_executable(direwolf ${direwolf_SOURCES} ) @@@@ -472,7 +478,7 @@@@ endif() # Version 1.7 adds it for Windows. Needs hidapi library. # cm108 -if(UDEV_FOUND OR WIN32 OR CYGWIN) +if(UDEV_FOUND OR WIN32 OR CYGWIN OR NETBSD) list(APPEND cm108_SOURCES cm108.c textcolor.c @@@@ -568,6 +574,6 @@@@ install(TARGETS ttcalc DESTINATION ${INS install(TARGETS kissutil DESTINATION ${INSTALL_BIN_DIR}) install(TARGETS tnctest DESTINATION ${INSTALL_BIN_DIR}) install(TARGETS appserver DESTINATION ${INSTALL_BIN_DIR}) -if(UDEV_FOUND OR WIN32 OR CYGWIN) +if(UDEV_FOUND OR WIN32 OR CYGWIN OR NETBSD) install(TARGETS cm108 DESTINATION ${INSTALL_BIN_DIR}) endif() @