summaryrefslogtreecommitdiffstats
path: root/meta-moblin/packages/pulseaudio/pulseaudio.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard@ted.(none)>2009-04-28 08:24:11 +0100
committerRichard Purdie <richard@ted.(none)>2009-04-28 08:24:11 +0100
commit3927e38eba96a172c7df2c7270c31728b83612eb (patch)
tree48b0a30d721af9e2f25e03bea8e41035e9ff40bb /meta-moblin/packages/pulseaudio/pulseaudio.inc
parent49ca46f588425c88e37a85df00b1fd4591a01ab6 (diff)
parentd65be3dd2aaa643b5596c8470caf7f291513efee (diff)
downloadpoky-3927e38eba96a172c7df2c7270c31728b83612eb.tar.gz
Merge ssh://gitserver@git.pokylinux.org/poky
Diffstat (limited to 'meta-moblin/packages/pulseaudio/pulseaudio.inc')
-rw-r--r--meta-moblin/packages/pulseaudio/pulseaudio.inc101
1 files changed, 101 insertions, 0 deletions
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio.inc b/meta-moblin/packages/pulseaudio/pulseaudio.inc
new file mode 100644
index 0000000000..4b13980cc4
--- /dev/null
+++ b/meta-moblin/packages/pulseaudio/pulseaudio.inc
@@ -0,0 +1,101 @@
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"
7# optional
8DEPENDS += "alsa-lib glib-2.0"
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 --without-x \
19 --without-jack \
20 --with-glib \
21 --with-alsa \
22 --with-oss \
23 --with-hal \
24"
25
26PARALLEL_MAKE = ""
27
28export TARGET_PFPU = "${TARGET_FPU}"
29
30# TODO: Use more fine granular version
31#OE_LT_RPATH_ALLOW=":${libdir}/pulse-0.9:"
32OE_LT_RPATH_ALLOW = "any"
33OE_LT_RPATH_ALLOW[export]="1"
34
35do_stage() {
36 autotools_stage_all
37}
38
39do_install_append() {
40 install -d ${D}${sysconfdir}/default/volatiles
41 install -m 0644 ${WORKDIR}/volatiles.04_pulse ${D}${sysconfdir}/default/volatiles/volatiles.04_pulse
42
43 if [ "x${TARGET_PFPU}" == "xsoft" ] ; then
44 sed -i -e s:\;\ resample-method\ =\ sinc-fastest:resample-method\ =\ trivial: ${D}${sysconfdir}/pulse/daemon.conf
45 fi
46}
47
48PACKAGES =+ "libpulsecore libpulse libpulse-simple libpulse-browse libpulse-mainloop-glib \
49 pulseaudio-server pulseaudio-misc pulseaudio-gconf-helper"
50
51#upgrade path:
52RREPLACES_pulseaudio-server = "libpulse-bin libpulse-conf"
53
54PACKAGES_DYNAMIC = "pulseaudio-lib* pulseaudio-module* libpulse-lib* libpulse-module* "
55
56FILES_libpulsecore = "${libdir}/libpulsecore.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-0.9/modules/.debug"
64FILES_${PN}-dev += "${libdir}/pulse-0.9/modules/*.la"
65FILES_${PN}-conf = "${sysconfdir}"
66FILES_${PN}-bin = "${bindir}/* \
67 ${sysconfdir}/default/volatiles/volatiles.04_pulse"
68FILES_${PN}-server = "${bindir}/pulseaudio ${sysconfdir}"
69FILES_${PN}-gconf-helper = "${libexecdir}/pulse/gconf-helper"
70FILES_${PN}-misc = "${bindir}/*"
71
72CONFFILES_pulseaudio-server = "\
73 ${sysconfdir}/pulse/default.pa \
74 ${sysconfdir}/pulse/daemon.conf \
75 ${sysconfdir}/pulse/client.conf \
76 "
77
78pkg_postinst_${PN}-server() {
79 # can't do this offline
80 if [ "x$D" != "x" ]; then
81 exit 1
82 fi
83 grep -q pulse: /etc/group || addgroup pulse
84 grep -q pulse: /etc/passwd || \
85 adduser --disabled-password --home=/var/run/pulse --system \
86 --ingroup pulse --no-create-home -g "Pulse audio daemon" pulse
87 addgroup pulse audio
88 /etc/init.d/populate-volatile.sh update
89}
90
91pkg_postrm_${PN}-server() {
92 deluser pulse || true
93}
94
95python populate_packages_prepend() {
96 #bb.data.setVar('PKG_pulseaudio', 'pulseaudio', d)
97
98 plugindir = bb.data.expand('${libdir}/pulse-0.9/modules/', d)
99 do_split_packages(d, plugindir, '^module-(.*)\.so$', 'pulseaudio-module-%s', 'PulseAudio module for %s', extra_depends='' )
100 do_split_packages(d, plugindir, '^lib(.*)\.so$', 'pulseaudio-lib-%s', 'PulseAudio library for %s', extra_depends='' )
101}