1
0

0006-Set-picolangdir.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. pico/Makefile.am | 2 +-
  7. pico/bin/pico2wave.c | 4 ++++
  8. 2 files changed, 5 insertions(+), 1 deletions(-)
  9. diff --git a/pico/Makefile.am b/pico/Makefile.am
  10. index 8898050..a19c42a 100644
  11. --- a/pico/Makefile.am
  12. +++ b/pico/Makefile.am
  13. @@ -84,5 +84,5 @@ pico2wave_SOURCES = \
  14. bin/pico2wave.c
  15. pico2wave_LDADD = \
  16. libttspico.la -lm -lpopt
  17. -pico2wave_CFLAGS = -Wall -I lib
  18. +pico2wave_CFLAGS = -Wall -Dpicolangdir=\"$(picolangdir)\" -I lib
  19. diff --git a/pico/bin/pico2wave.c b/pico/bin/pico2wave.c
  20. index 0c035a7..ec7ab79 100644
  21. --- a/pico/bin/pico2wave.c
  22. +++ b/pico/bin/pico2wave.c
  23. @@ -35,7 +35,11 @@
  24. /* string constants */
  25. #define MAX_OUTBUF_SIZE 128
  26. +#ifdef picolangdir
  27. +const char * PICO_LINGWARE_PATH = picolangdir "/";
  28. +#else
  29. const char * PICO_LINGWARE_PATH = "./lang/";
  30. +#endif
  31. const char * PICO_VOICE_NAME = "PicoVoice";
  32. /* supported voices
  33. --
  34. 1.7.1