From nobody Thu Jun 23 22:48:08 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 9FC5E85E1C8; Thu, 23 Jun 2022 22:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LTb4m3ssrz3D82; Thu, 23 Jun 2022 22:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656024488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Pfu8Kgo8HBCbEi+7gp5aSPwIw9i6lpMOIT0066l5u1Y=; b=dFL75BD1Dd+Dq6lTgK3FlZKGEZAIYhoV3XACvInSU+n7vL2FHxB0n9MsL1uQ8TBIEdtN+a skXqfR/k03IZfGJ9eGKt+gnvp239aukd3OJbTeEmoVl1Vh5D1BSPuSPRbYQjaZnpsic5PR Mc+1SAiz5ymAMAo8KaV95n7aG4/PLP1RoAU6T/9FnHf32ObEbzJK9gr41bSCeQ1u+PH0m0 zoAI02OblCKg15tNlRsDjBz+FUvCgHBoU0ObQ4rG+6WQKtG8oWks7+S8THiE7STPtpLFiP hMpPgZIQx2WO8aezgUmRJlSyPMm4DDShcDs8TtnS5ebaiZjgysn/tDY1AhKCCw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6619323EAD; Thu, 23 Jun 2022 22:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25NMm8YX082037; Thu, 23 Jun 2022 22:48:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25NMm8HV082036; Thu, 23 Jun 2022 22:48:08 GMT (envelope-from git) Date: Thu, 23 Jun 2022 22:48:08 GMT Message-Id: <202206232248.25NMm8HV082036@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitri Goutnik Subject: git: db29af575277 - main - comms/airspyhf: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dmgk X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db29af57527777e3986d9acb643bcd2a79d73e1d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656024488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Pfu8Kgo8HBCbEi+7gp5aSPwIw9i6lpMOIT0066l5u1Y=; b=GsY7RO1XkW4mo4jKabbAoMoldgKV/9bRTEWo1pr5z4se7frA01kCUdgBpiG3dqhWbcyY6/ 3CnKJXnomoHG8P/vmYjuFRh6TqJ96tqQsA576tvLiq/rd2HrYYZtrS+Yqnl5FC19TkNOGY DeFaSb77ZEygOTiK5Yd36slDeVhWPoryhZ2LLy4SrQ/Ine+NTRsE3DHI8+IYq2Wu09A/fN Y0TQrtqorban6qEl1xsu/wXs1zu0+vlJKdjYMA+jXAwrDlq4qMjzfINQkBmOdiqw97iJwK 5mWCdPIRRSI3j4EyoHTyToFp5VYZVQ0oj6FnUS7IxRzefYp2hopAvMuE+8zbvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656024488; a=rsa-sha256; cv=none; b=wzXlokJNn6EDotOLfVj8Sk5W2e03QFlIgjifkYAVkmixHIN1vSTj4P5EPIpKDsk5Ajtfvs xdNcQqBhgntm3Jqsf/F/86EqwzVXi5WXNvPGqw2yUdtQMiytRyYHWBStS7w0iOf99+l70v 5G4cgK2WiaCgfe9KNJVwERp1OvZ4t57iYPwvhjZP+JKwEWRQ9id7nSp8kzJN6ASUfFbmWd lg76pGBsPkdMiUHmRrHma+Q4d9qCEvo29fPRVtkNB8F8P2P4FwI8sti6yCahBqJySa7v6j ga+ZCAiPQnCbEOJu3ywZeUlpp9EAdK6C5GcMsD6E17h80xImHBaaQgeKgWV5Iw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dmgk: URL: https://cgit.FreeBSD.org/ports/commit/?id=db29af57527777e3986d9acb643bcd2a79d73e1d commit db29af57527777e3986d9acb643bcd2a79d73e1d Author: Dmitri Goutnik AuthorDate: 2022-06-23 22:32:50 +0000 Commit: Dmitri Goutnik CommitDate: 2022-06-23 22:47:50 +0000 comms/airspyhf: Add new port User mode driver for Airspy HF+, a high performance software defined radio for the HF and VHF bands. WWW: https://github.com/airspy/airspyhf --- comms/Makefile | 1 + comms/airspyhf/Makefile | 27 ++++++++++++++++++++++ comms/airspyhf/distinfo | 3 +++ .../files/patch-libairspyhf_src_airspyhf.c | 11 +++++++++ comms/airspyhf/pkg-descr | 4 ++++ comms/airspyhf/pkg-plist | 13 +++++++++++ 6 files changed, 59 insertions(+) diff --git a/comms/Makefile b/comms/Makefile index fc4bdf838b63..cc07612bbb24 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -2,6 +2,7 @@ SUBDIR += acfax SUBDIR += airspy + SUBDIR += airspyhf SUBDIR += aldo SUBDIR += amtterm SUBDIR += anyremote 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