diff options
Diffstat (limited to 'meta-moblin/packages/pulseaudio/pulseaudio.inc')
-rw-r--r-- | meta-moblin/packages/pulseaudio/pulseaudio.inc | 126 |
1 files changed, 0 insertions, 126 deletions
diff --git a/meta-moblin/packages/pulseaudio/pulseaudio.inc b/meta-moblin/packages/pulseaudio/pulseaudio.inc deleted file mode 100644 index fd8e60c471..0000000000 --- a/meta-moblin/packages/pulseaudio/pulseaudio.inc +++ /dev/null | |||
@@ -1,126 +0,0 @@ | |||
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 virtual/libx11" | ||
7 | # optional | ||
8 | DEPENDS += "alsa-lib glib-2.0 dbus consolekit hal" | ||
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 | --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 | |||
28 | PARALLEL_MAKE = "" | ||
29 | |||
30 | export TARGET_PFPU = "${TARGET_FPU}" | ||
31 | |||
32 | # TODO: Use more fine granular version | ||
33 | #OE_LT_RPATH_ALLOW=":${libdir}/pulse-0.9:" | ||
34 | OE_LT_RPATH_ALLOW = "any" | ||
35 | OE_LT_RPATH_ALLOW[export]="1" | ||
36 | |||
37 | do_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 | |||
46 | PACKAGES =+ "libpulsecore libpulsecommon libpulsedsp libpulse libpulse-simple libpulse-browse libpulse-mainloop-glib \ | ||
47 | pulseaudio-server pulseaudio-misc pulseaudio-gconf-helper" | ||
48 | |||
49 | #upgrade path: | ||
50 | RREPLACES_pulseaudio-server = "libpulse-bin libpulse-conf" | ||
51 | |||
52 | PACKAGES_DYNAMIC = "pulseaudio-lib* pulseaudio-module* libpulse-lib* libpulse-module* " | ||
53 | |||
54 | FILES_libpulsecore = "${libdir}/libpulsecore*.so" | ||
55 | FILES_libpulsecommon = "${libdir}/libpulsecommon*.so" | ||
56 | FILES_libpulsedsp = "${libdir}/libpulsedsp*.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-${PV}/modules/.debug" | ||
64 | FILES_${PN}-dev += "${libdir}/pulse-${PV}/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 ${bindir}/start-* ${sysconfdir} ${bindir}/pactl" | ||
69 | FILES_${PN}-gconf-helper = "${libexecdir}/pulse/gconf-helper" | ||
70 | FILES_${PN}-misc = "${bindir}/*" | ||
71 | |||
72 | # Allow the pulseaudio package to be created empty as a placeholder (-dbg and -dev depend on it) | ||
73 | ALLOW_EMPTY_${PN} = "1" | ||
74 | |||
75 | CONFFILES_pulseaudio-server = "\ | ||
76 | ${sysconfdir}/pulse/default.pa \ | ||
77 | ${sysconfdir}/pulse/daemon.conf \ | ||
78 | ${sysconfdir}/pulse/client.conf \ | ||
79 | " | ||
80 | |||
81 | pkg_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 | |||
94 | pkg_postrm_${PN}-server() { | ||
95 | deluser pulse || true | ||
96 | } | ||
97 | |||
98 | python 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 | |||
106 | RDEPENDS_pulseaudio-module-console-kit =+ "consolekit" | ||
107 | RDEPENDS_pulseaudio-module-hal-detect =+ "hal" | ||
108 | RDEPENDS_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 | |||