Initial commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
SUMMARY = "ALSA sound library"
|
||||
DESCRIPTION = "(Occasionally a.k.a. libasound) is a userspace library that \
|
||||
provides a level of abstraction over the /dev interfaces provided by the kernel modules."
|
||||
HOMEPAGE = "http://www.alsa-project.org"
|
||||
BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
|
||||
SECTION = "libs/multimedia"
|
||||
LICENSE = "LGPL-2.1-only & GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \
|
||||
file://src/socket.c;md5=285675b45e83f571c6a957fe4ab79c93;beginline=9;endline=24 \
|
||||
"
|
||||
|
||||
SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2"
|
||||
SRC_URI[sha256sum] = "dc9c643fdc4ccfd0572cc685858dd41e08afb583f30460b317e4188275f615b2"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
EXTRA_OECONF += " \
|
||||
${@bb.utils.contains('TARGET_FPU', 'soft', '--with-softfloat', '', d)} \
|
||||
--disable-python --disable-old-symbols \
|
||||
"
|
||||
|
||||
PACKAGES =+ "alsa-server alsa-conf libatopology"
|
||||
|
||||
FILES:alsa-server = "${bindir}/*"
|
||||
FILES:alsa-conf = "${datadir}/alsa/"
|
||||
FILES:libatopology = "${libdir}/libatopology.so.*"
|
||||
|
||||
RDEPENDS:${PN}:class-target = "alsa-conf alsa-ucm-conf"
|
||||
RDEPENDS:libatopology:class-target = "alsa-topology-conf"
|
||||
|
||||
# upgrade path
|
||||
RPROVIDES:${PN} = "libasound"
|
||||
RREPLACES:${PN} = "libasound"
|
||||
RCONFLICTS:${PN} = "libasound"
|
||||
|
||||
RPROVIDES:${PN}-dev = "alsa-dev"
|
||||
RREPLACES:${PN}-dev = "alsa-dev"
|
||||
RCONFLICTS:${PN}-dev = "alsa-dev"
|
||||
|
||||
RPROVIDES:alsa-conf = "alsa-conf-base"
|
||||
RREPLACES:alsa-conf = "alsa-conf-base"
|
||||
RCONFLICTS:alsa-conf = "alsa-conf-base"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
From b01b176a665ba65979d74922955f51dc4888a713 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 23 Aug 2022 15:21:16 -0700
|
||||
Subject: [PATCH] arcam_av.c: Include missing string.h
|
||||
|
||||
bzero() function needs this header to be included
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/alsa-project/alsa-plugins/pull/47]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
arcam-av/arcam_av.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/arcam-av/arcam_av.c b/arcam-av/arcam_av.c
|
||||
index 63f9b4e..29fc537 100644
|
||||
--- a/arcam-av/arcam_av.c
|
||||
+++ b/arcam-av/arcam_av.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <signal.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#include <termios.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
SUMMARY = "ALSA Plugins"
|
||||
DESCRIPTION = "Used to create virtual devices that can be used like normal \
|
||||
hardware devices but cause extra processing of the sound stream to take place. \
|
||||
They are used while configuring ALSA in the .asoundrc file."
|
||||
HOMEPAGE = "http://alsa-project.org"
|
||||
BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
|
||||
SECTION = "multimedia"
|
||||
|
||||
# The primary license of alsa-plugins is LGPL-2.1-only.
|
||||
#
|
||||
# m4/attributes.m4 is licensed under GPL-2.0-or-later. m4/attributes.m4 is part
|
||||
# of the build system, and doesn't affect the licensing of the build result.
|
||||
#
|
||||
# The samplerate plugin source code is licensed under GPL-2.0-or-later to be
|
||||
# consistent with the libsamplerate license. However, if the licensee has a
|
||||
# commercial license for libsamplerate, the samplerate plugin may be used under
|
||||
# the terms of LGPL-2.1-only like the rest of the plugins.
|
||||
LICENSE = "LGPL-2.1-only & GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \
|
||||
file://COPYING.GPL;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
||||
file://m4/attributes.m4;endline=33;md5=bb8c6b2a67ac15156961e242fec33e50 \
|
||||
file://rate/rate_samplerate.c;endline=35;md5=fd77bce85f4a338c0e8ab18430b69fae \
|
||||
"
|
||||
|
||||
SRC_URI = "https://www.alsa-project.org/files/pub/plugins/${BP}.tar.bz2 \
|
||||
file://0001-arcam_av.c-Include-missing-string.h.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "8c337814954bb7c167456733a6046142a2931f12eccba3ec2a4ae618a3432511"
|
||||
|
||||
DEPENDS += "alsa-lib"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
PACKAGECONFIG ??= "\
|
||||
samplerate \
|
||||
speexdsp \
|
||||
${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio', d)} \
|
||||
"
|
||||
PACKAGECONFIG[aaf] = "--enable-aaf,--disable-aaf,libavtp"
|
||||
PACKAGECONFIG[jack] = "--enable-jack,--disable-jack,jack"
|
||||
PACKAGECONFIG[libav] = "--enable-libav,--disable-libav,libav"
|
||||
PACKAGECONFIG[maemo-plugin] = "--enable-maemo-plugin,--disable-maemo-plugin"
|
||||
PACKAGECONFIG[maemo-resource-manager] = "--enable-maemo-resource-manager,--disable-maemo-resource-manager,dbus"
|
||||
PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
|
||||
PACKAGECONFIG[samplerate] = "--enable-samplerate,--disable-samplerate,libsamplerate0"
|
||||
PACKAGECONFIG[speexdsp] = "--with-speex=lib,--with-speex=no,speexdsp"
|
||||
|
||||
PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'alsa-plugins-pulseaudio-conf', '', d)}"
|
||||
|
||||
PACKAGES_DYNAMIC = "^libasound-module-.*"
|
||||
|
||||
# The alsa-plugins package doesn't itself contain anything, it just depends on
|
||||
# all built plugins.
|
||||
FILES:${PN} = ""
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
|
||||
do_install:append() {
|
||||
rm -f ${D}${libdir}/alsa-lib/*.la
|
||||
|
||||
if [ "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'yes', 'no', d)}" = "yes" ]; then
|
||||
# We use the example as is. Upstream installs the file under
|
||||
# /etc, but we move it under /usr/share and add a symlink under
|
||||
# /etc to be consistent with other installed configuration
|
||||
# files.
|
||||
mv ${D}${sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf
|
||||
ln -s ${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf ${D}${sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf
|
||||
fi
|
||||
}
|
||||
|
||||
python populate_packages:prepend() {
|
||||
plugindir = d.expand('${libdir}/alsa-lib/')
|
||||
packages = " ".join(do_split_packages(d, plugindir, r'^libasound_module_(.*)\.so$', 'libasound-module-%s', 'Alsa plugin for %s', extra_depends=''))
|
||||
d.setVar("RDEPENDS:alsa-plugins", packages)
|
||||
}
|
||||
|
||||
# Many plugins have a configuration file (plus a symlink in /etc) associated
|
||||
# with them. We put the plugin and it's configuration usually in the same
|
||||
# package, but that's problematic when the configuration file is related to
|
||||
# multiple plugins, as is the case with the pulse, oss and maemo plugins. In
|
||||
# case of the pulse plugins, we have a separate alsa-plugins-pulseaudio-conf
|
||||
# package that depends on all the pulse plugins, which ensures that all plugins
|
||||
# that the configuration references are installed. The oss and maemo
|
||||
# configuration files, on the other hand, are in the respective pcm plugin
|
||||
# packages. Therefore it's possible to install the configuration file without
|
||||
# the ctl plugin that the configuration file references. This is unlikely to
|
||||
# cause big problems, but some kind of improvement to the packaging could
|
||||
# probably be done here (at least it would be good to handle the different
|
||||
# plugins in a consistent way).
|
||||
FILES:${MLPREFIX}libasound-module-ctl-arcam-av += "\
|
||||
${datadir}/alsa/alsa.conf.d/50-arcam-av-ctl.conf \
|
||||
${sysconfdir}/alsa/conf.d/50-arcam-av-ctl.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-a52 += "\
|
||||
${datadir}/alsa/alsa.conf.d/60-a52-encoder.conf \
|
||||
${sysconfdir}/alsa/conf.d/60-a52-encoder.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-alsa-dsp += "\
|
||||
${datadir}/alsa/alsa.conf.d/98-maemo.conf \
|
||||
${sysconfdir}/alsa/conf.d/98-maemo.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-jack += "\
|
||||
${datadir}/alsa/alsa.conf.d/50-jack.conf \
|
||||
${sysconfdir}/alsa/conf.d/50-jack.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-oss += "\
|
||||
${datadir}/alsa/alsa.conf.d/50-oss.conf \
|
||||
${sysconfdir}/alsa/conf.d/50-oss.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-speex += "\
|
||||
${datadir}/alsa/alsa.conf.d/60-speex.conf \
|
||||
${sysconfdir}/alsa/conf.d/60-speex.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-upmix += "\
|
||||
${datadir}/alsa/alsa.conf.d/60-upmix.conf \
|
||||
${sysconfdir}/alsa/conf.d/60-upmix.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-usb-stream += "\
|
||||
${datadir}/alsa/alsa.conf.d/98-usb-stream.conf \
|
||||
${sysconfdir}/alsa/conf.d/98-usb-stream.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-pcm-vdownmix += "\
|
||||
${datadir}/alsa/alsa.conf.d/60-vdownmix.conf \
|
||||
${sysconfdir}/alsa/conf.d/60-vdownmix.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-rate-lavrate += "\
|
||||
${datadir}/alsa/alsa.conf.d/10-rate-lav.conf \
|
||||
${sysconfdir}/alsa/conf.d/10-rate-lav.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-rate-samplerate += "\
|
||||
${datadir}/alsa/alsa.conf.d/10-samplerate.conf \
|
||||
${sysconfdir}/alsa/conf.d/10-samplerate.conf \
|
||||
"
|
||||
FILES:${MLPREFIX}libasound-module-rate-speexrate += "\
|
||||
${datadir}/alsa/alsa.conf.d/10-speexrate.conf \
|
||||
${sysconfdir}/alsa/conf.d/10-speexrate.conf \
|
||||
"
|
||||
|
||||
# The rate plugins create some symlinks. For example, the samplerate plugin
|
||||
# creates these links to the main plugin file:
|
||||
#
|
||||
# libasound_module_rate_samplerate_best.so
|
||||
# libasound_module_rate_samplerate_linear.so
|
||||
# libasound_module_rate_samplerate_medium.so
|
||||
# libasound_module_rate_samplerate_order.so
|
||||
#
|
||||
# The other rate plugins create similar links. We have to add the links to
|
||||
# FILES manually, because do_split_packages() skips the links (which is good,
|
||||
# because we wouldn't want do_split_packages() to create separate packages for
|
||||
# the symlinks).
|
||||
#
|
||||
# The symlinks cause QA errors, because usually it's a bug if a non
|
||||
# -dev/-dbg/-nativesdk package contains links to .so files, but in this case
|
||||
# the errors are false positives, so we disable the QA checks.
|
||||
FILES:${MLPREFIX}libasound-module-rate-lavrate += "${libdir}/alsa-lib/*rate_lavrate_*.so"
|
||||
FILES:${MLPREFIX}libasound-module-rate-samplerate += "${libdir}/alsa-lib/*rate_samplerate_*.so"
|
||||
FILES:${MLPREFIX}libasound-module-rate-speexrate += "${libdir}/alsa-lib/*rate_speexrate_*.so"
|
||||
INSANE_SKIP:${MLPREFIX}libasound-module-rate-lavrate = "dev-so"
|
||||
INSANE_SKIP:${MLPREFIX}libasound-module-rate-samplerate = "dev-so"
|
||||
INSANE_SKIP:${MLPREFIX}libasound-module-rate-speexrate = "dev-so"
|
||||
|
||||
# 50-pulseaudio.conf defines a device named "pulse" that applications can use
|
||||
# if they explicitly want to use the PulseAudio plugin.
|
||||
# 99-pulseaudio-default.conf configures the "default" device to use the
|
||||
# PulseAudio plugin.
|
||||
FILES:${PN}-pulseaudio-conf += "\
|
||||
${datadir}/alsa/alsa.conf.d/50-pulseaudio.conf \
|
||||
${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf \
|
||||
${sysconfdir}/alsa/conf.d/50-pulseaudio.conf \
|
||||
${sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf \
|
||||
"
|
||||
|
||||
RDEPENDS:${PN}-pulseaudio-conf += "\
|
||||
${MLPREFIX}libasound-module-conf-pulse \
|
||||
${MLPREFIX}libasound-module-ctl-pulse \
|
||||
${MLPREFIX}libasound-module-pcm-pulse \
|
||||
"
|
||||
@@ -0,0 +1,89 @@
|
||||
SUMMARY = "Advanced tools for certain ALSA sound card drivers"
|
||||
DESCRIPTION = "Package containing a number of tools ranging from envy24control \
|
||||
which provides complete control over all devices with an envy24 chip, to \
|
||||
firmware loaders for pcmcia, USB and the hdsp devices."
|
||||
HOMEPAGE = "http://www.alsa-project.org"
|
||||
BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
|
||||
SECTION = "console/utils"
|
||||
LICENSE = "GPL-2.0-only & LGPL-2.0-or-later"
|
||||
DEPENDS = "alsa-lib"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://hdsploader/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
||||
file://ld10k1/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7 \
|
||||
"
|
||||
|
||||
SRC_URI = "https://www.alsa-project.org/files/pub/tools/${BP}.tar.bz2"
|
||||
|
||||
SRC_URI[sha256sum] = "35a71027a01f4d7de4722e223520e940de68b3c570b6c671691567ae28f9893e"
|
||||
|
||||
inherit autotools-brokensep pkgconfig
|
||||
# brokensep as as10k1 (and probably more) fail out of tree
|
||||
CLEANBROKEN = "1"
|
||||
|
||||
# Here we use PACKAGECONFIG options to pick which directories we configure/build.
|
||||
# Remember on upgrades to check that no new tools have been added.
|
||||
PACKAGECONFIG ??= "as10k1 hdajacksensetest hda-verb hdsploader ld10k1 mixartloader pcxhrloader \
|
||||
sb16_csp seq--sbiload sscape_ctl us428control usx2yloader vxloader \
|
||||
${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'hdajackretask', '', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG[as10k1] = ""
|
||||
PACKAGECONFIG[echomixer] = ",,gtk+"
|
||||
PACKAGECONFIG[envy24control] = ",,gtk+"
|
||||
PACKAGECONFIG[hda-verb] = ""
|
||||
PACKAGECONFIG[hdajackretask] = ",,gtk+3"
|
||||
PACKAGECONFIG[hdajacksensetest] = ",,glib-2.0"
|
||||
PACKAGECONFIG[hdspconf] = ",,fltk"
|
||||
PACKAGECONFIG[hdsploader] = ""
|
||||
PACKAGECONFIG[hdspmixer] = ",,fltk"
|
||||
PACKAGECONFIG[ld10k1] = ""
|
||||
PACKAGECONFIG[mixartloader] = ""
|
||||
PACKAGECONFIG[pcxhrloader] = ""
|
||||
PACKAGECONFIG[qlo10k1] = ",,qt-x11-free"
|
||||
PACKAGECONFIG[rmedigicontrol] = ",,gtk+"
|
||||
PACKAGECONFIG[sb16_csp] = ""
|
||||
PACKAGECONFIG[seq--sbiload] = ""
|
||||
PACKAGECONFIG[sscape_ctl] = ""
|
||||
PACKAGECONFIG[us428control] = ""
|
||||
PACKAGECONFIG[usx2yloader] = ""
|
||||
PACKAGECONFIG[vxloader] = ""
|
||||
|
||||
# At the time of writing pyalsa is not packaged for OE, so this is not expected
|
||||
# to work.
|
||||
PACKAGECONFIG[hwmixvolume] = ",,,python-core python-pygobject pyalsa"
|
||||
|
||||
python do_configure() {
|
||||
for subdir in d.getVar("PACKAGECONFIG").split():
|
||||
subdir = subdir.replace("--", "/")
|
||||
bb.note("Configuring %s" % subdir)
|
||||
dd = d.createCopy()
|
||||
dd.setVar("S", os.path.join(d.getVar("S"), subdir))
|
||||
bb.build.exec_func("autotools_do_configure", dd)
|
||||
}
|
||||
|
||||
python do_compile() {
|
||||
for subdir in d.getVar("PACKAGECONFIG").split():
|
||||
subdir = subdir.replace("--", "/")
|
||||
bb.note("Compiling %s" % subdir)
|
||||
dd = d.createCopy()
|
||||
dd.setVar("S", os.path.join(d.getVar("S"), subdir))
|
||||
bb.build.exec_func("autotools_do_compile", dd)
|
||||
}
|
||||
|
||||
python do_install() {
|
||||
d.delVarFlag("autotools_do_install", "cleandirs")
|
||||
for subdir in d.getVar("PACKAGECONFIG").split():
|
||||
subdir = subdir.replace("--", "/")
|
||||
bb.note("Installing %s" % subdir)
|
||||
dd = d.createCopy()
|
||||
dd.setVar("S", os.path.join(d.getVar("S"), subdir))
|
||||
bb.build.exec_func("autotools_do_install", dd)
|
||||
|
||||
# Just remove bash-needing init script that isn't installed as an init script
|
||||
try:
|
||||
os.remove(oe.path.join(d.getVar("D"), d.getVar("sbindir"), "ld10k1d"))
|
||||
except:
|
||||
pass
|
||||
}
|
||||
|
||||
FILES:${PN} += "${datadir}"
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "ALSA topology configuration files"
|
||||
DESCRIPTION = "Provides a method for audio drivers to load their mixers, \
|
||||
routing, PCMs and capabilities from user space at runtime without changing \
|
||||
any driver source code."
|
||||
HOMEPAGE = "https://alsa-project.org"
|
||||
BUGTRACKER = "https://alsa-project.org/wiki/Bug_Tracking"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=20d74d74db9741697903372ad001d3b4"
|
||||
|
||||
SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2"
|
||||
SRC_URI[sha256sum] = "f7c5bae1545abcd73824bc97f4e72c340e11abea188ba0f1c06f5e0ad776b179"
|
||||
# Something went wrong at upstream tarballing
|
||||
|
||||
inherit allarch
|
||||
|
||||
do_install() {
|
||||
install -d "${D}${datadir}/alsa"
|
||||
cp -r "${S}/topology" "${D}${datadir}/alsa"
|
||||
}
|
||||
|
||||
PACKAGES = "${PN}"
|
||||
|
||||
FILES:${PN} = "*"
|
||||
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "ALSA Use Case Manager configuration"
|
||||
DESCRIPTION = "This package contains ALSA Use Case Manager configuration \
|
||||
of audio input/output names and routing for specific audio hardware. \
|
||||
They can be used with the alsaucm tool. "
|
||||
HOMEPAGE = "https://alsa-project.org"
|
||||
BUGTRACKER = "https://alsa-project.org/wiki/Bug_Tracking"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=20d74d74db9741697903372ad001d3b4"
|
||||
|
||||
SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2"
|
||||
SRC_URI[sha256sum] = "374f6833bfd77d0a4675e4aa2bfb79defe850e5a46a5d4542a45962f4b9e272a"
|
||||
# Something went wrong at upstream tarballing
|
||||
|
||||
inherit allarch
|
||||
|
||||
do_install() {
|
||||
install -d "${D}${datadir}/alsa"
|
||||
cp -r "${S}/ucm" "${D}${datadir}/alsa"
|
||||
cp -r "${S}/ucm2" "${D}${datadir}/alsa"
|
||||
}
|
||||
|
||||
PACKAGES = "${PN}"
|
||||
|
||||
FILES:${PN} = "*"
|
||||
+35
@@ -0,0 +1,35 @@
|
||||
From 44636a7c5862538def0d2fac074772cc39a22a15 Mon Sep 17 00:00:00 2001
|
||||
From: Rudi Heitbaum <rudi@heitbaum.com>
|
||||
Date: Tue, 16 May 2023 02:27:59 +1000
|
||||
Subject: [PATCH] alsactl: fix compilation when building in a subdir
|
||||
|
||||
Fixes: 613372d
|
||||
Fixes: cff2d1c
|
||||
|
||||
Compile errors when building in a subdir:
|
||||
alsactl/alsactl.c:33:10: fatal error: os_compat.h: No such file or directory
|
||||
33 | #include "os_compat.h"
|
||||
| ^~~~~~~~~~~~~
|
||||
alsactl/lock.c:34:10: fatal error: os_compat.h: No such file or directory
|
||||
34 | #include "os_compat.h"
|
||||
| ^~~~~~~~~~~~~
|
||||
|
||||
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
|
||||
Upstream-Status: Submitted [https://github.com/alsa-project/alsa-utils/pull/213]
|
||||
---
|
||||
alsactl/Makefile.am | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/alsactl/Makefile.am b/alsactl/Makefile.am
|
||||
index 80dba69d..fb32c4f3 100644
|
||||
--- a/alsactl/Makefile.am
|
||||
+++ b/alsactl/Makefile.am
|
||||
@@ -9,6 +9,8 @@ EXTRA_DIST=alsactl.1 alsactl_init.xml
|
||||
|
||||
AM_CFLAGS = -D_GNU_SOURCE
|
||||
|
||||
+AM_CPPFLAGS = -I$(top_srcdir)/include
|
||||
+
|
||||
alsactl_SOURCES=alsactl.c state.c lock.c utils.c init_parse.c init_ucm.c \
|
||||
daemon.c monitor.c clean.c info.c
|
||||
|
||||
@@ -0,0 +1,122 @@
|
||||
SUMMARY = "ALSA sound utilities"
|
||||
DESCRIPTION = "collection of small and often extremely powerful applications \
|
||||
designed to allow users to control the various parts of the ALSA system."
|
||||
HOMEPAGE = "http://www.alsa-project.org"
|
||||
BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
|
||||
SECTION = "console/utils"
|
||||
# Some parts are GPL-2.0-or-later, some are GPL-2.0-only (e.g. axfer, alsactl)
|
||||
# so result is GPL-2.0-only
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
|
||||
file://alsactl/utils.c;beginline=3;endline=18;md5=96cc06a4cebe5eb7975688ffb0e65642"
|
||||
DEPENDS = "alsa-lib ncurses libsamplerate0"
|
||||
|
||||
PACKAGECONFIG ??= "udev"
|
||||
|
||||
# alsabat can be built also without fftw support (with reduced functionality).
|
||||
# It would be better to always enable alsabat, but provide an option for
|
||||
# enabling/disabling fftw. The configure script doesn't support that, however
|
||||
# (at least in any obvious way), so for now we only support alsabat with fftw
|
||||
# or no alsabat at all.
|
||||
PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf"
|
||||
|
||||
PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,--with-udev-rules-dir=/unwanted/rules.d,udev"
|
||||
PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
|
||||
|
||||
# alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe
|
||||
SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2 \
|
||||
file://0001-alsactl-fix-compilation-when-building-in-a-subdir.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "e7623d4525595f92e11ce25ee9a97f2040a14c6e4dcd027aa96e06cbce7817bd"
|
||||
|
||||
# On build machines with python-docutils (not python3-docutils !!) installed
|
||||
# rst2man (not rst2man.py) is detected and compile fails with
|
||||
# | make[1]: *** No rule to make target 'alsaucm.1', needed by 'all-am'. Stop.
|
||||
# Avoid this by disabling expicitly
|
||||
EXTRA_OECONF = "--disable-rst2man"
|
||||
|
||||
inherit autotools gettext pkgconfig manpages
|
||||
|
||||
# This are all packages that we need to make. Also, the now empty alsa-utils
|
||||
# ipk depends on them.
|
||||
|
||||
ALSA_UTILS_PKGS = "\
|
||||
${@bb.utils.contains('PACKAGECONFIG', 'bat', 'alsa-utils-alsabat', '', d)} \
|
||||
alsa-utils-alsamixer \
|
||||
alsa-utils-alsatplg \
|
||||
alsa-utils-midi \
|
||||
alsa-utils-aplay \
|
||||
alsa-utils-amixer \
|
||||
alsa-utils-aconnect \
|
||||
alsa-utils-iecset \
|
||||
alsa-utils-speakertest \
|
||||
alsa-utils-aseqnet \
|
||||
alsa-utils-aseqdump \
|
||||
alsa-utils-alsactl \
|
||||
alsa-utils-alsaloop \
|
||||
alsa-utils-alsaucm \
|
||||
alsa-utils-scripts \
|
||||
"
|
||||
|
||||
PACKAGES += "${ALSA_UTILS_PKGS}"
|
||||
RDEPENDS:${PN} += "${ALSA_UTILS_PKGS}"
|
||||
|
||||
FILES:${PN} = ""
|
||||
ALLOW_EMPTY:alsa-utils = "1"
|
||||
FILES:alsa-utils-alsabat = "${bindir}/alsabat"
|
||||
FILES:alsa-utils-alsatplg = "${bindir}/alsatplg ${libdir}/alsa-topology"
|
||||
FILES:alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord ${bindir}/axfer"
|
||||
FILES:alsa-utils-amixer = "${bindir}/amixer"
|
||||
FILES:alsa-utils-alsamixer = "${bindir}/alsamixer"
|
||||
FILES:alsa-utils-speakertest = "${bindir}/speaker-test ${datadir}/sounds/alsa/ ${datadir}/alsa/speaker-test/"
|
||||
FILES:alsa-utils-midi = "${bindir}/aplaymidi ${bindir}/arecordmidi ${bindir}/amidi"
|
||||
FILES:alsa-utils-aconnect = "${bindir}/aconnect"
|
||||
FILES:alsa-utils-aseqnet = "${bindir}/aseqnet"
|
||||
FILES:alsa-utils-iecset = "${bindir}/iecset"
|
||||
FILES:alsa-utils-alsactl = "${sbindir}/alsactl */udev/rules.d/90-alsa-restore.rules */*/udev/rules.d/90-alsa-restore.rules ${systemd_unitdir} ${localstatedir}/lib/alsa ${datadir}/alsa/init/"
|
||||
FILES:alsa-utils-aseqdump = "${bindir}/aseqdump"
|
||||
FILES:alsa-utils-alsaloop = "${bindir}/alsaloop"
|
||||
FILES:alsa-utils-alsaucm = "${bindir}/alsaucm */udev/rules.d/89-alsa-ucm.rules */*/udev/rules.d/89-alsa-ucm.rules"
|
||||
FILES:alsa-utils-scripts = "${sbindir}/alsaconf \
|
||||
${sbindir}/alsa-info.sh \
|
||||
${sbindir}/alsabat-test.sh \
|
||||
"
|
||||
|
||||
SUMMARY:alsa-utils-alsabat = "Command-line sound tester for ALSA sound card driver"
|
||||
SUMMARY:alsa-utils-alsatplg = "Converts topology text files into binary format for kernel"
|
||||
SUMMARY:alsa-utils-aplay = "Play (and record) sound files using ALSA"
|
||||
SUMMARY:alsa-utils-amixer = "Command-line control for ALSA mixer and settings"
|
||||
SUMMARY:alsa-utils-alsamixer = "ncurses-based control for ALSA mixer and settings"
|
||||
SUMMARY:alsa-utils-speakertest = "ALSA surround speaker test utility"
|
||||
SUMMARY:alsa-utils-midi = "Miscellaneous MIDI utilities for ALSA"
|
||||
SUMMARY:alsa-utils-aconnect = "ALSA sequencer connection manager"
|
||||
SUMMARY:alsa-utils-aseqnet = "Network client/server for ALSA sequencer"
|
||||
SUMMARY:alsa-utils-iecset = "ALSA utility for setting/showing IEC958 (S/PDIF) status bits"
|
||||
SUMMARY:alsa-utils-alsactl = "Saves/restores ALSA-settings in /etc/asound.state"
|
||||
SUMMARY:alsa-utils-aseqdump = "Shows the events received at an ALSA sequencer port"
|
||||
SUMMARY:alsa-utils-alsaloop = "ALSA PCM loopback utility"
|
||||
SUMMARY:alsa-utils-alsaucm = "ALSA Use Case Manager"
|
||||
SUMMARY:alsa-utils-scripts = "Shell scripts that show help info and create ALSA configuration files"
|
||||
|
||||
RRECOMMENDS:alsa-utils-alsactl = "alsa-states"
|
||||
|
||||
do_install() {
|
||||
autotools_do_install
|
||||
|
||||
install -d ${D}${sbindir}
|
||||
install -m 0755 ${B}/alsaconf/alsaconf ${D}${sbindir}/
|
||||
install -m 0755 ${S}/alsa-info/alsa-info.sh ${D}${sbindir}/
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'bat', 'true', 'false', d)}; then
|
||||
install -m 0755 ${S}/bat/alsabat-test.sh ${D}${sbindir}/
|
||||
fi
|
||||
|
||||
# If udev is disabled, we told configure to install the rules
|
||||
# in /unwanted, so we can remove them now. If udev is enabled,
|
||||
# then /unwanted won't exist and this will have no effect.
|
||||
rm -rf ${D}/unwanted
|
||||
}
|
||||
|
||||
|
||||
PROVIDES = "alsa-utils-alsaconf alsa-utils-scripts"
|
||||
|
||||
RDEPENDS:${PN}-scripts += "bash"
|
||||
Reference in New Issue
Block a user