summaryrefslogtreecommitdiff
path: root/audio/sphinx3/patches
diff options
context:
space:
mode:
authorfhajny <fhajny>2014-09-05 10:13:20 +0000
committerfhajny <fhajny>2014-09-05 10:13:20 +0000
commit231d152d0e4a3806827beee60bd724d497cc49e7 (patch)
tree7caec3e2e2e54f2c6d9c207a61d7a4dfd7fd56bd /audio/sphinx3/patches
parent3e835330d30e97d6763148e6ab94f84693e7080b (diff)
downloadpkgsrc-231d152d0e4a3806827beee60bd724d497cc49e7.tar.gz
Import the CMUSphinx toolkit as sphinxbase, sphinx3, sphinxtrain
and pocketsphinx. CMUSphinx toolkit is a leading speech recognition toolkit with various tools used to build speech applications. CMU Sphinx toolkit has a number of packages for different tasks and applications.
Diffstat (limited to 'audio/sphinx3/patches')
-rw-r--r--audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c13
-rw-r--r--audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c15
-rw-r--r--audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c14
3 files changed, 42 insertions, 0 deletions
diff --git a/audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c b/audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c
new file mode 100644
index 00000000000..45b8928bc21
--- /dev/null
+++ b/audio/sphinx3/patches/patch-src_libs3decoder_libcfg_s3__cfg__convert.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_libs3decoder_libcfg_s3__cfg__convert.c,v 1.1 2014/09/05 10:13:21 fhajny Exp $
+
+Only use libbsd on Linux.
+--- src/libs3decoder/libcfg/s3_cfg_convert.c.orig 2008-12-31 18:27:55.000000000 +0000
++++ src/libs3decoder/libcfg/s3_cfg_convert.c
+@@ -1,5 +1,7 @@
+
++#if defined(__linux__)
+ #include <libutil.h>
++#endif
+ #include "s3_cfg.h"
+ #include "fsg.h"
+
diff --git a/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c
new file mode 100644
index 00000000000..a7b74fc710f
--- /dev/null
+++ b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_fsg__history.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libs3decoder_libsearch_fsg__history.c,v 1.1 2014/09/05 10:13:21 fhajny Exp $
+
+Only use libbsd on Linux.
+--- src/libs3decoder/libsearch/fsg_history.c.orig 2008-12-31 18:27:56.000000000 +0000
++++ src/libs3decoder/libsearch/fsg_history.c
+@@ -55,7 +55,9 @@
+ #include <kb.h>
+ /*#include <phone.h>*/
+ #include <search.h>
++#if defined(__linux__)
+ #include "libutil.h"
++#endif
+
+
+ #define __FSG_DBG__ 0
diff --git a/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c
new file mode 100644
index 00000000000..6304b487164
--- /dev/null
+++ b/audio/sphinx3/patches/patch-src_libs3decoder_libsearch_vithist.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_libs3decoder_libsearch_vithist.c,v 1.1 2014/09/05 10:13:21 fhajny Exp $
+
+Fix heap declaration.
+--- src/libs3decoder/libsearch/vithist.c.orig 2008-12-31 18:27:56.000000000 +0000
++++ src/libs3decoder/libsearch/vithist.c
+@@ -647,7 +647,7 @@ vithist_prune(vithist_t * vh, dict_t * d
+ {
+ int32 se, fe, filler_done, th;
+ vithist_entry_t *ve;
+- heap_t h;
++ heap_t* h;
+ s3wid_t *wid;
+ int32 i;
+