diff --git a/comms/Makefile b/comms/Makefile index fc4bdf838b63..cc07612bbb24 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -1,215 +1,216 @@ COMMENT = Communication utilities SUBDIR += acfax SUBDIR += airspy + SUBDIR += airspyhf SUBDIR += aldo SUBDIR += amtterm SUBDIR += anyremote SUBDIR += apitran SUBDIR += aprsd SUBDIR += atslog SUBDIR += bfhist SUBDIR += bforce-kst SUBDIR += birda SUBDIR += bladerf SUBDIR += bluegps SUBDIR += bluez-firmware SUBDIR += bpl+ SUBDIR += chu SUBDIR += comserv SUBDIR += concordance SUBDIR += conserver-com SUBDIR += cqrlog SUBDIR += cubicsdr SUBDIR += cutecom SUBDIR += cwdaemon SUBDIR += cwstudio SUBDIR += dcf77pi SUBDIR += deforaos-phone SUBDIR += dfu-programmer SUBDIR += dfu-util SUBDIR += digiham SUBDIR += direwolf SUBDIR += dsd SUBDIR += dump1090 SUBDIR += ebook2cw SUBDIR += ebook2cwgui SUBDIR += ebusd SUBDIR += echolinux SUBDIR += ems-flasher SUBDIR += fl_moxgen SUBDIR += flamp SUBDIR += flcluster SUBDIR += fldigi SUBDIR += fllog SUBDIR += flmsg SUBDIR += flrig SUBDIR += flwrap SUBDIR += freedv SUBDIR += gammu SUBDIR += gkermit SUBDIR += gnocky SUBDIR += gnokii SUBDIR += gnuradio SUBDIR += gpredict SUBDIR += gqrx SUBDIR += gr-osmosdr SUBDIR += grig SUBDIR += gstreamer1-plugins-spandsp SUBDIR += gtkmmorse SUBDIR += hackrf SUBDIR += hackrf-devel SUBDIR += hamlib SUBDIR += hcidump SUBDIR += hidapi SUBDIR += hylafax SUBDIR += ibp SUBDIR += inspectrum SUBDIR += iwmbt-firmware SUBDIR += java-simple-serial-connector SUBDIR += kermit SUBDIR += klog SUBDIR += libconcord SUBDIR += libfap SUBDIR += libfec SUBDIR += libimobiledevice SUBDIR += libirman SUBDIR += libmodbus SUBDIR += librs232 SUBDIR += libsdr SUBDIR += libsdr-gui SUBDIR += libticables2 SUBDIR += libticalcs2 SUBDIR += libusbmuxd SUBDIR += limesuite SUBDIR += linrad SUBDIR += liquid-dsp SUBDIR += lirc SUBDIR += locator SUBDIR += lrzsz SUBDIR += lysdr SUBDIR += mbelib SUBDIR += mgetty+sendfax SUBDIR += minicom SUBDIR += mlan3 SUBDIR += morse SUBDIR += multimon-ng SUBDIR += nanovna-saver SUBDIR += nasawash SUBDIR += ncid SUBDIR += nec2c SUBDIR += nmealib SUBDIR += obexapp SUBDIR += opencbm SUBDIR += opencbm-kmod SUBDIR += opencbm-plugin-xa1541 SUBDIR += openobex SUBDIR += openzwave SUBDIR += openzwave-devel SUBDIR += owfs SUBDIR += p5-Cisco-UCS SUBDIR += p5-Device-Gsm SUBDIR += p5-Device-Modem SUBDIR += p5-Device-SerialPort SUBDIR += p5-Fax-Hylafax-Client SUBDIR += p5-Nexmo-SMS SUBDIR += p5-SMS-SMS77 SUBDIR += p5-SMS-Send SUBDIR += p5-SMS-Send-DeviceGsm SUBDIR += p5-SMS-Send-NexmoUnicode SUBDIR += p5-SMS-Send-TW-HiAir SUBDIR += p5-SMS-Send-TW-PChome SUBDIR += p5-SMS-Send-TW-Socket2Air SUBDIR += p5-SMS-Send-TW-chtsns SUBDIR += p5-SMS-Send-TW-emome SUBDIR += pear-Horde_ActiveSync SUBDIR += pear-Horde_SyncMl SUBDIR += picocom SUBDIR += pr SUBDIR += predict SUBDIR += py-adafruit-ampy SUBDIR += py-esptool SUBDIR += py-fritzconnection SUBDIR += py-hid SUBDIR += py-hidapi SUBDIR += py-libimobiledevice SUBDIR += py-libscrc SUBDIR += py-pyserial SUBDIR += py-xmodem SUBDIR += pyla SUBDIR += qico SUBDIR += qpage SUBDIR += qrq SUBDIR += qsstv SUBDIR += qt5-connectivity SUBDIR += qt5-sensors SUBDIR += qt5-serialbus SUBDIR += qt5-serialport SUBDIR += qtel SUBDIR += redsea SUBDIR += remserial SUBDIR += rtl-433 SUBDIR += rtl-sdr SUBDIR += rubygem-callsign SUBDIR += rubygem-ruby-termios SUBDIR += rubygem-serialport SUBDIR += rxtx SUBDIR += scmxx SUBDIR += scrcpy SUBDIR += sdr++ SUBDIR += sdr-wspr SUBDIR += ser2net SUBDIR += serialoverip SUBDIR += sms_client SUBDIR += smstools3 SUBDIR += snap7 SUBDIR += soapyairspy SUBDIR += soapybladerf SUBDIR += soapyplutosdr SUBDIR += soapyredpitaya SUBDIR += soapyremote SUBDIR += soapysdr-rtlsdr SUBDIR += soapysdrhackrf SUBDIR += soapyuhd SUBDIR += spandsp SUBDIR += splat SUBDIR += sredird SUBDIR += sunxi-tools SUBDIR += svxlink SUBDIR += syncterm SUBDIR += tcpser SUBDIR += telldus-core SUBDIR += thebridge SUBDIR += tilp2 SUBDIR += tio SUBDIR += tits SUBDIR += tkhylafax SUBDIR += tkscanfax SUBDIR += tlf SUBDIR += trustedqsl SUBDIR += twpsk SUBDIR += uarduno SUBDIR += uartlirc SUBDIR += uhd SUBDIR += uird SUBDIR += ujprog SUBDIR += unixcw SUBDIR += usbmuxd SUBDIR += viewfax SUBDIR += vrflash SUBDIR += wsjtx SUBDIR += wsjtz SUBDIR += wwl SUBDIR += wy60 SUBDIR += xastir SUBDIR += xcwcp SUBDIR += xdemorse SUBDIR += xdx SUBDIR += xlog SUBDIR += xmorse SUBDIR += xnec2c SUBDIR += xnecview SUBDIR += yagiuda SUBDIR += yfklog .include diff --git a/comms/airspyhf/Makefile b/comms/airspyhf/Makefile new file mode 100644 index 000000000000..14a8c156f2c9 --- /dev/null +++ b/comms/airspyhf/Makefile @@ -0,0 +1,27 @@ +PORTNAME= airspyhf +DISTVERSION= 1.6.8-7 +DISTVERSIONSUFFIX= -gb93dedd +CATEGORIES= comms hamradio + +MAINTAINER= dmgk@FreeBSD.org +COMMENT= User mode driver for Airspy HF+ SDR + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake compiler:c11 pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= airspy + +CMAKE_ARGS= -DLIBUSB_LIBRARIES="/usr/lib/libusb.so" +CMAKE_OFF= INSTALL_UDEV_RULES + +OPTIONS_DEFINE_amd64= SIMD +OPTIONS_DEFINE_i386= SIMD +OPTIONS_DEFAULT_amd64= SIMD +OPTIONS_DEFAULT_i386= SIMD + +SIMD_CFLAGS= -DFREEBSD_USE_SIMD -msse -msse2 -mfpmath=sse -mmmx + +.include diff --git a/comms/airspyhf/distinfo b/comms/airspyhf/distinfo new file mode 100644 index 000000000000..5a757f3f9884 --- /dev/null +++ b/comms/airspyhf/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656019287 +SHA256 (airspy-airspyhf-1.6.8-7-gb93dedd_GH0.tar.gz) = 19075646e6ccbda05ab9d9ccb6678d0905ebf8acd66312cf1de34b17116b9190 +SIZE (airspy-airspyhf-1.6.8-7-gb93dedd_GH0.tar.gz) = 52949 diff --git a/comms/airspyhf/files/patch-libairspyhf_src_airspyhf.c b/comms/airspyhf/files/patch-libairspyhf_src_airspyhf.c new file mode 100644 index 000000000000..7cb5442ee504 --- /dev/null +++ b/comms/airspyhf/files/patch-libairspyhf_src_airspyhf.c @@ -0,0 +1,11 @@ +--- libairspyhf/src/airspyhf.c.orig 2022-06-23 21:14:46 UTC ++++ libairspyhf/src/airspyhf.c +@@ -1189,7 +1189,7 @@ int ADDCALL airspyhf_stop(airspyhf_device_t* device) + int result1, result2; + result1 = kill_io_threads(device); + result2 = airspyhf_set_receiver_mode(device, RECEIVER_MODE_OFF); +- libusb_interrupt_event_handler(device->usb_context); ++ // libusb_interrupt_event_handler(device->usb_context); + + if (result2 != AIRSPYHF_SUCCESS) + { diff --git a/comms/airspyhf/pkg-descr b/comms/airspyhf/pkg-descr new file mode 100644 index 000000000000..c465a45c9214 --- /dev/null +++ b/comms/airspyhf/pkg-descr @@ -0,0 +1,4 @@ +User mode driver for Airspy HF+, a high performance software defined radio for +the HF and VHF bands. + +WWW: https://github.com/airspy/airspyhf diff --git a/comms/airspyhf/pkg-plist b/comms/airspyhf/pkg-plist new file mode 100644 index 000000000000..794ede310103 --- /dev/null +++ b/comms/airspyhf/pkg-plist @@ -0,0 +1,13 @@ +bin/airspyhf_calibrate +bin/airspyhf_gpio +bin/airspyhf_info +bin/airspyhf_lib_version +bin/airspyhf_rx +include/libairspyhf/airspyhf.h +include/libairspyhf/airspyhf_commands.h +include/libairspyhf/iqbalancer.h +lib/libairspyhf.a +lib/libairspyhf.so +lib/libairspyhf.so.0 +lib/libairspyhf.so.1.6.8 +libdata/pkgconfig/libairspyhf.pc