diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-05-31 17:52:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-04 13:27:30 +0100 |
commit | a6551b208eb1bb7e0ccfe1574bdcb636505b86ac (patch) | |
tree | c46e957a8eeb77fbc835c458739db672a80e4bd0 /meta/recipes-multimedia/alsa | |
parent | a6a1ea59d2bd04ccfa48d3b3038ab3c0c7fa8c14 (diff) | |
download | poky-a6551b208eb1bb7e0ccfe1574bdcb636505b86ac.tar.gz |
alsa-utils: split the content into .inc
This allows including the .inc from alsa-utils-scripts
which unbreaks automated version updates.
Bump alsa-utils-scripts to 1.2.2 at the same time.
(From OE-Core rev: d3d8500f828d28367c114cd1f72b26f9a28107ff)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/alsa')
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils-scripts_1.2.2.bb | 2 | ||||
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils.inc | 105 | ||||
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils_1.2.2.bb | 106 |
3 files changed, 107 insertions, 106 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils-scripts_1.2.2.bb b/meta/recipes-multimedia/alsa/alsa-utils-scripts_1.2.2.bb index fef79d9c9c..048fef68a5 100644 --- a/meta/recipes-multimedia/alsa/alsa-utils-scripts_1.2.2.bb +++ b/meta/recipes-multimedia/alsa/alsa-utils-scripts_1.2.2.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | require alsa-utils_${PV}.bb | 1 | require alsa-utils.inc |
2 | 2 | ||
3 | SUMMARY = "Shell scripts that show help info and create ALSA configuration files" | 3 | SUMMARY = "Shell scripts that show help info and create ALSA configuration files" |
4 | PROVIDES = "alsa-utils-alsaconf" | 4 | PROVIDES = "alsa-utils-alsaconf" |
diff --git a/meta/recipes-multimedia/alsa/alsa-utils.inc b/meta/recipes-multimedia/alsa/alsa-utils.inc new file mode 100644 index 0000000000..8bbc5d3ef3 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-utils.inc | |||
@@ -0,0 +1,105 @@ | |||
1 | SUMMARY = "ALSA sound utilities" | ||
2 | HOMEPAGE = "http://www.alsa-project.org" | ||
3 | BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://alsactl/utils.c;beginline=3;endline=18;md5=96cc06a4cebe5eb7975688ffb0e65642" | ||
8 | DEPENDS = "alsa-lib ncurses libsamplerate0" | ||
9 | |||
10 | PACKAGECONFIG ??= "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. | ||
17 | PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf" | ||
18 | |||
19 | PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,--with-udev-rules-dir=/unwanted/rules.d,udev" | ||
20 | PACKAGECONFIG[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 | ||
23 | SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2" | ||
24 | SRC_URI[md5sum] = "00612234ff4722c8f7f8f7a83ff9bc63" | ||
25 | SRC_URI[sha256sum] = "44807bd578c5f6df6e91a11b8d37e546424a5a1ea8d8e659ee359fe01730e4f3" | ||
26 | |||
27 | # On build machines with python-docutils (not python3-docutils !!) installed | ||
28 | # rst2man (not rst2man.py) is detected and compile fails with | ||
29 | # | make[1]: *** No rule to make target 'alsaucm.1', needed by 'all-am'. Stop. | ||
30 | # Avoid this by disabling expicitly | ||
31 | EXTRA_OECONF = "--disable-rst2man" | ||
32 | |||
33 | inherit autotools gettext pkgconfig manpages | ||
34 | |||
35 | # This are all packages that we need to make. Also, the now empty alsa-utils | ||
36 | # ipk depends on them. | ||
37 | |||
38 | ALSA_UTILS_PKGS = "\ | ||
39 | ${@bb.utils.contains('PACKAGECONFIG', 'bat', 'alsa-utils-alsabat', '', d)} \ | ||
40 | alsa-utils-alsamixer \ | ||
41 | alsa-utils-alsatplg \ | ||
42 | alsa-utils-midi \ | ||
43 | alsa-utils-aplay \ | ||
44 | alsa-utils-amixer \ | ||
45 | alsa-utils-aconnect \ | ||
46 | alsa-utils-iecset \ | ||
47 | alsa-utils-speakertest \ | ||
48 | alsa-utils-aseqnet \ | ||
49 | alsa-utils-aseqdump \ | ||
50 | alsa-utils-alsactl \ | ||
51 | alsa-utils-alsaloop \ | ||
52 | alsa-utils-alsaucm \ | ||
53 | " | ||
54 | |||
55 | PACKAGES += "${ALSA_UTILS_PKGS}" | ||
56 | RDEPENDS_${PN} += "${ALSA_UTILS_PKGS}" | ||
57 | |||
58 | FILES_${PN} = "" | ||
59 | ALLOW_EMPTY_alsa-utils = "1" | ||
60 | FILES_alsa-utils-alsabat = "${bindir}/alsabat" | ||
61 | FILES_alsa-utils-alsatplg = "${bindir}/alsatplg" | ||
62 | FILES_alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord ${bindir}/axfer" | ||
63 | FILES_alsa-utils-amixer = "${bindir}/amixer" | ||
64 | FILES_alsa-utils-alsamixer = "${bindir}/alsamixer" | ||
65 | FILES_alsa-utils-speakertest = "${bindir}/speaker-test ${datadir}/sounds/alsa/ ${datadir}/alsa/speaker-test/" | ||
66 | FILES_alsa-utils-midi = "${bindir}/aplaymidi ${bindir}/arecordmidi ${bindir}/amidi" | ||
67 | FILES_alsa-utils-aconnect = "${bindir}/aconnect" | ||
68 | FILES_alsa-utils-aseqnet = "${bindir}/aseqnet" | ||
69 | FILES_alsa-utils-iecset = "${bindir}/iecset" | ||
70 | 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/" | ||
71 | FILES_alsa-utils-aseqdump = "${bindir}/aseqdump" | ||
72 | FILES_alsa-utils-alsaloop = "${bindir}/alsaloop" | ||
73 | FILES_alsa-utils-alsaucm = "${bindir}/alsaucm */udev/rules.d/89-alsa-ucm.rules */*/udev/rules.d/89-alsa-ucm.rules" | ||
74 | |||
75 | SUMMARY_alsa-utils-alsabat = "Command-line sound tester for ALSA sound card driver" | ||
76 | SUMMARY_alsa-utils-alsatplg = "Converts topology text files into binary format for kernel" | ||
77 | SUMMARY_alsa-utils-aplay = "Play (and record) sound files using ALSA" | ||
78 | SUMMARY_alsa-utils-amixer = "Command-line control for ALSA mixer and settings" | ||
79 | SUMMARY_alsa-utils-alsamixer = "ncurses-based control for ALSA mixer and settings" | ||
80 | SUMMARY_alsa-utils-speakertest = "ALSA surround speaker test utility" | ||
81 | SUMMARY_alsa-utils-midi = "Miscellaneous MIDI utilities for ALSA" | ||
82 | SUMMARY_alsa-utils-aconnect = "ALSA sequencer connection manager" | ||
83 | SUMMARY_alsa-utils-aseqnet = "Network client/server for ALSA sequencer" | ||
84 | SUMMARY_alsa-utils-iecset = "ALSA utility for setting/showing IEC958 (S/PDIF) status bits" | ||
85 | SUMMARY_alsa-utils-alsactl = "Saves/restores ALSA-settings in /etc/asound.state" | ||
86 | SUMMARY_alsa-utils-aseqdump = "Shows the events received at an ALSA sequencer port" | ||
87 | SUMMARY_alsa-utils-alsaloop = "ALSA PCM loopback utility" | ||
88 | SUMMARY_alsa-utils-alsaucm = "ALSA Use Case Manager" | ||
89 | |||
90 | RRECOMMENDS_alsa-utils-alsactl = "alsa-states" | ||
91 | |||
92 | do_install() { | ||
93 | autotools_do_install | ||
94 | |||
95 | # We don't ship this here because it requires a dependency on bash. | ||
96 | # See alsa-utils-scripts_${PV}.bb | ||
97 | rm ${D}${sbindir}/alsaconf | ||
98 | rm ${D}${sbindir}/alsa-info.sh | ||
99 | rm -f ${D}${sbindir}/alsabat-test.sh | ||
100 | |||
101 | # If udev is disabled, we told configure to install the rules | ||
102 | # in /unwanted, so we can remove them now. If udev is enabled, | ||
103 | # then /unwanted won't exist and this will have no effect. | ||
104 | rm -rf ${D}/unwanted | ||
105 | } | ||
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.2.2.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.2.2.bb index 8bbc5d3ef3..ff8945e5c7 100644 --- a/meta/recipes-multimedia/alsa/alsa-utils_1.2.2.bb +++ b/meta/recipes-multimedia/alsa/alsa-utils_1.2.2.bb | |||
@@ -1,105 +1 @@ | |||
1 | SUMMARY = "ALSA sound utilities" | require alsa-utils.inc | |
2 | HOMEPAGE = "http://www.alsa-project.org" | ||
3 | BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ | ||
7 | file://alsactl/utils.c;beginline=3;endline=18;md5=96cc06a4cebe5eb7975688ffb0e65642" | ||
8 | DEPENDS = "alsa-lib ncurses libsamplerate0" | ||
9 | |||
10 | PACKAGECONFIG ??= "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. | ||
17 | PACKAGECONFIG[bat] = "--enable-bat,--disable-bat,fftwf" | ||
18 | |||
19 | PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,--with-udev-rules-dir=/unwanted/rules.d,udev" | ||
20 | PACKAGECONFIG[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 | ||
23 | SRC_URI = "https://www.alsa-project.org/files/pub/utils/alsa-utils-${PV}.tar.bz2" | ||
24 | SRC_URI[md5sum] = "00612234ff4722c8f7f8f7a83ff9bc63" | ||
25 | SRC_URI[sha256sum] = "44807bd578c5f6df6e91a11b8d37e546424a5a1ea8d8e659ee359fe01730e4f3" | ||
26 | |||
27 | # On build machines with python-docutils (not python3-docutils !!) installed | ||
28 | # rst2man (not rst2man.py) is detected and compile fails with | ||
29 | # | make[1]: *** No rule to make target 'alsaucm.1', needed by 'all-am'. Stop. | ||
30 | # Avoid this by disabling expicitly | ||
31 | EXTRA_OECONF = "--disable-rst2man" | ||
32 | |||
33 | inherit autotools gettext pkgconfig manpages | ||
34 | |||
35 | # This are all packages that we need to make. Also, the now empty alsa-utils | ||
36 | # ipk depends on them. | ||
37 | |||
38 | ALSA_UTILS_PKGS = "\ | ||
39 | ${@bb.utils.contains('PACKAGECONFIG', 'bat', 'alsa-utils-alsabat', '', d)} \ | ||
40 | alsa-utils-alsamixer \ | ||
41 | alsa-utils-alsatplg \ | ||
42 | alsa-utils-midi \ | ||
43 | alsa-utils-aplay \ | ||
44 | alsa-utils-amixer \ | ||
45 | alsa-utils-aconnect \ | ||
46 | alsa-utils-iecset \ | ||
47 | alsa-utils-speakertest \ | ||
48 | alsa-utils-aseqnet \ | ||
49 | alsa-utils-aseqdump \ | ||
50 | alsa-utils-alsactl \ | ||
51 | alsa-utils-alsaloop \ | ||
52 | alsa-utils-alsaucm \ | ||
53 | " | ||
54 | |||
55 | PACKAGES += "${ALSA_UTILS_PKGS}" | ||
56 | RDEPENDS_${PN} += "${ALSA_UTILS_PKGS}" | ||
57 | |||
58 | FILES_${PN} = "" | ||
59 | ALLOW_EMPTY_alsa-utils = "1" | ||
60 | FILES_alsa-utils-alsabat = "${bindir}/alsabat" | ||
61 | FILES_alsa-utils-alsatplg = "${bindir}/alsatplg" | ||
62 | FILES_alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord ${bindir}/axfer" | ||
63 | FILES_alsa-utils-amixer = "${bindir}/amixer" | ||
64 | FILES_alsa-utils-alsamixer = "${bindir}/alsamixer" | ||
65 | FILES_alsa-utils-speakertest = "${bindir}/speaker-test ${datadir}/sounds/alsa/ ${datadir}/alsa/speaker-test/" | ||
66 | FILES_alsa-utils-midi = "${bindir}/aplaymidi ${bindir}/arecordmidi ${bindir}/amidi" | ||
67 | FILES_alsa-utils-aconnect = "${bindir}/aconnect" | ||
68 | FILES_alsa-utils-aseqnet = "${bindir}/aseqnet" | ||
69 | FILES_alsa-utils-iecset = "${bindir}/iecset" | ||
70 | 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/" | ||
71 | FILES_alsa-utils-aseqdump = "${bindir}/aseqdump" | ||
72 | FILES_alsa-utils-alsaloop = "${bindir}/alsaloop" | ||
73 | FILES_alsa-utils-alsaucm = "${bindir}/alsaucm */udev/rules.d/89-alsa-ucm.rules */*/udev/rules.d/89-alsa-ucm.rules" | ||
74 | |||
75 | SUMMARY_alsa-utils-alsabat = "Command-line sound tester for ALSA sound card driver" | ||
76 | SUMMARY_alsa-utils-alsatplg = "Converts topology text files into binary format for kernel" | ||
77 | SUMMARY_alsa-utils-aplay = "Play (and record) sound files using ALSA" | ||
78 | SUMMARY_alsa-utils-amixer = "Command-line control for ALSA mixer and settings" | ||
79 | SUMMARY_alsa-utils-alsamixer = "ncurses-based control for ALSA mixer and settings" | ||
80 | SUMMARY_alsa-utils-speakertest = "ALSA surround speaker test utility" | ||
81 | SUMMARY_alsa-utils-midi = "Miscellaneous MIDI utilities for ALSA" | ||
82 | SUMMARY_alsa-utils-aconnect = "ALSA sequencer connection manager" | ||
83 | SUMMARY_alsa-utils-aseqnet = "Network client/server for ALSA sequencer" | ||
84 | SUMMARY_alsa-utils-iecset = "ALSA utility for setting/showing IEC958 (S/PDIF) status bits" | ||
85 | SUMMARY_alsa-utils-alsactl = "Saves/restores ALSA-settings in /etc/asound.state" | ||
86 | SUMMARY_alsa-utils-aseqdump = "Shows the events received at an ALSA sequencer port" | ||
87 | SUMMARY_alsa-utils-alsaloop = "ALSA PCM loopback utility" | ||
88 | SUMMARY_alsa-utils-alsaucm = "ALSA Use Case Manager" | ||
89 | |||
90 | RRECOMMENDS_alsa-utils-alsactl = "alsa-states" | ||
91 | |||
92 | do_install() { | ||
93 | autotools_do_install | ||
94 | |||
95 | # We don't ship this here because it requires a dependency on bash. | ||
96 | # See alsa-utils-scripts_${PV}.bb | ||
97 | rm ${D}${sbindir}/alsaconf | ||
98 | rm ${D}${sbindir}/alsa-info.sh | ||
99 | rm -f ${D}${sbindir}/alsabat-test.sh | ||
100 | |||
101 | # If udev is disabled, we told configure to install the rules | ||
102 | # in /unwanted, so we can remove them now. If udev is enabled, | ||
103 | # then /unwanted won't exist and this will have no effect. | ||
104 | rm -rf ${D}/unwanted | ||
105 | } | ||