Skip to contentSkip to conversation

package/minimodem: new package

PATCH Superseded Alexander Kurz 2 participants 2 messages Sep 8, 2019

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/minimodem: new package

From: Alexander Kurz <[email protected]>

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.

---
 DEVELOPERS                       |  3 +++
 package/Config.in                |  1 +
 package/minimodem/Config.in      | 13 +++++++++++++
 package/minimodem/minimodem.hash |  2 ++
 package/minimodem/minimodem.mk   | 34 ++++++++++++++++++++++++++++++++++
 5 files changed, 53 insertions(+)
 create mode 100644 package/minimodem/Config.in
 create mode 100644 package/minimodem/minimodem.hash
 create mode 100644 package/minimodem/minimodem.mk
DEVELOPERS +3 -0
index 5784843e33..47a1136f03 100644
@@ -103,6 +103,9 @@ F:	package/fastd/
 F:	package/libuecc/
 F:	package/putty/
 
+N:	Alexander Kurz <[email protected]>
+F:	package/minimodem/
+
 N:	Alexander Lukichev <[email protected]>
 F:	package/openpgm/
 
package/Config.in +1 -0
index 9336261c5d..7d915ea4d7 100644
@@ -32,6 +32,7 @@ menu "Audio and video applications"
 	source "package/lame/Config.in"
 	source "package/madplay/Config.in"
 	source "package/mimic/Config.in"
+	source "package/minimodem/Config.in"
 	source "package/miraclecast/Config.in"
 	source "package/mjpegtools/Config.in"
 	source "package/modplugtools/Config.in"
package/minimodem/Config.in new file +13 -0
new file mode 100644
index 0000000000..6eda51e401
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_MINIMODEM
+	select BR2_PACKAGE_FFTW
+	select BR2_PACKAGE_FFTW_SINGLE
+	bool "minimodem"
+	help
+	  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.
+
+	  http://www.whence.com/minimodem/
package/minimodem/minimodem.hash new file +2 -0
new file mode 100644
index 0000000000..084a5606fb
@@ -0,0 +1,2 @@
+sha256 f8cca4db8e3f284d67f843054d6bb4d88a3db5e77b26192410e41e9a06f4378e  minimodem-0.24.tar.gz
+sha256 c298178753129680ef6d3112f0f8b61acc405c86c1997dfe59735257988f8b33  COPYING
package/minimodem/minimodem.mk new file +34 -0
new file mode 100644
index 0000000000..02a7e92517
@@ -0,0 +1,34 @@
+################################################################################
+#
+# minimodem
+#
+################################################################################
+
+MINIMODEM_VERSION = 0.24
+MINIMODEM_SOURCE = minimodem-$(MINIMODEM_VERSION).tar.gz
+MINIMODEM_SITE = http://www.whence.com/minimodem
+MINIMODEM_LICENSE = GPL-3.0+
+MINIMODEM_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
+MINIMODEM_DEPENDENCIES += alsa-lib
+MINIMODEM_CONF_OPTS += --with-alsa
+else
+MINIMODEM_CONF_OPTS += --without-alsa
+endif
+
+ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
+MINIMODEM_DEPENDENCIES += pulseaudio
+MINIMODEM_CONF_OPTS += --with-pulseaudio
+else
+MINIMODEM_CONF_OPTS += --without-pulseaudio
+endif
+
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
+MINIMODEM_DEPENDENCIES += libsndfile
+MINIMODEM_CONF_OPTS += --with-sndfile
+else
+MINIMODEM_CONF_OPTS += --without-sndfile
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/minimodem: new package

Quoted 10 lines · Alexander Kurz

From: Alexander Kurz <[email protected]>

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.

---

Please add a patch changelog below the --- line, see [1].

[1] https://buildroot.org/downloads/manual/manual.html#_patch_revision_changelog

Quoted 70 lines
 DEVELOPERS                       |  3 +++
 package/Config.in                |  1 +
 package/minimodem/Config.in      | 13 +++++++++++++
 package/minimodem/minimodem.hash |  2 ++
 package/minimodem/minimodem.mk   | 34 ++++++++++++++++++++++++++++++++++
 5 files changed, 53 insertions(+)
 create mode 100644 package/minimodem/Config.in
 create mode 100644 package/minimodem/minimodem.hash
 create mode 100644 package/minimodem/minimodem.mk
DEVELOPERS +3 -0
index 5784843e33..47a1136f03 100644
@@ -103,6 +103,9 @@ F:	package/fastd/
 F:	package/libuecc/
 F:	package/putty/
 
+N:	Alexander Kurz <[email protected]>
+F:	package/minimodem/
+
 N:	Alexander Lukichev <[email protected]>
 F:	package/openpgm/
 
package/Config.in +1 -0
index 9336261c5d..7d915ea4d7 100644
@@ -32,6 +32,7 @@ menu "Audio and video applications"
 	source "package/lame/Config.in"
 	source "package/madplay/Config.in"
 	source "package/mimic/Config.in"
+	source "package/minimodem/Config.in"
 	source "package/miraclecast/Config.in"
 	source "package/mjpegtools/Config.in"
 	source "package/modplugtools/Config.in"
package/minimodem/Config.in new file +13 -0
new file mode 100644
index 0000000000..6eda51e401
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_MINIMODEM
+	select BR2_PACKAGE_FFTW
+	select BR2_PACKAGE_FFTW_SINGLE
+	bool "minimodem"
+	help
+	  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.
+
+	  http://www.whence.com/minimodem/
package/minimodem/minimodem.hash new file +2 -0
new file mode 100644
index 0000000000..084a5606fb
@@ -0,0 +1,2 @@
+sha256 f8cca4db8e3f284d67f843054d6bb4d88a3db5e77b26192410e41e9a06f4378e  minimodem-0.24.tar.gz
+sha256 c298178753129680ef6d3112f0f8b61acc405c86c1997dfe59735257988f8b33  COPYING
package/minimodem/minimodem.mk new file +1 -0
new file mode 100644
index 0000000000..02a7e92517
@@ -0,0 +1,34 @@
+################################################################################

package/minimodem/minimodem.mk line 11

Quoted 10 lines
package/minimodem/minimodem.mk new file +10 -0
+#
+# minimodem
+#
+################################################################################
+
+MINIMODEM_VERSION = 0.24
+MINIMODEM_SOURCE = minimodem-$(MINIMODEM_VERSION).tar.gz
+MINIMODEM_SITE = http://www.whence.com/minimodem
+MINIMODEM_LICENSE = GPL-3.0+
+MINIMODEM_LICENSE_FILES = COPYING

Missing

MINIMODEM_DEPENDENCIES = fftw-single

(fftw itself is not needed, it's implied by fftw-single)

Quoted 11 lines
package/minimodem/minimodem.mk new file +11 -0
+
+ifeq ($(BR2_PACKAGE_ALSA_LIB_PCM),y)
+MINIMODEM_DEPENDENCIES += alsa-lib
+MINIMODEM_CONF_OPTS += --with-alsa
+else
+MINIMODEM_CONF_OPTS += --without-alsa
+endif
+
+ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
+MINIMODEM_DEPENDENCIES += pulseaudio
+MINIMODEM_CONF_OPTS += --with-pulseaudio

package/minimodem/minimodem.mk line 32

Quoted 10 lines
package/minimodem/minimodem.mk new file +10 -0
+else
+MINIMODEM_CONF_OPTS += --without-pulseaudio
+endif
+
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
+MINIMODEM_DEPENDENCIES += libsndfile
+MINIMODEM_CONF_OPTS += --with-sndfile
+else
+MINIMODEM_CONF_OPTS += --without-sndfile
+endif

I tried building with test-pkg, and it immediately fails with:

minimodem.c:552:4: error: #error At least one of {USE_PULSEAUDIO,USE_ALSA,USE_SNDFILE} must be enabled!

So you need to do something like this in Config.in:

	select BR2_PACKAGE_LIBSNDFILE if !BR2_PACKAGE_ALSA_LIB_PCM && \
		!BR2_PACKAGE_PULSEAUDIO

Regards,
Arnout

Quoted 3 lines
package/minimodem/minimodem.mk new file +2 -0
+
+$(eval $(autotools-package))