summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-05-27 21:47:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-30 22:25:11 +0100
commit3ad8bd7f33dfe8aaf4732e321270f61fe1ba3526 (patch)
tree0743ed8fa7a6e9f17319d9dc2e0597e51a58b958
parent943f6fdd0bc20060b5e120ad22f80cb8534153fd (diff)
downloadopenembedded-core-contrib-3ad8bd7f33dfe8aaf4732e321270f61fe1ba3526.tar.gz
openembedded-core-contrib-3ad8bd7f33dfe8aaf4732e321270f61fe1ba3526.tar.bz2
openembedded-core-contrib-3ad8bd7f33dfe8aaf4732e321270f61fe1ba3526.zip
alsa-plugins: Install 99-pulseaudio-default.conf when pulseaudio is enabled
The source file does not exist when pluseaudio is disabled Change-Id: I78e0b9f4b8e66d8f41415c8672c1cb62c8fc5dc6 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-multimedia/alsa/alsa-plugins_1.0.29.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-plugins_1.0.29.bb b/meta/recipes-multimedia/alsa/alsa-plugins_1.0.29.bb
index 5105e77895..80f0446482 100644
--- a/meta/recipes-multimedia/alsa/alsa-plugins_1.0.29.bb
+++ b/meta/recipes-multimedia/alsa/alsa-plugins_1.0.29.bb
@@ -50,7 +50,9 @@ do_install_append() {
rm ${D}${libdir}/alsa-lib/*.la
# We use the example as is, so just drop the .example suffix.
- mv ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf
+ if [ "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', 'yes', 'no', d)}" = "yes" ]; then
+ mv ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf.example ${D}${datadir}/alsa/alsa.conf.d/99-pulseaudio-default.conf
+ fi
}
python populate_packages_prepend() {