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