Date: Tue, 26 Feb 2019 13:28:24 +0000 (UTC) From: Diane Bruce <db@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493964 - in head/comms: . cubicsdr cubicsdr/files Message-ID: <201902261328.x1QDSOpS023578@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: db Date: Tue Feb 26 13:28:23 2019 New Revision: 493964 URL: https://svnweb.freebsd.org/changeset/ports/493964 Log: What is CubicSDR ? CubicSDR is the software portion of Software Defined Radio. By Using hardware that converts RF spectrum into a digital stream we are able to build complex radios to do many types of functions in software instead of traditional hardware. What can I do with CubicSDR ? Paired with a supported hardware receiver, you can use CubicSDR to explore the RF world around you. Discover Satellite transmissions, Amateur Radio, Rail, Areonautical, Shortwave, or any number of possible signals floating through the air. WWW: https://cubicsdr.readthedocs.io/en/latest/ Added: head/comms/cubicsdr/ head/comms/cubicsdr/Makefile (contents, props changed) head/comms/cubicsdr/distinfo (contents, props changed) head/comms/cubicsdr/files/ head/comms/cubicsdr/files/patch-src_AppFrame.cpp (contents, props changed) head/comms/cubicsdr/files/patch-src_CubicSDRDefs.h (contents, props changed) head/comms/cubicsdr/files/patch-src_DemodLabelDialog.cpp (contents, props changed) head/comms/cubicsdr/files/patch-src_FrequencyDialog.cpp (contents, props changed) head/comms/cubicsdr/files/patch-src_util_GLExt.cpp (contents, props changed) head/comms/cubicsdr/files/patch-src_util_MouseTracker.cpp (contents, props changed) head/comms/cubicsdr/pkg-descr (contents, props changed) head/comms/cubicsdr/pkg-plist (contents, props changed) Modified: head/comms/Makefile Modified: head/comms/Makefile ============================================================================== --- head/comms/Makefile Tue Feb 26 13:21:39 2019 (r493963) +++ head/comms/Makefile Tue Feb 26 13:28:23 2019 (r493964) @@ -27,6 +27,7 @@ SUBDIR += conserver SUBDIR += conserver-com SUBDIR += cqrlog + SUBDIR += cubicsdr SUBDIR += cutecom SUBDIR += cwdaemon SUBDIR += cwstudio Added: head/comms/cubicsdr/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/Makefile Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,45 @@ +# $FreeBSD$ + +PORTNAME= cubicsdr +DISTVERSION= 0.2.5 +CATEGORIES= comms hamradio + +MAINTAINER= hamradio@FreeBSD.org +COMMENT= SDR receiver using liquidsdr + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYNUMPY} \ + ${LOCALBASE}/lib/libEGL.so:graphics/mesa-libs \ + ${LOCALBASE}/libdata/pkgconfig/dri.pc:graphics/mesa-dri +LIB_DEPENDS= libSoapySDR.so:misc/soapysdr \ + libliquid.so:comms/liquid-dsp \ + libpulse.so:audio/pulseaudio \ + libhamlib.so:comms/hamlib \ + libEGL.so:graphics/mesa-libs \ + libwx_gtk3u_core-3.1.so:x11-toolkits/wxgtk31 + +USES= cmake gl python +USE_GL+= glu + +OPTIONS_DEFINE= HAMLIB +HAMLIB_DESC= Support rig control via hamlib +OPTIONS_DEFAULT= HAMLIB + +.include <bsd.port.pre.mk> + +.if ${PORT_OPTIONS:MHAMLIB} +LIB_DEPENDS+= libhamlib.so:comms/hamlib +CMAKE_ARGS+= -DUSE_HAMLIB=1 +.endif + +CMAKE_ARGS+= -DwxWidgets_CONFIG_EXECUTABLE=${LOCALBASE}/bin/wxgtk3u-3.1-config +# if Only I could just do +#USE_WX= 3.1 +#WX_COMPS= wx +USE_GITHUB= yes +GH_ACCOUNT= cjcliffe +GH_PROJECT= CubicSDR + +.include <bsd.port.post.mk> Added: head/comms/cubicsdr/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/distinfo Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,3 @@ +TIMESTAMP = 1551114984 +SHA256 (cubicsdr-0.2.5_GH0.tar.gz) = 5cb44c110fcbbb70a468b7fa402cf35f84d8901b3dd42d471a90ac3f5db00f4d +SIZE (cubicsdr-0.2.5_GH0.tar.gz) = 36911106 Added: head/comms/cubicsdr/files/patch-src_AppFrame.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/files/patch-src_AppFrame.cpp Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,20 @@ +--- src/AppFrame.cpp.orig 2019-02-25 02:52:05 UTC ++++ src/AppFrame.cpp +@@ -34,7 +34,7 @@ + #include <wx/numformatter.h> + #include <stddef.h> + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + #include "CubicSDR.xpm" + #endif + +@@ -79,7 +79,7 @@ std::vector<std::string> str_explode(const std::string + AppFrame::AppFrame() : + wxFrame(NULL, wxID_ANY, CUBICSDR_TITLE), activeDemodulator(nullptr) { + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + SetIcon(wxICON(cubicsdr)); + #endif + Added: head/comms/cubicsdr/files/patch-src_CubicSDRDefs.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/files/patch-src_CubicSDRDefs.h Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,30 @@ +--- src/CubicSDRDefs.h.orig 2018-06-08 03:58:55 UTC ++++ src/CubicSDRDefs.h +@@ -2,6 +2,7 @@ + // SPDX-License-Identifier: GPL-2.0+ + + #pragma once ++#include <sys/param.h> + + #define CUBICSDR_TITLE "" CUBICSDR_BUILD_TITLE + +@@ -16,7 +17,11 @@ + #ifdef __APPLE__ + #include <machine/endian.h> + #else +- #include <endian.h> ++ #ifdef __FreeBSD__ ++ #include <sys/endian.h> ++ #else ++ #include <endian.h> ++ #endif + #endif + #endif + #endif +@@ -62,4 +67,4 @@ const char filePathSeparator = + + //The maximum number of listed sample rates for a device, to be able to handle + //devices returning an insane amount because they have quasi-continuous ranges (UHD...) +-#define DEVICE_SAMPLE_RATES_MAX_NB 25 +\ No newline at end of file ++#define DEVICE_SAMPLE_RATES_MAX_NB 25 Added: head/comms/cubicsdr/files/patch-src_DemodLabelDialog.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/files/patch-src_DemodLabelDialog.cpp Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,11 @@ +--- src/DemodLabelDialog.cpp.orig 2019-02-25 02:53:22 UTC ++++ src/DemodLabelDialog.cpp +@@ -83,7 +83,7 @@ void DemodLabelDialog::OnChar(wxKeyEvent& event) { + + } + else { +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + dialogText->OnChar(event); + event.Skip(); + #else Added: head/comms/cubicsdr/files/patch-src_FrequencyDialog.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/files/patch-src_FrequencyDialog.cpp Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,11 @@ +--- src/FrequencyDialog.cpp.orig 2019-02-25 02:39:08 UTC ++++ src/FrequencyDialog.cpp +@@ -218,7 +218,7 @@ void FrequencyDialog::OnChar(wxKeyEvent& event) { + + if (allowed.find_first_of(c) != std::string::npos || c == WXK_DELETE || c == WXK_BACK || c == WXK_NUMPAD_DECIMAL + || (c >= WXK_NUMPAD0 && c <= WXK_NUMPAD9)) { +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + dialogText->OnChar(event); + event.Skip(); + #else Added: head/comms/cubicsdr/files/patch-src_util_GLExt.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/files/patch-src_util_GLExt.cpp Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,20 @@ +--- src/util/GLExt.cpp.orig 2018-08-20 16:53:40 UTC ++++ src/util/GLExt.cpp +@@ -9,7 +9,7 @@ + #include <OpenGL/OpenGL.h> + #endif + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + #include <dlfcn.h> + #endif + +@@ -60,7 +60,7 @@ void initGLExtensions() { + CGLSetParameter (CGLGetCurrentContext(), kCGLCPSwapInterval, &interval); + #endif + +-#ifdef __linux__ ++#if defined(__linux__) || defined(__FreeBSD__) + dlopen("libglx.so",RTLD_LAZY); + + void (*glxSwapIntervalEXTFunc) (Display *dpy, GLXDrawable drawable, int interval) = 0; Added: head/comms/cubicsdr/files/patch-src_util_MouseTracker.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/files/patch-src_util_MouseTracker.cpp Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,11 @@ +--- src/util/MouseTracker.cpp.orig 2019-02-25 12:54:38 UTC ++++ src/util/MouseTracker.cpp +@@ -30,7 +30,7 @@ void MouseTracker::OnMouseMoved(wxMouseEvent& event) { + + if (isMouseDown || isMouseRightDown) { + #ifndef __APPLE__ +-#ifndef __linux__ ++#if !defined(__linux__) && !defined(__FreeBSD__) + if (horizDragLock && vertDragLock) { + target->WarpPointer(originMouseX * ClientSize.x, (1.0 - originMouseY) * ClientSize.y); + mouseX = originMouseX; Added: head/comms/cubicsdr/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/pkg-descr Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,15 @@ +What is CubicSDR ? + +CubicSDR is the software portion of Software Defined Radio. +By Using hardware that converts RF spectrum into a digital +stream we are able to build complex radios to do many types +of functions in software instead of traditional hardware. + +What can I do with CubicSDR ? + +Paired with a supported hardware receiver, you can use CubicSDR +to explore the RF world around you. Discover Satellite transmissions, +Amateur Radio, Rail, Areonautical, Shortwave, or any number of +possible signals floating through the air. + +WWW: https://cubicsdr.readthedocs.io/en/latest/ Added: head/comms/cubicsdr/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/cubicsdr/pkg-plist Tue Feb 26 13:28:23 2019 (r493964) @@ -0,0 +1,25 @@ +bin/CubicSDR +share/applications/CubicSDR.desktop +%%DATADIR%%/CubicSDR.png +%%DATADIR%%/fonts/vera_sans_mono12.fnt +%%DATADIR%%/fonts/vera_sans_mono12_0.png +%%DATADIR%%/fonts/vera_sans_mono16.fnt +%%DATADIR%%/fonts/vera_sans_mono16_0.png +%%DATADIR%%/fonts/vera_sans_mono18.fnt +%%DATADIR%%/fonts/vera_sans_mono18_0.png +%%DATADIR%%/fonts/vera_sans_mono24.fnt +%%DATADIR%%/fonts/vera_sans_mono24_0.png +%%DATADIR%%/fonts/vera_sans_mono27.fnt +%%DATADIR%%/fonts/vera_sans_mono27_0.png +%%DATADIR%%/fonts/vera_sans_mono32.fnt +%%DATADIR%%/fonts/vera_sans_mono32_0.png +%%DATADIR%%/fonts/vera_sans_mono36.fnt +%%DATADIR%%/fonts/vera_sans_mono36_0.png +%%DATADIR%%/fonts/vera_sans_mono48.fnt +%%DATADIR%%/fonts/vera_sans_mono48_0.png +%%DATADIR%%/fonts/vera_sans_mono64.fnt +%%DATADIR%%/fonts/vera_sans_mono64_0.png +%%DATADIR%%/fonts/vera_sans_mono72.fnt +%%DATADIR%%/fonts/vera_sans_mono72_0.png +%%DATADIR%%/fonts/vera_sans_mono96.fnt +%%DATADIR%%/fonts/vera_sans_mono96_0.png
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902261328.x1QDSOpS023578>