Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "ALSA sound utilities" |
| 2 | HOMEPAGE = "http://www.alsa-project.org" |
| 3 | BUGTRACKER = "https://bugtrack.alsa-project.org/alsa-bug/login_page.php" |
| 4 | SECTION = "console/utils" |
| 5 | LICENSE = "GPLv2+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 7 | file://alsactl/utils.c;beginline=1;endline=20;md5=fe9526b055e246b5558809a5ae25c0b9" |
| 8 | DEPENDS = "alsa-lib ncurses libsamplerate0" |
| 9 | |
| 10 | PACKAGECONFIG ??= "udev" |
| 11 | PACKAGECONFIG[udev] = "--with-udev-rules-dir=`pkg-config --variable=udevdir udev`/rules.d,,udev" |
| 12 | PACKAGECONFIG[xmlto] = "--enable-xmlto, --disable-xmlto, xmlto-native docbook-xml-dtd4-native docbook-xsl-stylesheets-native" |
| 13 | |
| 14 | SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \ |
| 15 | file://0001-alsactl-don-t-let-systemd-unit-restore-the-volume-wh.patch \ |
| 16 | file://alsa-utils-aplay-interrupt-signal-handling.patch \ |
| 17 | file://assume-storing-is-success-if-not-sound-card-device.patch \ |
| 18 | " |
| 19 | |
| 20 | SRC_URI[md5sum] = "6b289bf874c4c9a63f4b3973093dd404" |
| 21 | SRC_URI[sha256sum] = "5160058f3e14483ced5de919dd473f93932059454530a9b7ef97dcabd6833e9b" |
| 22 | |
| 23 | # lazy hack. needs proper fixing in gettext.m4, see |
| 24 | # http://bugs.openembedded.org/show_bug.cgi?id=2348 |
| 25 | # please close bug and remove this comment when properly fixed |
| 26 | # |
| 27 | EXTRA_OECONF_append_libc-uclibc = " --disable-nls" |
| 28 | |
| 29 | inherit autotools gettext pkgconfig |
| 30 | |
| 31 | # This are all packages that we need to make. Also, the now empty alsa-utils |
| 32 | # ipk depends on them. |
| 33 | |
| 34 | ALSA_UTILS_PKGS = "\ |
| 35 | alsa-utils-alsamixer \ |
| 36 | alsa-utils-midi \ |
| 37 | alsa-utils-aplay \ |
| 38 | alsa-utils-amixer \ |
| 39 | alsa-utils-aconnect \ |
| 40 | alsa-utils-iecset \ |
| 41 | alsa-utils-speakertest \ |
| 42 | alsa-utils-aseqnet \ |
| 43 | alsa-utils-aseqdump \ |
| 44 | alsa-utils-alsactl \ |
| 45 | alsa-utils-alsaloop \ |
| 46 | alsa-utils-alsaucm \ |
| 47 | " |
| 48 | |
| 49 | PACKAGES += "${ALSA_UTILS_PKGS}" |
| 50 | RDEPENDS_${PN} += "${ALSA_UTILS_PKGS}" |
| 51 | |
| 52 | FILES_${PN} = "" |
| 53 | FILES_alsa-utils-aplay = "${bindir}/aplay ${bindir}/arecord" |
| 54 | FILES_alsa-utils-amixer = "${bindir}/amixer" |
| 55 | FILES_alsa-utils-alsamixer = "${bindir}/alsamixer" |
| 56 | FILES_alsa-utils-speakertest = "${bindir}/speaker-test ${datadir}/sounds/alsa/ ${datadir}/alsa/speaker-test/" |
| 57 | FILES_alsa-utils-midi = "${bindir}/aplaymidi ${bindir}/arecordmidi ${bindir}/amidi" |
| 58 | FILES_alsa-utils-aconnect = "${bindir}/aconnect" |
| 59 | FILES_alsa-utils-aseqnet = "${bindir}/aseqnet" |
| 60 | FILES_alsa-utils-iecset = "${bindir}/iecset" |
| 61 | FILES_alsa-utils-alsactl = "${sbindir}/alsactl */udev/rules.d */*/udev/rules.d ${systemd_unitdir} ${localstatedir}/lib/alsa ${datadir}/alsa/init/" |
| 62 | FILES_alsa-utils-aseqdump = "${bindir}/aseqdump" |
| 63 | FILES_alsa-utils-alsaloop = "${bindir}/alsaloop" |
| 64 | FILES_alsa-utils-alsaucm = "${bindir}/alsaucm" |
| 65 | |
| 66 | |
| 67 | SUMMARY_alsa-utils-aplay = "Play (and record) sound files using ALSA" |
| 68 | SUMMARY_alsa-utils-amixer = "Command-line control for ALSA mixer and settings" |
| 69 | SUMMARY_alsa-utils-alsamixer = "ncurses-based control for ALSA mixer and settings" |
| 70 | SUMMARY_alsa-utils-speakertest = "ALSA surround speaker test utility" |
| 71 | SUMMARY_alsa-utils-midi = "Miscellaneous MIDI utilities for ALSA" |
| 72 | SUMMARY_alsa-utils-aconnect = "ALSA sequencer connection manager" |
| 73 | SUMMARY_alsa-utils-aseqnet = "Network client/server for ALSA sequencer" |
| 74 | SUMMARY_alsa-utils-iecset = "ALSA utility for setting/showing IEC958 (S/PDIF) status bits" |
| 75 | SUMMARY_alsa-utils-alsactl = "Saves/restores ALSA-settings in /etc/asound.state" |
| 76 | SUMMARY_alsa-utils-aseqdump = "Shows the events received at an ALSA sequencer port" |
| 77 | SUMMARY_alsa-utils-alsaloop = "ALSA PCM loopback utility" |
| 78 | SUMMARY_alsa-utils-alsaucm = "ALSA Use Case Manager" |
| 79 | |
| 80 | RRECOMMENDS_alsa-utils-alsactl = "alsa-states" |
| 81 | |
| 82 | ALLOW_EMPTY_alsa-utils = "1" |
| 83 | |
| 84 | do_install() { |
| 85 | autotools_do_install |
| 86 | |
| 87 | # We don't ship this here because it requires a dependency on bash. |
| 88 | # See alsa-utils-scripts_${PV}.bb |
| 89 | rm ${D}${sbindir}/alsaconf |
| 90 | rm ${D}${sbindir}/alsa-info.sh |
| 91 | |
| 92 | if ${@bb.utils.contains('PACKAGECONFIG', 'udev', 'false', 'true', d)}; then |
| 93 | # This is where alsa-utils will install its rules if we don't tell it anything else. |
| 94 | rm -rf ${D}/lib/udev |
| 95 | rmdir --ignore-fail-on-non-empty ${D}/lib |
| 96 | fi |
| 97 | } |