diff options
-rw-r--r-- | comms/Makefile | 1 | ||||
-rw-r--r-- | comms/flamp/Makefile | 28 | ||||
-rw-r--r-- | comms/flamp/distinfo | 3 | ||||
-rw-r--r-- | comms/flamp/files/patch-src_flamp.cxx | 29 | ||||
-rw-r--r-- | comms/flamp/files/patch-src_utils_transmit__camp.cxx | 11 | ||||
-rw-r--r-- | comms/flamp/pkg-descr | 3 |
6 files changed, 75 insertions, 0 deletions
diff --git a/comms/Makefile b/comms/Makefile index b2787ef44141..61abfe334b18 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -44,6 +44,7 @@ SUBDIR += efax SUBDIR += ems-flasher SUBDIR += fl_moxgen + SUBDIR += flamp SUBDIR += flcluster SUBDIR += fldigi SUBDIR += fllog diff --git a/comms/flamp/Makefile b/comms/flamp/Makefile new file mode 100644 index 000000000000..c316da163fb3 --- /dev/null +++ b/comms/flamp/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +PORTNAME= flamp +DISTVERSION= 2.2.05 +CATEGORIES= comms hamradio +MASTER_SITES= https://iweb.dl.sourceforge.net/project/fldigi/flamp/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Program for the Amateur Multicast Protocol + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfltk.so:x11-toolkits/fltk \ + libfontconfig.so:x11-fonts/fontconfig \ + libpng16.so:graphics/png +RUN_DEPENDS= fldigi:comms/fldigi + +USES= gmake jpeg pkgconfig xorg +USE_XORG= x11 xcursor xext xfixes xft xinerama xrender + +GNU_CONFIGURE= yes + +PLIST_FILES= bin/flamp \ + share/applications/flamp.desktop \ + share/pixmaps/flamp.xpm + +.include <bsd.port.mk> diff --git a/comms/flamp/distinfo b/comms/flamp/distinfo new file mode 100644 index 000000000000..cab3dec618cd --- /dev/null +++ b/comms/flamp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1581130407 +SHA256 (flamp-2.2.05.tar.gz) = 64b2c13d4053571b471fc2a840dfb0175a6135fd154811a1c1ebb806e19be1a7 +SIZE (flamp-2.2.05.tar.gz) = 518900 diff --git a/comms/flamp/files/patch-src_flamp.cxx b/comms/flamp/files/patch-src_flamp.cxx new file mode 100644 index 000000000000..50fc8fb8949f --- /dev/null +++ b/comms/flamp/files/patch-src_flamp.cxx @@ -0,0 +1,29 @@ +--- src/flamp.cxx.orig 2020-02-08 03:11:19 UTC ++++ src/flamp.cxx +@@ -838,7 +838,7 @@ void addfile(std::string xmtfname, void *rx, bool useC + int use_comp_on_file = 0; + int use_forced_comp_on_file = 0; + +- if(rx > 0 && !rAmp->rx_completed()) { ++ if(rx != nullptr && !rAmp->rx_completed()) { + fl_alert2("Only completed files can be transfered"); + return; + } +@@ -934,7 +934,7 @@ void addfile(std::string xmtfname, void *rx, bool useC + + LOG_INFO("File added to transmit queue: %s", xmtfname.c_str()); + +- if(rx > 0) { ++ if(rx != nullptr) { + cAmp *rAmp = (cAmp *) rx; + int xfrBlockSize = rAmp->rx_blocksize_int(); + +@@ -2649,7 +2649,7 @@ int parse_args(int argc, char **argv, int& idx) + + + if (strcasecmp(argv[idx], "--version") == 0) { +- printf("Version: "VERSION"\n"); ++ printf("Version: " VERSION "\n"); + exit (0); + } + return 0; diff --git a/comms/flamp/files/patch-src_utils_transmit__camp.cxx b/comms/flamp/files/patch-src_utils_transmit__camp.cxx new file mode 100644 index 000000000000..2e1df66065d7 --- /dev/null +++ b/comms/flamp/files/patch-src_utils_transmit__camp.cxx @@ -0,0 +1,11 @@ +--- src/utils/transmit_camp.cxx.orig 2020-02-08 03:12:42 UTC ++++ src/utils/transmit_camp.cxx +@@ -285,7 +285,7 @@ void * create_tx_table(void *ptr) + + LOG_DEBUG("Mode %s overhead=%f", mode_name.c_str(), overhead); + +- fprintf(fd, "\t{\n\t\t(char *) \"%s\", 1.0, "P_RELSOL2", \n\t\t{\n\t\t\t", mode_name.c_str(), overhead); ++ fprintf(fd, "\t{\n\t\t(char *) \"%s\", 1.0, " P_RELSOL2 ", \n\t\t{\n\t\t\t", mode_name.c_str(), overhead); + fflush(fd); + + if(mode_name.find("Olivia") != string::npos || mode_name.find("MT63") != string::npos) { diff --git a/comms/flamp/pkg-descr b/comms/flamp/pkg-descr new file mode 100644 index 000000000000..7981fcce72a1 --- /dev/null +++ b/comms/flamp/pkg-descr @@ -0,0 +1,3 @@ +A program for the Amateur Multicast Protocol, working with fldigi. + +WWW: https://sourceforge.net/projects/fldigi/ |