pulseaudio_git : fix packaging
authorGraeme Gregory <dp@xora-build.xora.org.uk>
Fri, 4 Mar 2011 11:30:56 +0000 (11:30 +0000)
committerGraeme Gregory <dp@xora-build.xora.org.uk>
Fri, 4 Mar 2011 11:30:56 +0000 (11:30 +0000)
pulse uses a magic version file hidden in tarbal in order to determine
its version so set that to out ${PV} from OE.

Also git pulse has changed the default location of modules so set it
to be same as old location for compatability.

Signed-off-by: Graeme Gregory <dp@xora-build.xora.org.uk>
recipes/pulseaudio/pulseaudio_git.bb

index 28c5814..057ded8 100644 (file)
@@ -2,7 +2,7 @@ require pulseaudio.inc
 
 SRCREV = "f834150aceccd753e3ac5bab9f7d64bed9993624"
 PV = "0.9.22+git"
-PR = "${INC_PR}.0-r${SRCPV}"
+PR = "${INC_PR}.1-r${SRCPV}"
 
 DEPENDS += "orc gdbm speex"
 
@@ -21,8 +21,12 @@ SRC_URI = "git://git.0pointer.de/pulseaudio.git;protocol=git \
 
 S = "${WORKDIR}/git"
 
+EXTRA_OECONF += " --with-module-dir=${libdir}/pulse-${PV}/modules"
+
 do_configure_prepend() {
        touch config.rpath
+       echo "${PV}" >.tarball-version
+       echo "${PV}" >.version
 }
 
 # orc.m4 calls pkg-config ----variable=orcc orc-0.4 to get the path to orcc,