Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.git] / sound / svox / patches / 0006-Set-picolangdir.patch
1 From 0102d423b79de7af982c8d4619d816f95a9b9278 Mon Sep 17 00:00:00 2001
2 From: Mathieu Parent <math.parent@gmail.com>
3 Date: Thu, 29 Oct 2009 23:55:19 +0100
4 Subject: [PATCH 6/7] Set picolangdir
5
6 ---
7  pico/Makefile.am     |    2 +-
8  pico/bin/pico2wave.c |    4 ++++
9  2 files changed, 5 insertions(+), 1 deletions(-)
10
11 diff --git a/pico/Makefile.am b/pico/Makefile.am
12 index 8898050..a19c42a 100644
13 --- a/pico/Makefile.am
14 +++ b/pico/Makefile.am
15 @@ -84,5 +84,5 @@ pico2wave_SOURCES = \
16         bin/pico2wave.c
17  pico2wave_LDADD = \
18         libttspico.la -lm -lpopt
19 -pico2wave_CFLAGS = -Wall -I lib
20 +pico2wave_CFLAGS = -Wall -Dpicolangdir=\"$(picolangdir)\" -I lib
21  
22 diff --git a/pico/bin/pico2wave.c b/pico/bin/pico2wave.c
23 index 0c035a7..ec7ab79 100644
24 --- a/pico/bin/pico2wave.c
25 +++ b/pico/bin/pico2wave.c
26 @@ -35,7 +35,11 @@
27  
28  /* string constants */
29  #define MAX_OUTBUF_SIZE     128
30 +#ifdef picolangdir
31 +const char * PICO_LINGWARE_PATH             = picolangdir "/";
32 +#else
33  const char * PICO_LINGWARE_PATH             = "./lang/";
34 +#endif
35  const char * PICO_VOICE_NAME                = "PicoVoice";
36  
37  /* supported voices
38 -- 
39 1.7.1
40