summaryrefslogtreecommitdiff
blob: 395ca5e5a6a6de7d3f15a213532cb1ad209355fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 0102d423b79de7af982c8d4619d816f95a9b9278 Mon Sep 17 00:00:00 2001
From: Mathieu Parent <math.parent@gmail.com>
Date: Thu, 29 Oct 2009 23:55:19 +0100
Subject: [PATCH 6/7] Set picolangdir

---
 pico/Makefile.am     |    2 +-
 pico/bin/pico2wave.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 8898050..a19c42a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -84,5 +84,5 @@ pico2wave_SOURCES = \
 	bin/pico2wave.c
 pico2wave_LDADD = \
 	libttspico.la -lm -lpopt
-pico2wave_CFLAGS = -Wall -I lib
+pico2wave_CFLAGS = -Wall -Dpicolangdir=\"$(picolangdir)\" -I lib
 
diff --git a/bin/pico2wave.c b/bin/pico2wave.c
index 0c035a7..ec7ab79 100644
--- a/bin/pico2wave.c
+++ b/bin/pico2wave.c
@@ -35,7 +35,11 @@
 
 /* string constants */
 #define MAX_OUTBUF_SIZE     128
+#ifdef picolangdir
+const char * PICO_LINGWARE_PATH             = picolangdir "/";
+#else
 const char * PICO_LINGWARE_PATH             = "./lang/";
+#endif
 const char * PICO_VOICE_NAME                = "PicoVoice";
 
 /* supported voices
-- 
1.7.1