Fwd: [Differential] D54589: comms/hackrf: Update 2024.02.1 => 2026.01.1

Tomek CEDRO <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <CAFYkXj=Nzy9M10hgcgO0uQCu8BHGWX90-eX65HbM7GyMeDGoBw@mail.gmail.com>
Hello world, could any free committer please take a look at this
hackrf port update? :-)

--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


---------- Forwarded message ---------
Date: Thu, Jan 8, 2026 at 12:23 AM
Subject: [Differential] D54589: comms/hackrf: Update 2024.02.1 => 2026.01.1


alven created this revision.
alven added reviewers: db, yuri, tomek_cedro.info.
alven requested review of this revision.

REVISION SUMMARY
  Changelogs:

  - https://github.com/greatscottgadgets/hackrf/releases/tag/v2026.01.1
  - https://github.com/greatscottgadgets/hackrf/compare/v2024.02.1...v2026.01.1

  - Use release tarball
  - Clarify LICENSE

  + Specify LICENSE_FILE
  + Supply documentation via DOCS option

  - Pet portclippy(1) and portfmt(1)

TEST PLAN
  For every {amd64} × {15.0, 14.3}:

  - Successful `poudriere testport`
  - Successful run-testing

REPOSITORY
  R11 FreeBSD ports repository

REVISION DETAIL
  https://reviews.freebsd.org/D54589

AFFECTED FILES
  comms/hackrf/Makefile
  comms/hackrf/distinfo
  comms/hackrf/pkg-plist

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: alven, db, yuri, tomek_cedro.info
Cc: guest-patmaddox
D54589.169284.patch (application/x-patch, 2.2 KB)
diff --git a/comms/hackrf/pkg-plist b/comms/hackrf/pkg-plist
--- a/comms/hackrf/pkg-plist
+++ b/comms/hackrf/pkg-plist
@@ -8,8 +8,13 @@
 bin/hackrf_sweep
 bin/hackrf_transfer
 include/libhackrf/hackrf.h
+lib/cmake/HackRF/FindLIBUSB.cmake
+lib/cmake/HackRF/HackRFConfig.cmake
+lib/cmake/HackRF/HackRFConfigVersion.cmake
+lib/cmake/HackRF/HackRFTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/HackRF/HackRFTargets.cmake
 lib/libhackrf.a
 lib/libhackrf.so
 lib/libhackrf.so.0
-lib/libhackrf.so.0.9.0
+lib/libhackrf.so.0.9.1
 libdata/pkgconfig/libhackrf.pc
diff --git a/comms/hackrf/distinfo b/comms/hackrf/distinfo
--- a/comms/hackrf/distinfo
+++ b/comms/hackrf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1708750351
-SHA256 (greatscottgadgets-hackrf-2024.02.1-18b485e_GH0.tar.gz) = d3b54356f5126e63915223479e6264c514141f228a74d37725364920683ff1c4
-SIZE (greatscottgadgets-hackrf-2024.02.1-18b485e_GH0.tar.gz) = 13133386
+TIMESTAMP = 1767825330
+SHA256 (hackrf-2026.01.1.tar.xz) = 283387d7a1aad965b07287adea7361a2a86176e854e2f2b808f58b5626015de4
+SIZE (hackrf-2026.01.1.tar.xz) = 25923808
diff --git a/comms/hackrf/Makefile b/comms/hackrf/Makefile
--- a/comms/hackrf/Makefile
+++ b/comms/hackrf/Makefile
@@ -1,26 +1,31 @@
 PORTNAME=	hackrf
-PORTVERSION=	2024.02.1
+DISTVERSION=	2026.01.1
 CATEGORIES=	comms devel hamradio science security
+MASTER_SITES=	https://github.com/greatscottgadgets/${PORTNAME}/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	[email protected]
 COMMENT=	Low cost open source hardware software radio platform
 WWW=		https://greatscottgadgets.com/hackrf/
 
-LICENSE=	GPLv2
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libfftw3f.so:math/fftw3-float \
-		libfftw3.so:math/fftw3
+LIB_DEPENDS=	libfftw3.so:math/fftw3 \
+		libfftw3f.so:math/fftw3-float
 
-USES=		cmake
-USE_GITHUB=	YES
-GH_ACCOUNT=	greatscottgadgets
-GH_TAGNAME=	18b485e
+USES=		cmake tar:xz
+USE_LDCONFIG=	yes
+
+CMAKE_ARGS=	-DLIBUSB_LIBRARIES=/usr/lib/libusb.so
+CMAKE_SOURCE_PATH=	${WRKSRC}/host
 
 CONFLICTS=	hackrf-devel
 
-CMAKE_SOURCE_PATH=	${WRKSRC}/host
-CMAKE_ARGS=	-DLIBUSB_LIBRARIES=/usr/lib/libusb.so
+PORTDOCS=	*
 
-USE_LDCONFIG=	yes
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.