summaryrefslogtreecommitdiffstats
path: root/meta-ivi-common/recipes-multimedia/audiomanager/audiomanager_7.3.bb
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2016-04-12 23:13:40 -0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2016-05-06 21:45:35 +0000
commitb8ee362c459d94c2a6023ae40573ef6927d8db56 (patch)
tree0ca1c5d23944928721b834ae86ce1f130596e77e /meta-ivi-common/recipes-multimedia/audiomanager/audiomanager_7.3.bb
parentbe9762b38b7b8608350ac391368cf88ce5906864 (diff)
Add support for GENIVI Audio Manager.
More info at http://projects.genivi.org/audio-manager/. Change-Id: I557a6f69e80e5d3a784d89dbb0584c925ce47545 Signed-off-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>
Diffstat (limited to 'meta-ivi-common/recipes-multimedia/audiomanager/audiomanager_7.3.bb')
-rw-r--r--meta-ivi-common/recipes-multimedia/audiomanager/audiomanager_7.3.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-ivi-common/recipes-multimedia/audiomanager/audiomanager_7.3.bb b/meta-ivi-common/recipes-multimedia/audiomanager/audiomanager_7.3.bb
new file mode 100644
index 000000000..5255f11e6
--- /dev/null
+++ b/meta-ivi-common/recipes-multimedia/audiomanager/audiomanager_7.3.bb
@@ -0,0 +1,43 @@
+SUMMARY = "Genivi AudioManager"
+HOMEPAGE = "https://www.genivi.org/"
+SECTION = "multimedia"
+
+LICENSE = "MPLv2"
+LIC_FILES_CHKSUM = "file://LICENCE;md5=f164349b56ed530a6642e9b9f244eec5"
+PR = "r1"
+
+DEPENDS = "dlt-daemon dbus"
+
+BRANCH = "master"
+
+SRC_URI = " \
+ git://git.projects.genivi.org/AudioManager.git;branch=${BRANCH};tag=${PV} \
+ file://0001-Fix-duplicated-command-line-arg-t.patch \
+ file://AudioManager.service \
+ "
+
+S = "${WORKDIR}/git"
+inherit autotools gettext cmake pkgconfig systemd
+
+EXTRA_OECMAKE += "-DWITH_TESTS=OFF -DUSE_BUILD_LIBS=OFF -DWITH_SYSTEMD_WATCHDOG=ON \
+ -DWITH_DBUS_WRAPPER=ON"
+OECMAKE_CXX_FLAGS +="-ldl"
+
+PACKAGECONFIG ??= ""
+
+# With CommonAPI support
+PACKAGECONFIG[capi] = "-DWITH_CAPI_WRAPPER=ON,-DWITH_CAPI_WRAPPER=OFF,common-api-c++-dbus"
+
+FILES_${PN} += " \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_user_unitdir}/AudioManager.service', '', d)} \
+ "
+
+do_install_append() {
+ if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
+ install -m 644 -p -D ${WORKDIR}/AudioManager.service ${D}${systemd_user_unitdir}/AudioManager.service
+
+ mkdir -p ${D}/etc/systemd/user/default.target.wants/
+ ln -sf ${systemd_user_unitdir}/AudioManager.service ${D}/etc/systemd/user/dbus-org.genivi.AudioManager.service
+ ln -sf ${systemd_user_unitdir}/AudioManager.service ${D}/etc/systemd/user/default.target.wants/AudioManager.service
+ fi
+}