summaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
diff options
context:
space:
mode:
authorSaul Wold <Saul.Wold@intel.com>2010-11-22 13:57:13 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2010-11-22 13:57:13 +0000
commitcfe12efb5ec9586dab6961f141d52b103bd8b1d1 (patch)
tree7108e22aa7ddf6cfc2f1b6c6b73a811187706ecb /meta/recipes-multimedia/pulseaudio/pulseaudio.inc
parent762fd6b7b3b22d7a8cb80ef9e9ba62e7ef21af3e (diff)
downloadpoky-cfe12efb5ec9586dab6961f141d52b103bd8b1d1.tar.gz
Meta: Recipe Reogranization
This is the next stage of recipe reorganization, in this stage many recipes where moved to a new meta-demoapps layer since this is more appropriate for demo usage then the core. Additional some recipes were moved to meta-extras to indicate they may be depercated at a future time. A number of recipes were modified since dependencies need to be corrected. Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/recipes-multimedia/pulseaudio/pulseaudio.inc')
-rw-r--r--meta/recipes-multimedia/pulseaudio/pulseaudio.inc126
1 files changed, 126 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/pulseaudio/pulseaudio.inc b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
new file mode 100644
index 0000000000..fd8e60c471
--- /dev/null
+++ b/meta/recipes-multimedia/pulseaudio/pulseaudio.inc
@@ -0,0 +1,126 @@
1DESCRIPTION = "Pulseaudio is a sound server for Linux and Unix-like operating systems."
2HOMEPAGE = "http://www.pulseaudio.org"
3AUTHOR = "Lennart Poettering"
4SECTION = "libs/multimedia"
5LICENSE = "LGPL"
6DEPENDS = "libatomics-ops liboil avahi libsamplerate0 libsndfile1 libtool hal virtual/libx11"
7# optional
8DEPENDS += "alsa-lib glib-2.0 dbus consolekit hal"
9
10SRC_URI = "http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-${PV}.tar.gz \
11 file://gcc4-compile-fix.patch;patch=1 \
12 file://volatiles.04_pulse"
13
14inherit autotools pkgconfig
15
16EXTRA_OECONF = "\
17 --disable-lynx \
18 --disable-bluez \
19 --disable-polkit \
20 --with-x \
21 --without-jack \
22 --with-glib \
23 --with-alsa \
24 --with-oss \
25 --with-hal \
26"
27
28PARALLEL_MAKE = ""
29
30export TARGET_PFPU = "${TARGET_FPU}"
31
32# TODO: Use more fine granular version
33#OE_LT_RPATH_ALLOW=":${libdir}/pulse-0.9:"
34OE_LT_RPATH_ALLOW = "any"
35OE_LT_RPATH_ALLOW[export]="1"
36
37do_install_append() {
38 install -d ${D}${sysconfdir}/default/volatiles
39 install -m 0644 ${WORKDIR}/volatiles.04_pulse ${D}${sysconfdir}/default/volatiles/volatiles.04_pulse
40
41 if [ "x${TARGET_PFPU}" == "xsoft" ] ; then
42 sed -i -e s:\;\ resample-method\ =\ sinc-fastest:resample-method\ =\ trivial: ${D}${sysconfdir}/pulse/daemon.conf
43 fi
44}
45
46PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse libpulse-simple libpulse-browse libpulse-mainloop-glib \
47 pulseaudio-server pulseaudio-misc pulseaudio-gconf-helper"
48
49#upgrade path:
50RREPLACES_pulseaudio-server = "libpulse-bin libpulse-conf"
51
52PACKAGES_DYNAMIC = "pulseaudio-lib* pulseaudio-module* libpulse-lib* libpulse-module* "
53
54FILES_libpulsecore = "${libdir}/libpulsecore*.so"
55FILES_libpulsecommon = "${libdir}/libpulsecommon*.so"
56FILES_libpulsedsp = "${libdir}/libpulsedsp*.so"
57FILES_libpulse = "${libdir}/libpulse.so.*"
58FILES_libpulse-simple = "${libdir}/libpulse-simple.so.*"
59FILES_libpulse-browse = "${libdir}/libpulse-browse.so.*"
60FILES_libpulse-mainloop-glib = "${libdir}/libpulse-mainloop-glib.so.*"
61
62FILES_${PN}-dbg += "${libexecdir}/pulse/.debug \
63 ${libdir}/pulse-${PV}/modules/.debug"
64FILES_${PN}-dev += "${libdir}/pulse-${PV}/modules/*.la"
65FILES_${PN}-conf = "${sysconfdir}"
66FILES_${PN}-bin = "${bindir}/* \
67 ${sysconfdir}/default/volatiles/volatiles.04_pulse"
68FILES_${PN}-server = "${bindir}/pulseaudio ${bindir}/start-* ${sysconfdir} ${bindir}/pactl"
69FILES_${PN}-gconf-helper = "${libexecdir}/pulse/gconf-helper"
70FILES_${PN}-misc = "${bindir}/*"
71
72# Allow the pulseaudio package to be created empty as a placeholder (-dbg and -dev depend on it)
73ALLOW_EMPTY_${PN} = "1"
74
75CONFFILES_pulseaudio-server = "\
76 ${sysconfdir}/pulse/default.pa \
77 ${sysconfdir}/pulse/daemon.conf \
78 ${sysconfdir}/pulse/client.conf \
79 "
80
81pkg_postinst_${PN}-server() {
82 # can't do this offline
83 if [ "x$D" != "x" ]; then
84 exit 1
85 fi
86 grep -q pulse: /etc/group || addgroup pulse
87 grep -q pulse: /etc/passwd || \
88 adduser --disabled-password --home=/var/run/pulse --system \
89 --ingroup pulse --no-create-home -g "Pulse audio daemon" pulse
90 addgroup pulse audio
91 /etc/init.d/populate-volatile.sh update
92}
93
94pkg_postrm_${PN}-server() {
95 deluser pulse || true
96}
97
98python populate_packages_prepend() {
99 #bb.data.setVar('PKG_pulseaudio', 'pulseaudio', d)
100
101 plugindir = bb.data.expand('${libdir}/pulse-${PV}/modules/', d)
102 do_split_packages(d, plugindir, '^module-(.*)\.so$', 'pulseaudio-module-%s', 'PulseAudio module for %s', extra_depends='' )
103 do_split_packages(d, plugindir, '^lib(.*)\.so$', 'pulseaudio-lib-%s', 'PulseAudio library for %s', extra_depends='' )
104}
105
106RDEPENDS_pulseaudio-module-console-kit =+ "consolekit"
107RDEPENDS_pulseaudio-module-hal-detect =+ "hal"
108RDEPENDS_pulseaudio-server = " \
109 pulseaudio-module-device-restore \
110 pulseaudio-module-stream-restore \
111 pulseaudio-module-card-restore \
112 pulseaudio-module-augment-properties \
113 pulseaudio-module-detect \
114 pulseaudio-module-alsa-sink \
115 pulseaudio-module-alsa-source \
116 pulseaudio-module-alsa-card \
117 pulseaudio-module-native-protocol-unix \
118 pulseaudio-module-hal-detect \
119 pulseaudio-module-default-device-restore \
120 pulseaudio-module-rescue-streams \
121 pulseaudio-module-always-sink \
122 pulseaudio-module-suspend-on-idle \
123 pulseaudio-module-console-kit \
124 pulseaudio-module-position-event-sounds \
125 pulseaudio-module-cork-music-on-phone "
126