r2191 - in trunk/oe/packages: . pulseaudio pulseaudio/files
mickey at sita.openmoko.org
mickey at sita.openmoko.org
Thu Jun 7 17:11:30 CEST 2007
Author: mickey
Date: 2007-06-07 17:11:30 +0200 (Thu, 07 Jun 2007)
New Revision: 2191
Added:
trunk/oe/packages/pulseaudio/
trunk/oe/packages/pulseaudio/files/
trunk/oe/packages/pulseaudio/files/gcc4-compile-fix.patch
trunk/oe/packages/pulseaudio/files/volatiles.04_pulse
trunk/oe/packages/pulseaudio/pulseaudio_0.9.6.bb
Log:
oe: add pulseaudio 0.9.6 (needs libatomic-ops)
Added: trunk/oe/packages/pulseaudio/files/gcc4-compile-fix.patch
===================================================================
--- trunk/oe/packages/pulseaudio/files/gcc4-compile-fix.patch 2007-06-07 14:58:06 UTC (rev 2190)
+++ trunk/oe/packages/pulseaudio/files/gcc4-compile-fix.patch 2007-06-07 15:11:30 UTC (rev 2191)
@@ -0,0 +1,13 @@
+Index: pulseaudio-0.9.6/src/pulsecore/core-util.c
+===================================================================
+--- pulseaudio-0.9.6.orig/src/pulsecore/core-util.c
++++ pulseaudio-0.9.6/src/pulsecore/core-util.c
+@@ -535,7 +535,7 @@ void pa_raise_priority(void) {
+ pa_log_info("Successfully gained high priority class.");
+ #endif
+
+-fail:
++fail:;
+
+ #if defined(HAVE_SYS_CAPABILITY_H)
+ if (caps) {
Added: trunk/oe/packages/pulseaudio/files/volatiles.04_pulse
===================================================================
--- trunk/oe/packages/pulseaudio/files/volatiles.04_pulse 2007-06-07 14:58:06 UTC (rev 2190)
+++ trunk/oe/packages/pulseaudio/files/volatiles.04_pulse 2007-06-07 15:11:30 UTC (rev 2191)
@@ -0,0 +1,2 @@
+# <type> <owner> <group> <mode> <path> <linksource>
+d pulse pulse 0755 /var/run/pulse none
Added: trunk/oe/packages/pulseaudio/pulseaudio_0.9.6.bb
===================================================================
--- trunk/oe/packages/pulseaudio/pulseaudio_0.9.6.bb 2007-06-07 14:58:06 UTC (rev 2190)
+++ trunk/oe/packages/pulseaudio/pulseaudio_0.9.6.bb 2007-06-07 15:11:30 UTC (rev 2191)
@@ -0,0 +1,91 @@
+DESCRIPTION = "Pulseaudio is a sound server for Linux and Unix-like operating systems."
+HOMEPAGE = "http://www.pulseaudio.org"
+AUTHOR = "Lennart Poettering"
+SECTION = "libs/multimedia"
+LICENSE = "LGPL"
+DEPENDS = "libatomic-ops liboil avahi libsamplerate0 libsndfile1 libtool"
+# optional
+DEPENDS += "alsa-lib"
+PR = "r0"
+
+SRC_URI = "http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-${PV}.tar.gz \
+ file://gcc4-compile-fix.patch;patch=1 \
+ file://volatiles.04_pulse"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "\
+ --disable-lynx \
+ --without-x \
+ --without-glib \
+ --without-jack \
+ --with-alsa \
+ --with-oss \
+ "
+
+PARALLEL_MAKE = ""
+
+export TARGET_FPU="${TARGET_FPU}"
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/default/volatiles
+ install -m 0644 ${WORKDIR}/volatiles.04_pulse ${D}${sysconfdir}/default/volatiles/volatiles.04_pulse
+
+ if [ "x${TARGET_FPU}" == "xsoft" ] ; then
+ sed -i -e s:\;\ resample-method\ =\ sinc-fastest:resample-method\ =\ trivial: ${D}${sysconfdir}/pulse/daemon.conf
+ fi
+}
+
+LEAD_SONAME = "libpulse.so"
+
+PACKAGES =+ "${PN}-bin ${PN}-conf"
+PACKAGES_DYNAMIC = "pulseaudio-module-* pulseaudio-lib-*"
+
+FILES_${PN}-dbg += "${libexecdir}/pulse/.debug \
+ ${libdir}/pulse-0.9/modules/.debug"
+FILES_${PN}-dev += "${libdir}/pulse-0.9/modules/*.la"
+FILES_${PN}-conf = "${sysconfdir}"
+FILES_${PN}-bin = "${bindir}/* \
+ ${sysconfdir}/default/volatiles/volatiles.04_pulse"
+
+CONFFILES_${PN}-conf = "\
+ ${sysconfdir}/pulse/default.pa \
+ ${sysconfdir}/pulse/daemon.conf \
+ ${sysconfdir}/pulse/client.conf \
+ "
+pkg_postinst_${PN}-bin() {
+if test "x$D" != "x"; then
+ exit 1
+else
+ grep -q pulse: /etc/group || addgroup pulse
+ grep -q pulse: /etc/passwd || \
+ adduser --disabled-password --home=/var/run/pulse/ --system \
+ --ingroup pulse --no-create-home -g "Pulse audio daemon" pulse
+ /etc/init.d/populate-volatile.sh update
+fi
+}
+
+pkg_postrm${PN}-bin() {
+if test "x$D" != "x"; then
+ exit 1
+else
+ deluser pulse
+fi
+}
+
+
+
+
+do_stage() {
+ autotools_stage_all
+}
+
+
+python populate_packages_prepend() {
+ #bb.data.setVar('PKG_pulseaudio', 'pulseaudio', d)
+
+ plugindir = bb.data.expand('${libdir}/pulse-0.9/modules/', d)
+ do_split_packages(d, plugindir, '^module-(.*)\.so$', 'pulseaudio-module-%s', 'PulseAudio module for %s', extra_depends='' )
+ do_split_packages(d, plugindir, '^lib(.*)\.so$', 'pulseaudio-lib-%s', 'PulseAudio library for %s', extra_depends='' )
+}
+
More information about the commitlog
mailing list