summaryrefslogtreecommitdiff
path: root/ham/rtl-sdr
diff options
context:
space:
mode:
authorgdt <gdt@pkgsrc.org>2018-09-01 19:09:57 +0000
committergdt <gdt@pkgsrc.org>2018-09-01 19:09:57 +0000
commit3ad32790ffba32e3bc932c6ba1d96b90448bdf1b (patch)
treee84a02898a6e5bf9aa2e978db36c3906d7482474 /ham/rtl-sdr
parent568b1bd912f2465900fb7f9f78556b5169995195 (diff)
downloadpkgsrc-3ad32790ffba32e3bc932c6ba1d96b90448bdf1b.tar.gz
rtl-sdr: update to 0.5.4
upstream changes: bugfixes minor improvments add new HanfTek dongle
Diffstat (limited to 'ham/rtl-sdr')
-rw-r--r--ham/rtl-sdr/Makefile5
-rw-r--r--ham/rtl-sdr/distinfo12
-rw-r--r--ham/rtl-sdr/patches/patch-src_librtlsdr.c57
-rw-r--r--ham/rtl-sdr/patches/patch-src_tuner__r82xx.c13
4 files changed, 7 insertions, 80 deletions
diff --git a/ham/rtl-sdr/Makefile b/ham/rtl-sdr/Makefile
index d8f50b6f181..249c0919a6d 100644
--- a/ham/rtl-sdr/Makefile
+++ b/ham/rtl-sdr/Makefile
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2018/06/28 19:00:14 gdt Exp $
+# $NetBSD: Makefile,v 1.12 2018/09/01 19:09:57 gdt Exp $
-DISTNAME= rtl-sdr-0.5.3
-PKGREVISION= 3
+DISTNAME= rtl-sdr-0.5.4
CATEGORIES= ham
MASTER_SITES= ${MASTER_SITE_GITHUB:=steve-m/}
GITHUB_PROJECT= librtlsdr
diff --git a/ham/rtl-sdr/distinfo b/ham/rtl-sdr/distinfo
index 14c7608aeaa..cda62b5cb9d 100644
--- a/ham/rtl-sdr/distinfo
+++ b/ham/rtl-sdr/distinfo
@@ -1,10 +1,8 @@
-$NetBSD: distinfo,v 1.7 2018/06/28 19:00:14 gdt Exp $
+$NetBSD: distinfo,v 1.8 2018/09/01 19:09:57 gdt Exp $
-SHA1 (rtl-sdr-0.5.3.tar.gz) = f6f20f7b0562a6d3f7b9ff7bff38a15bff175982
-RMD160 (rtl-sdr-0.5.3.tar.gz) = 3b30938053870ed2d4b261ac9e27ad0863762ca4
-SHA512 (rtl-sdr-0.5.3.tar.gz) = b2887b5df2728f8481b07fb4d8b9bee18b98c5c0ccd0c8e65c2e784a32826cc2301631e95e54071324e5dfbdaa11f0a5aa483cc619b864d4788c3700980b38b6
-Size (rtl-sdr-0.5.3.tar.gz) = 117414 bytes
+SHA1 (rtl-sdr-0.5.4.tar.gz) = da720927e8958bac87f6170366d5c814c1cec65e
+RMD160 (rtl-sdr-0.5.4.tar.gz) = 8a93a1fccd6e2b10d0cd1a5dd9118b1cdb6d24df
+SHA512 (rtl-sdr-0.5.4.tar.gz) = 81d01ccced763d728b4bb1aeff4bc04c394d4d6906f1df5c8b83671769bb4ca551017fea680981431a9e9436644a765b049259e42fcec1be8b709a81daf420ea
+Size (rtl-sdr-0.5.4.tar.gz) = 120549 bytes
SHA1 (patch-cmake_Modules_FindLibUSB.cmake) = 95df1dd9ff3b9d5cf7afc55cc5f80cabe1d90491
-SHA1 (patch-src_librtlsdr.c) = 881418afaff87e98511e955cb0ed4d40fba19237
SHA1 (patch-src_rtl__fm_c) = 04ec7142f38f26d2ed431765017f53e8e79a3a36
-SHA1 (patch-src_tuner__r82xx.c) = 54763a749eaa64e2c7f816cfe04df8b76eff93c9
diff --git a/ham/rtl-sdr/patches/patch-src_librtlsdr.c b/ham/rtl-sdr/patches/patch-src_librtlsdr.c
deleted file mode 100644
index 5e12a24c2d3..00000000000
--- a/ham/rtl-sdr/patches/patch-src_librtlsdr.c
+++ /dev/null
@@ -1,57 +0,0 @@
-$NetBSD: patch-src_librtlsdr.c,v 1.1 2016/01/26 09:10:39 dbj Exp $
-
---- src/librtlsdr.c.orig 2014-02-07 01:04:24.000000000 +0000
-+++ src/librtlsdr.c
-@@ -39,6 +39,12 @@
- #define LIBUSB_CALL
- #endif
-
-+/* libusb < 1.0.9 doesn't have libusb_handle_events_timeout_completed */
-+#ifndef HAVE_LIBUSB_HANDLE_EVENTS_TIMEOUT_COMPLETED
-+#define libusb_handle_events_timeout_completed(ctx, tv, c) \
-+ libusb_handle_events_timeout(ctx, tv)
-+#endif
-+
- /* two raised to the power of n */
- #define TWO_POW(n) ((double)(1ULL<<(n)))
-
-@@ -1776,11 +1782,8 @@ int rtlsdr_read_async(rtlsdr_dev_t *dev,
- }
-
- while (RTLSDR_INACTIVE != dev->async_status) {
--#ifdef HAVE_LIBUSB_HANDLE_EVENTS_TIMEOUT_COMPLETED
-- r = libusb_handle_events_timeout_completed(dev->ctx, &tv, &dev->async_cancel);
--#else
-- r = libusb_handle_events_timeout(dev->ctx, &tv);
--#endif
-+ r = libusb_handle_events_timeout_completed(dev->ctx, &tv,
-+ &dev->async_cancel);
- if (r < 0) {
- /*fprintf(stderr, "handle_events returned: %d\n", r);*/
- if (r == LIBUSB_ERROR_INTERRUPTED) /* stray signal */
-@@ -1801,6 +1804,11 @@ int rtlsdr_read_async(rtlsdr_dev_t *dev,
- if (LIBUSB_TRANSFER_CANCELLED !=
- dev->xfer[i]->status) {
- r = libusb_cancel_transfer(dev->xfer[i]);
-+ /* handle events after canceling
-+ * to allow transfer status to
-+ * propagate */
-+ libusb_handle_events_timeout_completed(dev->ctx,
-+ &zerotv, NULL);
- if (r < 0)
- continue;
-
-@@ -1812,11 +1820,8 @@ int rtlsdr_read_async(rtlsdr_dev_t *dev,
- /* handle any events that still need to
- * be handled before exiting after we
- * just cancelled all transfers */
--#ifdef HAVE_LIBUSB_HANDLE_EVENTS_TIMEOUT_COMPLETED
-- libusb_handle_events_timeout_completed(dev->ctx, &zerotv, NULL);
--#else
-- libusb_handle_events_timeout(dev->ctx, &zerotv);
--#endif
-+ libusb_handle_events_timeout_completed(dev->ctx,
-+ &zerotv, NULL);
- break;
- }
- }
diff --git a/ham/rtl-sdr/patches/patch-src_tuner__r82xx.c b/ham/rtl-sdr/patches/patch-src_tuner__r82xx.c
deleted file mode 100644
index 8e28fa36342..00000000000
--- a/ham/rtl-sdr/patches/patch-src_tuner__r82xx.c
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-src_tuner__r82xx.c,v 1.1 2016/01/26 09:10:39 dbj Exp $
-
---- src/tuner_r82xx.c.orig 2014-02-07 01:04:24.000000000 +0000
-+++ src/tuner_r82xx.c
-@@ -547,7 +547,7 @@ static int r82xx_set_pll(struct r82xx_pr
- }
-
- if (!(data[2] & 0x40)) {
-- printf("[R82XX] PLL not locked!\n");
-+ fprintf(stderr, "[R82XX] PLL not locked!\n");
- priv->has_lock = 0;
- return 0;
- }