diff options
author | tnn <tnn@pkgsrc.org> | 2019-02-07 14:03:22 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2019-02-07 14:03:22 +0000 |
commit | c9945eb9be6590ffdfd2f14891dd6746d6731cef (patch) | |
tree | 0915145e412ffd67c7df130d44bb484c4dceb54d | |
parent | 08282026be123e82f958e743256b98e92d79c28b (diff) | |
download | pkgsrc-c9945eb9be6590ffdfd2f14891dd6746d6731cef.tar.gz |
ham/kalibrate-hackrf: import kalibrate-hackrf-20160704
kalibrate, or kal, can scan for GSM base stations in a given frequency band
and can use those GSM base stations to calculate the local oscillator
frequency offset.
-rw-r--r-- | ham/kalibrate-hackrf/DESCR | 3 | ||||
-rw-r--r-- | ham/kalibrate-hackrf/Makefile | 28 | ||||
-rw-r--r-- | ham/kalibrate-hackrf/PLIST | 2 | ||||
-rw-r--r-- | ham/kalibrate-hackrf/distinfo | 7 | ||||
-rw-r--r-- | ham/kalibrate-hackrf/patches/patch-src_kal.cc | 16 |
5 files changed, 56 insertions, 0 deletions
diff --git a/ham/kalibrate-hackrf/DESCR b/ham/kalibrate-hackrf/DESCR new file mode 100644 index 00000000000..600e245cc3e --- /dev/null +++ b/ham/kalibrate-hackrf/DESCR @@ -0,0 +1,3 @@ +kalibrate, or kal, can scan for GSM base stations in a given frequency band +and can use those GSM base stations to calculate the local oscillator +frequency offset. diff --git a/ham/kalibrate-hackrf/Makefile b/ham/kalibrate-hackrf/Makefile new file mode 100644 index 00000000000..11eb7fee4d2 --- /dev/null +++ b/ham/kalibrate-hackrf/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2019/02/07 14:03:22 tnn Exp $ + +DISTNAME= kalibrate-hackrf-20160704 +CATEGORIES= ham +MASTER_SITES= ${MASTER_SITE_GITHUB:=scateu/} +GITHUB_TAG= 2492c20822ca6a49dce97967caf394b1d4b2c43e + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/scateu/kalibrate-hackrf/ +COMMENT= LO frequency offset calibration tool (hackrf fork) +LICENSE= 2-clause-bsd + +GNU_CONFIGURE= yes +USE_LANGUAGES= c c++ +USE_TOOLS= autoconf automake autoreconf pkg-config + +INSTALLATION_DIRS= bin + +pre-configure: + cd ${WRKSRC} && autoreconf -if + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/kal ${DESTDIR}${PREFIX}/bin/kal-hackrf + +.include "../../devel/libusb1/buildlink3.mk" +.include "../../ham/hackrf/buildlink3.mk" +.include "../../math/fftw/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/ham/kalibrate-hackrf/PLIST b/ham/kalibrate-hackrf/PLIST new file mode 100644 index 00000000000..1772988eb9a --- /dev/null +++ b/ham/kalibrate-hackrf/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2019/02/07 14:03:22 tnn Exp $ +bin/kal-hackrf diff --git a/ham/kalibrate-hackrf/distinfo b/ham/kalibrate-hackrf/distinfo new file mode 100644 index 00000000000..068cb508d22 --- /dev/null +++ b/ham/kalibrate-hackrf/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2019/02/07 14:03:22 tnn Exp $ + +SHA1 (kalibrate-hackrf-20160704-2492c20822ca6a49dce97967caf394b1d4b2c43e.tar.gz) = bc9143c46722daa0f1488f85eca869e89a472b76 +RMD160 (kalibrate-hackrf-20160704-2492c20822ca6a49dce97967caf394b1d4b2c43e.tar.gz) = 3b9d6b5e9c65774a637d2a2c1a71894f116c8403 +SHA512 (kalibrate-hackrf-20160704-2492c20822ca6a49dce97967caf394b1d4b2c43e.tar.gz) = 0e2f54f9423c9250903ea9b53e11aee47b84c40fbb2f488b048617f128d4f1b77bcf39a3fe5c133526f51a2d613185cfdbae1b1586f11c87a004b23f24737092 +Size (kalibrate-hackrf-20160704-2492c20822ca6a49dce97967caf394b1d4b2c43e.tar.gz) = 21631 bytes +SHA1 (patch-src_kal.cc) = b5ec464fb0d1ef2df4106119572dc8393b846692 diff --git a/ham/kalibrate-hackrf/patches/patch-src_kal.cc b/ham/kalibrate-hackrf/patches/patch-src_kal.cc new file mode 100644 index 00000000000..ef8248ffeb0 --- /dev/null +++ b/ham/kalibrate-hackrf/patches/patch-src_kal.cc @@ -0,0 +1,16 @@ +$NetBSD: patch-src_kal.cc,v 1.1 2019/02/07 14:03:22 tnn Exp $ + +for basename(3) + +--- src/kal.cc.orig 2016-07-04 03:55:59.000000000 +0000 ++++ src/kal.cc +@@ -48,9 +48,7 @@ + #include <unistd.h> + #include <sys/time.h> + #endif +-#ifdef D_HOST_OSX + #include <libgen.h> +-#endif /* D_HOST_OSX */ + #include <string.h> + + #include <errno.h> |