blob: b523a5a832c2d573180d274653bcd59ceb27b5cc [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "ALSA sound utilities"
2HOMEPAGE = "http://www.alsa-project.org"
3BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
4SECTION = "console/utils"
5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
7 file://alsactl/utils.c;beginline=3;endline=18;md5=96cc06a4cebe5eb7975688ffb0e65642"
8DEPENDS = "alsa-lib ncurses libsamplerate0"
9
10PACKAGECONFIG ??= "udev"
11
12# alsabat can be built also without fftw support (with reduced functionality).
13# It would be better to always enable alsabat, but provide an option for
14# enabling/disabling fftw. The configure script doesn't support that, however
15# (at least in any obvious way), so for now we only support alsabat with fftw
16# or no alsabat at all.
17PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf"
18
19PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,--with-udev-rules-dir=/unwanted/rules.d,udev"
20PACKAGECONFIG[manpages] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native"
21
22# alsa-utils specified in SRC_URI due to alsa-utils-scripts recipe
23SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2"
Andrew Geissler475cb722020-07-10 16:00:51 -050024SRC_URI[sha256sum] = "ff19ae48c22938de7a491bdb39db74a2eee2546013f39bf1a86185e426f921aa"
Andrew Geissler82c905d2020-04-13 13:39:40 -050025
26# On build machines with python-docutils (not python3-docutils !!) installed
27# rst2man (not rst2man.py) is detected and compile fails with
28# | make[1]: *** No rule to make target 'alsaucm.1', needed by 'all-am'. Stop.
29# Avoid this by disabling expicitly
30EXTRA_OECONF = "--disable-rst2man"
31
32inherit autotools gettext pkgconfig manpages
33
34# This are all packages that we need to make. Also, the now empty alsa-utils
35# ipk depends on them.
36
37ALSA_UTILS_PKGS = "\
38 ${@bb.utils.contains('PACKAGECONFIG', 'bat', 'alsa-utils-alsabat', '', d)} \
39 alsa-utils-alsamixer \
40 alsa-utils-alsatplg \
41 alsa-utils-midi \
42 alsa-utils-aplay \
43 alsa-utils-amixer \
44 alsa-utils-aconnect \
45 alsa-utils-iecset \
46 alsa-utils-speakertest \
47 alsa-utils-aseqnet \
48 alsa-utils-aseqdump \
49 alsa-utils-alsactl \
50 alsa-utils-alsaloop \
51 alsa-utils-alsaucm \
52 "
53
54PACKAGES += "${ALSA_UTILS_PKGS}"
55RDEPENDS_${PN} += "${ALSA_UTILS_PKGS}"
56
57FILES_${PN} = ""
58ALLOW_EMPTY_alsa-utils = "1"
59FILES_alsa-utils-alsabat = "${bindir}/alsabat"
60FILES_alsa-utils-alsatplg = "${bindir}/alsatplg"
61FILES_alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord ${bindir}/axfer"
62FILES_alsa-utils-amixer = "${bindir}/amixer"
63FILES_alsa-utils-alsamixer = "${bindir}/alsamixer"
64FILES_alsa-utils-speakertest = "${bindir}/speaker-test ${datadir}/sounds/alsa/ ${datadir}/alsa/speaker-test/"
65FILES_alsa-utils-midi = "${bindir}/aplaymidi ${bindir}/arecordmidi ${bindir}/amidi"
66FILES_alsa-utils-aconnect = "${bindir}/aconnect"
67FILES_alsa-utils-aseqnet = "${bindir}/aseqnet"
68FILES_alsa-utils-iecset = "${bindir}/iecset"
69FILES_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/"
70FILES_alsa-utils-aseqdump = "${bindir}/aseqdump"
71FILES_alsa-utils-alsaloop = "${bindir}/alsaloop"
72FILES_alsa-utils-alsaucm = "${bindir}/alsaucm */udev/rules.d/89-alsa-ucm.rules */*/udev/rules.d/89-alsa-ucm.rules"
73
74SUMMARY_alsa-utils-alsabat = "Command-line sound tester for ALSA sound card driver"
75SUMMARY_alsa-utils-alsatplg = "Converts topology text files into binary format for kernel"
76SUMMARY_alsa-utils-aplay = "Play (and record) sound files using ALSA"
77SUMMARY_alsa-utils-amixer = "Command-line control for ALSA mixer and settings"
78SUMMARY_alsa-utils-alsamixer = "ncurses-based control for ALSA mixer and settings"
79SUMMARY_alsa-utils-speakertest = "ALSA surround speaker test utility"
80SUMMARY_alsa-utils-midi = "Miscellaneous MIDI utilities for ALSA"
81SUMMARY_alsa-utils-aconnect = "ALSA sequencer connection manager"
82SUMMARY_alsa-utils-aseqnet = "Network client/server for ALSA sequencer"
83SUMMARY_alsa-utils-iecset = "ALSA utility for setting/showing IEC958 (S/PDIF) status bits"
84SUMMARY_alsa-utils-alsactl = "Saves/restores ALSA-settings in /etc/asound.state"
85SUMMARY_alsa-utils-aseqdump = "Shows the events received at an ALSA sequencer port"
86SUMMARY_alsa-utils-alsaloop = "ALSA PCM loopback utility"
87SUMMARY_alsa-utils-alsaucm = "ALSA Use Case Manager"
88
89RRECOMMENDS_alsa-utils-alsactl = "alsa-states"
90
91do_install() {
92 autotools_do_install
93
94 # We don't ship this here because it requires a dependency on bash.
95 # See alsa-utils-scripts_${PV}.bb
96 rm ${D}${sbindir}/alsaconf
97 rm ${D}${sbindir}/alsa-info.sh
98 rm -f ${D}${sbindir}/alsabat-test.sh
99
100 # If udev is disabled, we told configure to install the rules
101 # in /unwanted, so we can remove them now. If udev is enabled,
102 # then /unwanted won't exist and this will have no effect.
103 rm -rf ${D}/unwanted
104}