diff options
author | Richard Purdie <richard@ted.(none)> | 2009-04-28 08:24:11 +0100 |
---|---|---|
committer | Richard Purdie <richard@ted.(none)> | 2009-04-28 08:24:11 +0100 |
commit | 3927e38eba96a172c7df2c7270c31728b83612eb (patch) | |
tree | 48b0a30d721af9e2f25e03bea8e41035e9ff40bb /meta-moblin/packages/pulseaudio/pulseaudio.inc | |
parent | 49ca46f588425c88e37a85df00b1fd4591a01ab6 (diff) | |
parent | d65be3dd2aaa643b5596c8470caf7f291513efee (diff) | |
download | poky-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.inc | 101 |
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 @@ | |||
1 | DESCRIPTION = "Pulseaudio is a sound server for Linux and Unix-like operating systems." | ||
2 | HOMEPAGE = "http://www.pulseaudio.org" | ||
3 | AUTHOR = "Lennart Poettering" | ||
4 | SECTION = "libs/multimedia" | ||
5 | LICENSE = "LGPL" | ||
6 | DEPENDS = "libatomics-ops liboil avahi libsamplerate0 libsndfile1 libtool hal" | ||
7 | # optional | ||
8 | DEPENDS += "alsa-lib glib-2.0" | ||
9 | |||
10 | SRC_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 | |||
14 | inherit autotools pkgconfig | ||
15 | |||
16 | EXTRA_OECONF = "\ | ||
17 | --disable-lynx \ | ||
18 | --without-x \ | ||
19 | --without-jack \ | ||
20 | --with-glib \ | ||
21 | --with-alsa \ | ||
22 | --with-oss \ | ||
23 | --with-hal \ | ||
24 | " | ||
25 | |||
26 | PARALLEL_MAKE = "" | ||
27 | |||
28 | export TARGET_PFPU = "${TARGET_FPU}" | ||
29 | |||
30 | # TODO: Use more fine granular version | ||
31 | #OE_LT_RPATH_ALLOW=":${libdir}/pulse-0.9:" | ||
32 | OE_LT_RPATH_ALLOW = "any" | ||
33 | OE_LT_RPATH_ALLOW[export]="1" | ||
34 | |||
35 | do_stage() { | ||
36 | autotools_stage_all | ||
37 | } | ||
38 | |||
39 | do_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 | |||
48 | PACKAGES =+ "libpulsecore libpulse libpulse-simple libpulse-browse libpulse-mainloop-glib \ | ||
49 | pulseaudio-server pulseaudio-misc pulseaudio-gconf-helper" | ||
50 | |||
51 | #upgrade path: | ||
52 | RREPLACES_pulseaudio-server = "libpulse-bin libpulse-conf" | ||
53 | |||
54 | PACKAGES_DYNAMIC = "pulseaudio-lib* pulseaudio-module* libpulse-lib* libpulse-module* " | ||
55 | |||
56 | FILES_libpulsecore = "${libdir}/libpulsecore.so.*" | ||
57 | FILES_libpulse = "${libdir}/libpulse.so.*" | ||
58 | FILES_libpulse-simple = "${libdir}/libpulse-simple.so.*" | ||
59 | FILES_libpulse-browse = "${libdir}/libpulse-browse.so.*" | ||
60 | FILES_libpulse-mainloop-glib = "${libdir}/libpulse-mainloop-glib.so.*" | ||
61 | |||
62 | FILES_${PN}-dbg += "${libexecdir}/pulse/.debug \ | ||
63 | ${libdir}/pulse-0.9/modules/.debug" | ||
64 | FILES_${PN}-dev += "${libdir}/pulse-0.9/modules/*.la" | ||
65 | FILES_${PN}-conf = "${sysconfdir}" | ||
66 | FILES_${PN}-bin = "${bindir}/* \ | ||
67 | ${sysconfdir}/default/volatiles/volatiles.04_pulse" | ||
68 | FILES_${PN}-server = "${bindir}/pulseaudio ${sysconfdir}" | ||
69 | FILES_${PN}-gconf-helper = "${libexecdir}/pulse/gconf-helper" | ||
70 | FILES_${PN}-misc = "${bindir}/*" | ||
71 | |||
72 | CONFFILES_pulseaudio-server = "\ | ||
73 | ${sysconfdir}/pulse/default.pa \ | ||
74 | ${sysconfdir}/pulse/daemon.conf \ | ||
75 | ${sysconfdir}/pulse/client.conf \ | ||
76 | " | ||
77 | |||
78 | pkg_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 | |||
91 | pkg_postrm_${PN}-server() { | ||
92 | deluser pulse || true | ||
93 | } | ||
94 | |||
95 | python 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 | } | ||