package/python-pyalsa: new package
authorJulien Olivain <juju@cotds.org>
Sat, 4 Jan 2020 15:59:02 +0000 (16:59 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 19 Apr 2020 20:17:24 +0000 (22:17 +0200)
Official ALSA Python binding, including hardware management, mixer and
sequencer control.

http://www.alsa-project.org/

Signed-off-by: Julien Olivain <juju@cotds.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-pyalsa/Config.in [new file with mode: 0644]
package/python-pyalsa/python-pyalsa.hash [new file with mode: 0644]
package/python-pyalsa/python-pyalsa.mk [new file with mode: 0644]

index cf530c3decc260a8150bc95e4fabbfcd5e98b892..0360dbc769876d114dc62fe92284b986abf90520 100644 (file)
@@ -1447,6 +1447,7 @@ F:        package/fluid-soundfont/
 F:     package/fluidsynth/
 F:     package/glslsandbox-player/
 F:     package/ptm2human/
+F:     package/python-pyalsa/
 
 N:     Julien Viard de Galbert <julien@vdg.name>
 F:     package/dieharder/
index afa54f739eabcea30755ed5001ecd230ceb59840..9ae9e0bb659e2739cb11445fac85510c74290b0c 100644 (file)
@@ -1066,6 +1066,7 @@ menu "External python modules"
        source "package/python-pudb/Config.in"
        source "package/python-py/Config.in"
        source "package/python-pyaes/Config.in"
+       source "package/python-pyalsa/Config.in"
        source "package/python-pyasn/Config.in"
        source "package/python-pyasn1/Config.in"
        source "package/python-pyasn1-modules/Config.in"
diff --git a/package/python-pyalsa/Config.in b/package/python-pyalsa/Config.in
new file mode 100644 (file)
index 0000000..e91c99b
--- /dev/null
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_PYTHON_PYALSA
+       bool "python-pyalsa"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       select BR2_PACKAGE_ALSA_LIB
+       select BR2_PACKAGE_ALSA_LIB_HWDEP
+       select BR2_PACKAGE_ALSA_LIB_MIXER
+       select BR2_PACKAGE_ALSA_LIB_RAWMIDI
+       select BR2_PACKAGE_ALSA_LIB_SEQ
+       help
+         Official ALSA Python binding, including hardware
+         management, mixer and sequencer control.
+
+         http://www.alsa-project.org/
+
+comment "python-pyalsa needs a toolchain w/ threads"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/python-pyalsa/python-pyalsa.hash b/package/python-pyalsa/python-pyalsa.hash
new file mode 100644 (file)
index 0000000..c484313
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 2771291a5d2cf700f0abbe6629ea37468d1463a01b2330d84ef976e1e918676c  pyalsa-1.1.6.tar.bz2
diff --git a/package/python-pyalsa/python-pyalsa.mk b/package/python-pyalsa/python-pyalsa.mk
new file mode 100644 (file)
index 0000000..74f0347
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-pyalsa
+#
+################################################################################
+
+PYTHON_PYALSA_VERSION = 1.1.6
+PYTHON_PYALSA_SOURCE = pyalsa-$(PYTHON_PYALSA_VERSION).tar.bz2
+PYTHON_PYALSA_SITE = ftp://ftp.alsa-project.org/pub/pyalsa
+PYTHON_PYALSA_SETUP_TYPE = distutils
+PYTHON_PYALSA_LICENSE = LGPL-2.1+
+PYTHON_PYALSA_DEPENDENCIES = alsa-lib
+
+$(eval $(python-package))