diff options
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-plugins_1.1.6.bb')
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-plugins_1.1.6.bb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-plugins_1.1.6.bb b/meta/recipes-multimedia/alsa/alsa-plugins_1.1.6.bb index 7ede8be98a..ee06191ea9 100644 --- a/meta/recipes-multimedia/alsa/alsa-plugins_1.1.6.bb +++ b/meta/recipes-multimedia/alsa/alsa-plugins_1.1.6.bb | |||
@@ -47,14 +47,23 @@ PACKAGES_DYNAMIC = "^libasound-module-.*" | |||
47 | 47 | ||
48 | # The alsa-plugins package doesn't itself contain anything, it just depends on | 48 | # The alsa-plugins package doesn't itself contain anything, it just depends on |
49 | # all built plugins. | 49 | # all built plugins. |
50 | FILES_${PN} = "" | ||
50 | ALLOW_EMPTY_${PN} = "1" | 51 | ALLOW_EMPTY_${PN} = "1" |
51 | 52 | ||
52 | do_install_append() { | 53 | do_install_append() { |
53 | rm ${D}${libdir}/alsa-lib/*.la | 54 | rm ${D}${libdir}/alsa-lib/*.la |
54 | 55 | ||
55 | # We use the example as is, so just drop the .example suffix. | ||
56 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'yes', 'no', d)}" = "yes" ]; then | 56 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'yes', 'no', d)}" = "yes" ]; then |
57 | # We use the example as is, so just drop the .example suffix. | ||
57 | mv ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf | 58 | mv ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf |
59 | |||
60 | # The conf.d files are installed in datadir, but alsa-lib | ||
61 | # searches for conf.d files only in sysconfdir. Distributions | ||
62 | # are expected to create symlinks in sysconfdir, so that's what | ||
63 | # we do here. | ||
64 | mkdir -p ${D}${sysconfdir}/alsa/conf.d | ||
65 | ln -s ${datadir}/alsa/alsa.conf.d/50-pulseaudio.conf ${D}${sysconfdir}/alsa/conf.d/50-pulseaudio.conf | ||
66 | ln -s ${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf ${D}${sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf | ||
58 | fi | 67 | fi |
59 | } | 68 | } |
60 | 69 | ||
@@ -94,6 +103,8 @@ INSANE_SKIP_${MLPREFIX}libasound-module-rate-speexrate = "dev-so" | |||
94 | FILES_${PN}-pulseaudio-conf += "\ | 103 | FILES_${PN}-pulseaudio-conf += "\ |
95 | ${datadir}/alsa/alsa.conf.d/50-pulseaudio.conf \ | 104 | ${datadir}/alsa/alsa.conf.d/50-pulseaudio.conf \ |
96 | ${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf \ | 105 | ${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf \ |
106 | ${sysconfdir}/alsa/conf.d/50-pulseaudio.conf \ | ||
107 | ${sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf \ | ||
97 | " | 108 | " |
98 | 109 | ||
99 | RDEPENDS_${PN}-pulseaudio-conf += "\ | 110 | RDEPENDS_${PN}-pulseaudio-conf += "\ |