Import comms/minimodem

ok benoit@

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, 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.
This commit is contained in:
bcallah 2014-12-20 19:31:44 +00:00
parent dd8c338b0c
commit 1829d85049
5 changed files with 125 additions and 0 deletions

31
comms/minimodem/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/12/20 19:31:44 bcallah Exp $
COMMENT = general-purpose software audio FSK modem
DISTNAME = minimodem-0.21
CATEGORIES = comms
HOMEPAGE = http://www.whence.com/minimodem/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c fftw3f m pthread pulse pulse-simple sndfile
MASTER_SITES = http://www.whence.com/minimodem/
LIB_DEPENDS = audio/libsndfile \
audio/pulseaudio \
math/fftw3,float
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS = --without-alsa \
--without-benchmarks \
--with-pulseaudio \
--with-sndfile
MAKE_FLAGS = LIBS="-lfftw3f -lpulse-simple -lsndfile"
.include <bsd.port.mk>

2
comms/minimodem/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (minimodem-0.21.tar.gz) = o65oYbZTYNUg4c4EfX1NbPGoM6L/QtYnoYRs8ks5Mc8=
SIZE (minimodem-0.21.tar.gz) = 155577

View File

@ -0,0 +1,77 @@
$OpenBSD: patch-configure,v 1.1.1.1 2014/12/20 19:31:44 bcallah Exp $
configure is stupid. Force it to do the right thing.
--- configure.orig Mon Nov 24 11:35:31 2014
+++ configure Mon Dec 15 18:00:26 2014
@@ -3571,7 +3571,7 @@ fi
# fftw3f
-deps_packages+=" fftw3f"
+#deps_packages+=" fftw3f"
# ALSA
@@ -3596,20 +3596,8 @@ _ACEOF
# pulseaudio
-# Check whether --with-pulseaudio was given.
-if test "${with_pulseaudio+set}" = set; then :
- withval=$with_pulseaudio;
-fi
+use_pulseaudio=1
-if test "x$with_pulseaudio" == "xno"; then :
- # then
- use_pulseaudio=0
-else
- # else
- use_pulseaudio=1
- deps_packages+=" libpulse-simple"
-fi
-
cat >>confdefs.h <<_ACEOF
#define USE_PULSEAUDIO $use_pulseaudio
_ACEOF
@@ -3617,20 +3605,8 @@ _ACEOF
# sndfile
-# Check whether --with-sndfile was given.
-if test "${with_sndfile+set}" = set; then :
- withval=$with_sndfile;
-fi
+use_sndfile=1
-if test "x$with_sndfile" == "xno"; then :
- # then
- use_sndfile=0
-else
- # else
- use_sndfile=1
- deps_packages+=" sndfile"
-fi
-
cat >>confdefs.h <<_ACEOF
#define USE_SNDFILE $use_sndfile
_ACEOF
@@ -3813,7 +3789,7 @@ if test -n "$DEPS_CFLAGS"; then
pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags " $deps_packages " 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
- pkg_failed=yes
+ pkg_failed=no
fi
else
pkg_failed=untried
@@ -3830,7 +3806,7 @@ if test -n "$DEPS_LIBS"; then
pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs " $deps_packages " 2>/dev/null`
test "x$?" != "x0" && pkg_failed=yes
else
- pkg_failed=yes
+ pkg_failed=no
fi
else
pkg_failed=untried

12
comms/minimodem/pkg/DESCR Normal file
View File

@ -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, 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.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/12/20 19:31:44 bcallah Exp $
@bin bin/minimodem
@man man/man1/minimodem.1