diff options
author | shurd <shurd@FreeBSD.org> | 2019-04-19 23:59:37 +0800 |
---|---|---|
committer | shurd <shurd@FreeBSD.org> | 2019-04-19 23:59:37 +0800 |
commit | f0e7df5f789d17308af45dbbad3fd6327c3ca52c (patch) | |
tree | 3499c1daaaeef8ba3f6ecc785cc1fcbdb9a60886 | |
parent | 126a2436c96ae59abfd9d20c37c17d38e17d1eda (diff) | |
download | freebsd-ports-gnome-f0e7df5f789d17308af45dbbad3fd6327c3ca52c.tar.gz freebsd-ports-gnome-f0e7df5f789d17308af45dbbad3fd6327c3ca52c.tar.zst freebsd-ports-gnome-f0e7df5f789d17308af45dbbad3fd6327c3ca52c.zip |
Update to 4.1.26
-rw-r--r-- | comms/quisk/Makefile | 11 | ||||
-rw-r--r-- | comms/quisk/distinfo | 6 | ||||
-rw-r--r-- | comms/quisk/files/patch-microphone.c | 4 | ||||
-rw-r--r-- | comms/quisk/files/patch-quisk.c | 11 | ||||
-rw-r--r-- | comms/quisk/files/patch-quisk.py | 14 | ||||
-rw-r--r-- | comms/quisk/files/patch-setup.py | 57 |
6 files changed, 72 insertions, 31 deletions
diff --git a/comms/quisk/Makefile b/comms/quisk/Makefile index 9957ceb99538..806c2e8d7f86 100644 --- a/comms/quisk/Makefile +++ b/comms/quisk/Makefile @@ -2,11 +2,9 @@ # $FreeBSD$ PORTNAME= quisk -PORTVERSION= 4.1.3 -PORTREVISION= 4 +PORTVERSION= 4.1.26 CATEGORIES= comms hamradio -MASTER_SITES= http://james.ahlstrom.name/quisk/ \ - LOCAL/db +MASTER_SITES= CHEESESHOP MAINTAINER= hamradio@FreeBSD.org COMMENT= Software Defined Radio (SDR) @@ -21,10 +19,13 @@ LIB_DEPENDS= libfftw3.so:math/fftw3 \ USES= python:2.7 USE_PYTHON= distutils autoplist USE_WX= 3.0+ + WX_COMPS= python post-extract: - ${RM} ${WRKSRC}/_quisk.so ${WRKSRC}/sdriqpkg/sdriq.so + ${RM} ${WRKSRC}/_quisk.so ${WRKSRC}/sdriqpkg/sdriq.so \ + ${WRKSRC}/freedvpkg/libcodec2_32.so \ + ${WRKSRC}/freedvpkg/libcodec2_64.so post-patch: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py diff --git a/comms/quisk/distinfo b/comms/quisk/distinfo index dbad59cbf53d..ef6d2183c43a 100644 --- a/comms/quisk/distinfo +++ b/comms/quisk/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1482446629 -SHA256 (quisk-4.1.3.tar.gz) = 3bb41e3d5dd7feb4c949a6086fe4d2adad12048d5eccb6499ced85b2b46f5999 -SIZE (quisk-4.1.3.tar.gz) = 2093660 +TIMESTAMP = 1555665888 +SHA256 (quisk-4.1.26.tar.gz) = 6df5ac3adb43fa4daeafec4cef2a19ade33f6d561053302b761f944d98fc1890 +SIZE (quisk-4.1.26.tar.gz) = 3236756 diff --git a/comms/quisk/files/patch-microphone.c b/comms/quisk/files/patch-microphone.c index 789227287fbe..364329a6be27 100644 --- a/comms/quisk/files/patch-microphone.c +++ b/comms/quisk/files/patch-microphone.c @@ -1,6 +1,6 @@ ---- microphone.c.orig 2016-10-25 20:57:54 UTC +--- microphone.c.orig 2018-11-21 19:08:22 UTC +++ microphone.c -@@ -56,7 +56,7 @@ static int timeVOX = 2000; // VOX han +@@ -58,7 +58,7 @@ static int timeVOX = 2000; // VOX han static int doTxCorrect = 0; // Corrections for UDP sample transmit static double TxCorrectLevel; diff --git a/comms/quisk/files/patch-quisk.c b/comms/quisk/files/patch-quisk.c new file mode 100644 index 000000000000..af9c15048969 --- /dev/null +++ b/comms/quisk/files/patch-quisk.c @@ -0,0 +1,11 @@ +--- quisk.c.orig 2019-04-19 15:39:19 UTC ++++ quisk.c +@@ -4065,7 +4065,7 @@ static PyObject * get_bandscope(void) // + j2 = floor(d2); + sample = (j1 + 1 - d1) * bandscopeAverage[j1]; + for (j = j1 + 1; j < j2; j++) +- sample += cabs(bandscopeAverage[j]); ++ sample += fabs(bandscopeAverage[j]); + sample += (d2 - j2) * bandscopeAverage[j2]; + sample = sample / frac; + // Normalize to max == 1 diff --git a/comms/quisk/files/patch-quisk.py b/comms/quisk/files/patch-quisk.py index 12d707e88a1c..027e099fbc14 100644 --- a/comms/quisk/files/patch-quisk.py +++ b/comms/quisk/files/patch-quisk.py @@ -1,6 +1,6 @@ ---- quisk.py.orig 2016-11-30 13:26:59.000000000 -0500 -+++ quisk.py 2018-06-17 10:30:03.031192000 -0400 -@@ -21,6 +21,13 @@ +--- quisk.py.orig 2019-04-19 15:47:26 UTC ++++ quisk.py +@@ -21,6 +21,13 @@ os.chdir(os.path.normpath(os.path.dirnam if sys.path[0] != "'.'": # Make sure the current working directory is on path sys.path.insert(0, '.') @@ -9,8 +9,8 @@ +locale.setlocale(locale.LC_ALL, '') +cloc = locale.getdefaultlocale() +if locale.nl_langinfo(locale.CODESET) != 'UTF-8': -+ locale.setlocale(locale.LC_ALL, (cloc[0], 'UTF-8')) ++ locale.setlocale(locale.LC_ALL, (cloc[0], 'UTF-8')) + - import wxversion # Thanks to Mario, DH5YM - wxversion.ensureMinimal('2.8') - + import wx, wx.html, wx.lib.buttons, wx.lib.stattext, wx.lib.colourdb, wx.grid, wx.richtext + import math, cmath, time, traceback, string, select, subprocess + import threading, pickle, webbrowser diff --git a/comms/quisk/files/patch-setup.py b/comms/quisk/files/patch-setup.py index 635a8cec93cd..22d8769c456a 100644 --- a/comms/quisk/files/patch-setup.py +++ b/comms/quisk/files/patch-setup.py @@ -1,22 +1,51 @@ ---- setup.py.orig 2016-12-08 22:14:02 UTC +--- setup.py.orig 2018-11-22 14:56:57 UTC +++ setup.py -@@ -12,8 +12,8 @@ fp.write("#Quisk version %s\n" % Version - fp.close() +@@ -18,18 +18,18 @@ if sys.platform != "win32": + except ImportError: + print ("Please install the package python-wxgtk3.0 or later") + missing = True +- if not os.path.isfile("/usr/include/fftw3.h"): +- print ("Please install the package libfftw3-dev") +- missing = True +- if not os.path.isdir("/usr/include/alsa"): +- print ("Please install the package libasound2-dev") +- missing = True +- if not os.path.isfile("/usr/include/portaudio.h"): +- print ("Please install the package portaudio19-dev") +- missing = True +- if not os.path.isdir("/usr/include/pulse"): +- print ("please install the package libpulse-dev") +- missing = True ++# if not os.path.isfile("/usr/include/fftw3.h"): ++# print ("Please install the package libfftw3-dev") ++# missing = True ++# if not os.path.isdir("/usr/include/alsa"): ++# print ("Please install the package libasound2-dev") ++# missing = True ++# if not os.path.isfile("/usr/include/portaudio.h"): ++# print ("Please install the package portaudio19-dev") ++# missing = True ++# if not os.path.isdir("/usr/include/pulse"): ++# print ("please install the package libpulse-dev") ++# missing = True + if missing: + ans = raw_input("Do you want to continue (y, N): ") + ans = ans.strip() +@@ -37,6 +37,8 @@ if sys.platform != "win32": + sys.exit(1) module1 = Extension ('quisk._quisk', -- #include_dirs = ['.'], -- #library_dirs = ['.'], + include_dirs = ['%%LOCALBASE%%/include'], + library_dirs = ['%%LOCALBASE%%/lib'], libraries = ['asound', 'portaudio', 'pulse', 'fftw3', 'm'], sources = ['quisk.c', 'sound.c', 'sound_alsa.c', 'sound_portaudio.c', 'sound_pulseaudio.c', 'is_key_down.c', 'microphone.c', 'utility.c', -@@ -116,7 +116,7 @@ control the N8LP LP-PAN panadapter and t - author_email = 'jahlstr@gmail.com', - url = 'http://james.ahlstrom.name/quisk/', - download_url = 'http://james.ahlstrom.name/quisk/', -- packages = ['quisk', 'quisk.sdriqpkg', 'quisk.n2adr', 'quisk.softrock', 'quisk.usb'], -+ packages = ['quisk', 'quisk.sdriqpkg', 'quisk.n2adr', 'quisk.softrock', 'quisk.usb', 'quisk.hermes'], - package_dir = {'quisk' : '.'}, - package_data = {'quisk' : ['*.txt', '*.html']}, - ext_modules = Modules, +@@ -69,8 +71,6 @@ modulew2 = Extension ('quisk.sdriqpkg.sd + + # Changes for MacOS support thanks to Mario, DL3LSM. + modulem1 = Extension ('quisk._quisk', +- #include_dirs = ['.'], +- #library_dirs = ['.'], + libraries = ['portaudio', 'fftw3', 'm', 'pulse'], + sources = ['quisk.c', 'sound.c', 'sound_portaudio.c', + 'is_key_down.c', 'microphone.c', 'utility.c', |