pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
minimodem: add new package
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <tk%giga.or.at@localhost>
Pushed By: wiz
Date: Fri May 6 14:37:08 2022 +0200
Changeset: 41f0b58798662df435882a66f600876386461ea9
Modified Files:
Makefile
Added Files:
minimodem/DESCR
minimodem/Makefile
minimodem/PLIST
minimodem/distinfo
minimodem/patches/patch-configure
minimodem/patches/patch-src_simpleaudio-alsa.c
Log Message:
minimodem: add new package
Minimodem is a command-line program which decodes (or generates) audio
modem tones at any specified baud rate, using various framing protocols.
It acts a general-purpose software FSK modem, and includes support for
various standard FSK protocols such as Bell103, Bell202, RTTY, TTY/TDD,
NOAA SAME, and Caller-ID.
Minimodem can play and capture audio modem tones in real-time via the
system audio device, or in batched mode via audio files.
Minimodem can be used to transfer data between nearby computers using an
audio cable (or just via sound waves), or between remote computers using
radio, telephone, or another audio communications medium.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=41f0b58798662df435882a66f600876386461ea9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 3 ++
minimodem/DESCR | 12 ++++++++
minimodem/Makefile | 20 ++++++++++++
minimodem/PLIST | 3 ++
minimodem/distinfo | 7 +++++
minimodem/patches/patch-configure | 42 ++++++++++++++++++++++++++
minimodem/patches/patch-src_simpleaudio-alsa.c | 18 +++++++++++
7 files changed, 105 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index dbb57cdc75..20828b0f90 100644
--- a/Makefile
+++ b/Makefile
@@ -338,6 +338,7 @@ SUBDIR+= brlcad
SUBDIR+= brltty
SUBDIR+= brogue
SUBDIR+= brogue-ce
+SUBDIR+= broot
SUBDIR+= browserpass-native
SUBDIR+= brumbrumrally
SUBDIR+= bscript
@@ -1497,6 +1498,7 @@ SUBDIR+= halfempty
SUBDIR+= hammer
SUBDIR+= hanazono-ttf
SUBDIR+= haplohseq
+SUBDIR+= hare
SUBDIR+= harec
SUBDIR+= harmony
SUBDIR+= hasciicam
@@ -2422,6 +2424,7 @@ SUBDIR+= mingw-w64-gcc
SUBDIR+= mingw-w64-headers
SUBDIR+= mingw-w64-libgcc
SUBDIR+= mini18n
+SUBDIR+= minimodem
SUBDIR+= minio
SUBDIR+= minio-client
SUBDIR+= minizip192
diff --git a/minimodem/DESCR b/minimodem/DESCR
new file mode 100644
index 0000000000..7431033b3d
--- /dev/null
+++ b/minimodem/DESCR
@@ -0,0 +1,12 @@
+Minimodem is a command-line program which decodes (or generates) audio
+modem tones at any specified baud rate, using various framing protocols.
+It acts a general-purpose software FSK modem, and includes support for
+various standard FSK protocols such as Bell103, Bell202, RTTY, TTY/TDD,
+NOAA SAME, and Caller-ID.
+
+Minimodem can play and capture audio modem tones in real-time via the
+system audio device, or in batched mode via audio files.
+
+Minimodem can be used to transfer data between nearby computers using an
+audio cable (or just via sound waves), or between remote computers using
+radio, telephone, or another audio communications medium.
diff --git a/minimodem/Makefile b/minimodem/Makefile
new file mode 100644
index 0000000000..3a855cd67e
--- /dev/null
+++ b/minimodem/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+DISTNAME= minimodem-0.24
+CATEGORIES= comms audio
+MASTER_SITES= http://www.whence.com/minimodem/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://www.whence.com/minimodem/
+COMMENT= General-purpose software audio FSK modem
+LICENSE= gnu-gpl-v3 # or later
+
+GNU_CONFIGURE= yes
+
+USE_TOOLS+= pkg-config
+
+.include "../../audio/alsa-lib/buildlink3.mk"
+.include "../../audio/libsndfile/buildlink3.mk"
+.include "../../audio/pulseaudio/buildlink3.mk"
+.include "../../math/fftw/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/minimodem/PLIST b/minimodem/PLIST
new file mode 100644
index 0000000000..06f619685a
--- /dev/null
+++ b/minimodem/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/minimodem
+man/man1/minimodem.1
diff --git a/minimodem/distinfo b/minimodem/distinfo
new file mode 100644
index 0000000000..333fce7048
--- /dev/null
+++ b/minimodem/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (minimodem-0.24.tar.gz) = e625176fcb04c852d3cfe260e34a8640705ae6e2a55b8b5ae40a3d502c070f56
+SHA512 (minimodem-0.24.tar.gz) = 5c3a5e6f185d4b09c5f24d776393f2e2d5d787c097c44490905119513b9b39db53b7f2f7e624a4b527e8e8e827a5b99af6b0df5ca525046f60b49fe9ba2b0ceb
+Size (minimodem-0.24.tar.gz) = 159508 bytes
+SHA1 (patch-configure) = 51c686781707e34f29126f53d98e6b1f1abffb69
+SHA1 (patch-src_simpleaudio-alsa.c) = 02c80a9c528fc01c8620e70507558492d0647022
diff --git a/minimodem/patches/patch-configure b/minimodem/patches/patch-configure
new file mode 100644
index 0000000000..5baf34b8a7
--- /dev/null
+++ b/minimodem/patches/patch-configure
@@ -0,0 +1,42 @@
+$NetBSD$
+
+Fix unportable test(1) operator.
+
+--- configure.orig 2016-04-23 17:48:01.000000000 +0000
++++ configure
+@@ -3596,7 +3596,7 @@ if test "${with_alsa+set}" = set; then :
+ withval=$with_alsa;
+ fi
+
+-if test "x$with_alsa" == "xno"; then :
++if test "x$with_alsa" = "xno"; then :
+
+ use_alsa=0
+
+@@ -3619,7 +3619,7 @@ if test "${with_pulseaudio+set}" = set;
+ withval=$with_pulseaudio;
+ fi
+
+-if test "x$with_pulseaudio" == "xno"; then :
++if test "x$with_pulseaudio" = "xno"; then :
+
+ use_pulseaudio=0
+
+@@ -3642,7 +3642,7 @@ if test "${with_sndfile+set}" = set; the
+ withval=$with_sndfile;
+ fi
+
+-if test "x$with_sndfile" == "xno"; then :
++if test "x$with_sndfile" = "xno"; then :
+
+ use_sndfile=0
+
+@@ -3665,7 +3665,7 @@ if test "${with_benchmarks+set}" = set;
+ withval=$with_benchmarks;
+ fi
+
+-if test "x$with_benchmarks" == "xno"; then :
++if test "x$with_benchmarks" = "xno"; then :
+
+ use_benchmarks=0
+
diff --git a/minimodem/patches/patch-src_simpleaudio-alsa.c b/minimodem/patches/patch-src_simpleaudio-alsa.c
new file mode 100644
index 0000000000..9e61410e8e
--- /dev/null
+++ b/minimodem/patches/patch-src_simpleaudio-alsa.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Non-Linux portability.
+
+--- src/simpleaudio-alsa.c.orig 2015-04-22 23:56:58.000000000 +0000
++++ src/simpleaudio-alsa.c
+@@ -59,7 +59,11 @@ sa_alsa_read( simpleaudio *sa, void *buf
+ snd_pcm_prepare(pcm);
+ } else {
+ fprintf(stderr, "snd_pcm_readi: %s\n", snd_strerror(r));
++#if defined(ESTRPIPE)
+ if (r == -EAGAIN || r== -ESTRPIPE)
++#else
++ if (r == -EAGAIN)
++#endif
+ snd_pcm_wait(pcm, 1000);
+ else
+ return r;
Home |
Main Index |
Thread Index |
Old Index