diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/pulseaudio/pulseaudio-meta_0.9.10.bb | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/pulseaudio/pulseaudio-meta_0.9.10.bb')
-rw-r--r-- | recipes/pulseaudio/pulseaudio-meta_0.9.10.bb | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/recipes/pulseaudio/pulseaudio-meta_0.9.10.bb b/recipes/pulseaudio/pulseaudio-meta_0.9.10.bb new file mode 100644 index 0000000000..7f5f72dad5 --- /dev/null +++ b/recipes/pulseaudio/pulseaudio-meta_0.9.10.bb @@ -0,0 +1,66 @@ +DESCRIPTION = "Pulseaudio Meta package w/ initscript et. al." +SECTION = "audio" +RDEPENDS = "\ + pulseaudio-server \ + pulseaudio-module-alsa-sink \ + pulseaudio-module-alsa-source \ + pulseaudio-module-cli \ + pulseaudio-module-default-device-restore \ + pulseaudio-module-detect\ + pulseaudio-module-esound-protocol-unix \ + pulseaudio-module-simple-protocol-tcp \ + pulseaudio-module-native-protocol-unix \ + pulseaudio-module-cli-protocol-unix \ + pulseaudio-module-rescue-streams\ + pulseaudio-module-suspend-on-idle \ + pulseaudio-module-volume-restore \ + gst-plugin-pulse \ + libasound-module-ctl-pulse \ + libasound-module-pcm-pulse \ +" +PR = "r3" + +inherit update-rc.d + +export TARGET_PFPU = "${TARGET_FPU}" +INITSCRIPT_NAME = "pulseaudio" +INITSCRIPT_PARAMS = "defaults 35" + +SRC_URI = "\ + file://pulseaudio \ + file://session \ + file://asound.conf \ +" +S = "${WORKDIR}" + +do_install() { + install -d ${D}/${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/pulseaudio ${D}/${sysconfdir}/init.d/ + install -d ${D}/${sysconfdir}/pulse + install -m 0755 ${WORKDIR}/session ${D}/${sysconfdir}/pulse/session.pulseaudio-meta + install -m 0644 ${WORKDIR}/asound.conf ${D}/${sysconfdir}/asound.conf.pulseaudio-meta + + if [ "x${TARGET_PFPU}" == "xsoft" ] ; then + sed -i -e s:resample-method=sinc-fastest:resample-method=trivial: ${D}${sysconfdir}/init.d/pulseaudio + fi +} + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +pkg_postinst_${PN} () { +#!/bin/sh +if [ "x$D" != "x" ]; then + exit 1 +fi + +# Overwrite existing configfiles, yuck! +cp /etc/pulse/session.pulseaudio-meta /etc/pulse/session +cp /etc/asound.conf.pulseaudio-meta /etc/asound.conf +} + + +CONFFILES_${PN} = "\ + ${sysconfdir}/init.d/pulseaudio \ + ${sysconfdir}/pulse/session.pulseaudio-meta \ + ${sysconfdir}/asound.conf.pulseaudio-meta \ +" |