diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-28 10:38:05 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-08-28 10:38:05 +0000 |
commit | d9a4c588ef24e7e4019fbe5a2314addbcd3a6bb8 (patch) | |
tree | 0af36c6fafc1eef823c9d53c8673c8f5ca0c00f9 /meta-openmoko/packages/pulseaudio/pulse.inc | |
parent | 0ab2b3801db15cd452059e2be88a9044f26feb22 (diff) | |
download | poky-d9a4c588ef24e7e4019fbe5a2314addbcd3a6bb8.tar.gz |
pulseaudio: added 0.9.6 needed for openmoko-dialer2
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2568 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta-openmoko/packages/pulseaudio/pulse.inc')
-rw-r--r-- | meta-openmoko/packages/pulseaudio/pulse.inc | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/meta-openmoko/packages/pulseaudio/pulse.inc b/meta-openmoko/packages/pulseaudio/pulse.inc new file mode 100644 index 0000000000..f765bec1a1 --- /dev/null +++ b/meta-openmoko/packages/pulseaudio/pulse.inc | |||
@@ -0,0 +1,100 @@ | |||
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 | |||
7 | DEPENDS = "libatomics-ops liboil avahi libsamplerate0 libsndfile1 libtool" | ||
8 | # optional | ||
9 | DEPENDS += "alsa-lib glib-2.0" | ||
10 | |||
11 | SRC_URI = "http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-${PV}.tar.gz \ | ||
12 | file://gcc4-compile-fix.patch;patch=1 \ | ||
13 | file://volatiles.04_pulse" | ||
14 | |||
15 | inherit autotools pkgconfig | ||
16 | |||
17 | EXTRA_OECONF = "\ | ||
18 | --disable-lynx \ | ||
19 | --without-x \ | ||
20 | --without-jack \ | ||
21 | --with-glib \ | ||
22 | --with-alsa \ | ||
23 | --with-oss \ | ||
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 | /etc/init.d/populate-volatile.sh update | ||
88 | } | ||
89 | |||
90 | pkg_postrm_${PN}-server() { | ||
91 | deluser pulse || true | ||
92 | } | ||
93 | |||
94 | python populate_packages_prepend() { | ||
95 | #bb.data.setVar('PKG_pulseaudio', 'pulseaudio', d) | ||
96 | |||
97 | plugindir = bb.data.expand('${libdir}/pulse-0.9/modules/', d) | ||
98 | do_split_packages(d, plugindir, '^module-(.*)\.so$', 'pulseaudio-module-%s', 'PulseAudio module for %s', extra_depends='' ) | ||
99 | do_split_packages(d, plugindir, '^lib(.*)\.so$', 'pulseaudio-lib-%s', 'PulseAudio library for %s', extra_depends='' ) | ||
100 | } | ||