[packages/festival] Added pulseaudio support Fix building MultiSyn module Parallel make doesn't work

baggins baggins at pld-linux.org
Tue Jul 17 22:23:55 CEST 2012


commit 8a62e76615a60fd49a75a44f21008d27f0ae6013
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Jul 17 22:22:47 2012 +0200

    Added pulseaudio support
    Fix building MultiSyn module
    Parallel make doesn't work

 festival-pulse.patch | 11 +++++++++++
 festival.spec        |  9 +++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/festival-pulse.patch b/festival-pulse.patch
new file mode 100644
index 0000000..9df4cce
--- /dev/null
+++ b/festival-pulse.patch
@@ -0,0 +1,11 @@
+--- festival/lib/init.scm~	2004-07-16 01:03:04.000000000 +0200
++++ festival/lib/init.scm	2012-07-17 22:18:30.268474432 +0200
+@@ -77,6 +77,8 @@
+ (cond
+  ((member 'nas *modules*)
+   (Parameter.def 'Audio_Method 'netaudio))
++ ((member 'pulseaudio *modules*)
++  (Parameter.def 'Audio_Method 'pulseaudio))
+  ((member 'esd *modules*)
+   (Parameter.def 'Audio_Method 'esdaudio))
+  ((member 'sun16audio *modules*)
diff --git a/festival.spec b/festival.spec
index 1761f5f..bc1179d 100644
--- a/festival.spec
+++ b/festival.spec
@@ -19,9 +19,10 @@ Source4:	http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_kallpc16
 Source5:	http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_rablpc16k.tar.gz
 # Source5-md5:	34cb2478f5b8fa1ed02f5cbb496c1dcd
 Patch0:		%{name}-config.patch
+Patch1:		%{name}-pulse.patch
 URL:		http://www.cstr.ed.ac.uk/projects/festival/
 BuildRequires:	automake
-BuildRequires:	speech_tools-devel >= 2.1
+BuildRequires:	speech_tools-devel >= 2.1-3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %ifarch alpha
@@ -83,12 +84,16 @@ Pliki potrzebne do użycia głosu en1 z pakietu mbrola.
 %prep
 %setup -q -n %{name} -b1 -b2 -b3 -b4 -b5
 %patch0 -p1
+%patch1 -p1
+
+ln -s %{_libdir}/speech_tools/base_class src/modules/MultiSyn
+ln -s %{_libdir}/speech_tools/config/modules/pulse_audio.mak config/modules
 
 %build
 cp -f /usr/share/automake/config.* .
 %{__perl} -pi -e 's,^EST=.*,EST=%{_libdir}/speech_tools,' config/config.in
 %configure2_13
-%{__make} \
+%{__make} -j1 \
 	CC="%{__cc}" \
 	CXX="%{__cxx}" \
 	ECHO_N='printf "%%s"' \


More information about the pld-cvs-commit mailing list