From 7e87bb62613c633d7e4d63511efdc715d9bb9d49 Mon Sep 17 00:00:00 2001 From: Julien Olivain Date: Sat, 4 Jan 2020 16:59:02 +0100 Subject: [PATCH] package/python-pyalsa: new package Official ALSA Python binding, including hardware management, mixer and sequencer control. http://www.alsa-project.org/ Signed-off-by: Julien Olivain Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-pyalsa/Config.in | 16 ++++++++++++++++ package/python-pyalsa/python-pyalsa.hash | 2 ++ package/python-pyalsa/python-pyalsa.mk | 14 ++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 package/python-pyalsa/Config.in create mode 100644 package/python-pyalsa/python-pyalsa.hash create mode 100644 package/python-pyalsa/python-pyalsa.mk diff --git a/DEVELOPERS b/DEVELOPERS index cf530c3dec..0360dbc769 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -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 F: package/dieharder/ diff --git a/package/Config.in b/package/Config.in index afa54f739e..9ae9e0bb65 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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 index 0000000000..e91c99b409 --- /dev/null +++ b/package/python-pyalsa/Config.in @@ -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 index 0000000000..c484313b96 --- /dev/null +++ b/package/python-pyalsa/python-pyalsa.hash @@ -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 index 0000000000..74f0347d86 --- /dev/null +++ b/package/python-pyalsa/python-pyalsa.mk @@ -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))