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 | |
| 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
5 files changed, 135 insertions, 0 deletions
diff --git a/meta-openmoko/packages/pulseaudio/files/gcc4-compile-fix.patch b/meta-openmoko/packages/pulseaudio/files/gcc4-compile-fix.patch new file mode 100644 index 0000000000..34ad026e4d --- /dev/null +++ b/meta-openmoko/packages/pulseaudio/files/gcc4-compile-fix.patch | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | | fix for more strict syntax compliance in gcc4.x | ||
| 2 | | pulsecore/core-util.c: In function 'pa_raise_priority': | ||
| 3 | | pulsecore/core-util.c:547: error: label at end of compound statement | ||
| 4 | | Signed off: mickey@openmoko.org | ||
| 5 | | | ||
| 6 | Index: pulseaudio-0.9.6/src/pulsecore/core-util.c | ||
| 7 | =================================================================== | ||
| 8 | --- pulseaudio-0.9.6.orig/src/pulsecore/core-util.c | ||
| 9 | +++ pulseaudio-0.9.6/src/pulsecore/core-util.c | ||
| 10 | @@ -535,7 +535,7 @@ void pa_raise_priority(void) { | ||
| 11 | pa_log_info("Successfully gained high priority class."); | ||
| 12 | #endif | ||
| 13 | |||
| 14 | -fail: | ||
| 15 | +fail:; | ||
| 16 | |||
| 17 | #if defined(HAVE_SYS_CAPABILITY_H) | ||
| 18 | if (caps) { | ||
diff --git a/meta-openmoko/packages/pulseaudio/files/volatiles.04_pulse b/meta-openmoko/packages/pulseaudio/files/volatiles.04_pulse new file mode 100644 index 0000000000..5b1998032b --- /dev/null +++ b/meta-openmoko/packages/pulseaudio/files/volatiles.04_pulse | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # <type> <owner> <group> <mode> <path> <linksource> | ||
| 2 | d pulse pulse 0755 /var/run/pulse none | ||
diff --git a/meta-openmoko/packages/pulseaudio/libatomics-ops_1.2.bb b/meta-openmoko/packages/pulseaudio/libatomics-ops_1.2.bb new file mode 100644 index 0000000000..c4e838eb78 --- /dev/null +++ b/meta-openmoko/packages/pulseaudio/libatomics-ops_1.2.bb | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | DESCRIPTION = "A library for atomic integer operations" | ||
| 2 | LICENSE = "MIT" | ||
| 3 | |||
| 4 | SRC_URI = "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-1.2.tar.gz" | ||
| 5 | S = "${WORKDIR}/libatomic_ops-${PV}" | ||
| 6 | |||
| 7 | inherit autotools pkgconfig | ||
| 8 | |||
| 9 | do_stage() { | ||
| 10 | autotools_stage_all | ||
| 11 | } | ||
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 | } | ||
diff --git a/meta-openmoko/packages/pulseaudio/pulseaudio_0.9.6.bb b/meta-openmoko/packages/pulseaudio/pulseaudio_0.9.6.bb new file mode 100644 index 0000000000..a93c8ee251 --- /dev/null +++ b/meta-openmoko/packages/pulseaudio/pulseaudio_0.9.6.bb | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | require pulse.inc | ||
| 2 | |||
| 3 | PR = "r5" | ||
| 4 | |||
