summaryrefslogtreecommitdiff
path: root/recipes/openmoko2/openmoko-sound-system2_0.1.0.bb
blob: c947e32efe3367054ee5d99bb7ff5b955505506d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
DESCRIPTION = "Openmoko Sound System"
SECTION = "openmoko/base"
RDEPENDS_${PN} = "\
  pulseaudio-server \
  pulseaudio-module-alsa-sink \
  pulseaudio-module-alsa-source \
  pulseaudio-module-cli \
  pulseaudio-module-esound-protocol-unix \
  pulseaudio-module-simple-protocol-tcp \
  pulseaudio-module-native-protocol-unix \
  pulseaudio-module-cli-protocol-unix \
  gst-plugin-pulse \
"
RREPLACES_${PN} = "openmoko-sound-system"
RPROVIDES_${PN} = "openmoko-sound-system"
PR = "r6"

inherit openmoko-base update-rc.d

INITSCRIPT_NAME = "pulseaudio"
INITSCRIPT_PARAMS = "defaults 35"

SRC_URI = "file://pulseaudio \
           file://session"
S = "${WORKDIR}"

do_install() {
    install -d ${D}/${sysconfdir}/init.d
    install -m 0755 ${WORKDIR}/pulseaudio ${D}/${sysconfdir}/init.d/
    install -d ${D}/${sysconfdir}/pulse
    install -m 0755 ${WORKDIR}/session ${D}/${sysconfdir}/pulse/session
}

PACKAGE_ARCH = "all"