]> git.pld-linux.org Git - packages/festival.git/commitdiff
Added pulseaudio support
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 17 Jul 2012 20:22:47 +0000 (22:22 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 17 Jul 2012 20:22:47 +0000 (22:22 +0200)
Fix building MultiSyn module
Parallel make doesn't work

festival-pulse.patch [new file with mode: 0644]
festival.spec

diff --git a/festival-pulse.patch b/festival-pulse.patch
new file mode 100644 (file)
index 0000000..9df4cce
--- /dev/null
@@ -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*)
index 1761f5f738ea0a2f0af69a1bdf7a108d568406b6..bc1179d07c90077e6afcf84364fbfff701898645 100644 (file)
@@ -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"' \
This page took 0.061167 seconds and 4 git commands to generate.