summarylogtreecommitdiffstats
path: root/unbundle_pocketsphinx.patch
diff options
context:
space:
mode:
authorMichel Zou2020-02-07 20:45:58 +0100
committerMichel Zou2020-02-07 20:45:58 +0100
commitd6f1d7a40548badae753bdcda57d52233f1b49d8 (patch)
tree9e8e3bc84417ff4a7fc8d339e46963a4c2f9925a /unbundle_pocketsphinx.patch
parent85e49af8a1022067606c20e34130b18bb796c70e (diff)
downloadaur-d6f1d7a40548badae753bdcda57d52233f1b49d8.tar.gz
1.0.06
Diffstat (limited to 'unbundle_pocketsphinx.patch')
-rw-r--r--unbundle_pocketsphinx.patch41
1 files changed, 34 insertions, 7 deletions
diff --git a/unbundle_pocketsphinx.patch b/unbundle_pocketsphinx.patch
index b38355719c63..9fb3c2318cce 100644
--- a/unbundle_pocketsphinx.patch
+++ b/unbundle_pocketsphinx.patch
@@ -1,8 +1,21 @@
+diff --git a/app_version.h b/app_version.h
+index 4da5503..2cad494 100644
+--- a/app_version.h
++++ b/app_version.h
+@@ -31,7 +31,7 @@
+ #define APP_MAIL "be.root@free.fr"
+ #define APP_LOCKFILE "nocomprendo.lock"
+
+-#define POCKET_PATH "/usr/share/nocomprendo/pocketsphinx/"
++#define POCKET_PATH "/usr/share/pocketsphinx/"
+
+ // Don't edit. Defines updated by "make version" from .pro variables.
+ #define APP_MAJOR 1
diff --git a/nocomprendo.pro b/nocomprendo.pro
-index 8a11648..ff530cf 100644
+index e6c85f7..9760dfb 100644
--- a/nocomprendo.pro
+++ b/nocomprendo.pro
-@@ -28,13 +28,13 @@ DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # Disables all the APIs depr
+@@ -28,10 +28,10 @@ DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # Disables all the APIs depr
INCLUDEPATH += \
$$BASEDIR/include \
@@ -15,12 +28,26 @@ index 8a11648..ff530cf 100644
+LIBS += -lpocketsphinx -lsphinxbase -lsphinxad
LIBS += -lpulse -lpulse-simple -lm -lutil -lxdo
--PRE_TARGETDEPS += libpocketsphinx.a libsphinxbase.a lmtools/idngram2lm
-+#PRE_TARGETDEPS += libpocketsphinx.a libsphinxbase.a lmtools/idngram2lm
-
use_espeak {
- DEFINES += ENABLE_ESPEAK
-@@ -148,7 +148,7 @@ INSTALLS += pocket tools userdata target icons desktop
+@@ -39,7 +39,7 @@ use_espeak {
+ LIBS += -lespeak -lasound -lpthread
+ }
+
+-PRE_TARGETDEPS += libpocketsphinx.a libsphinxbase.a
++#PRE_TARGETDEPS += libpocketsphinx.a libsphinxbase.a
+
+ SOURCES += \
+ editset.cpp \
+@@ -131,7 +131,7 @@ target.path = /usr/bin # Application installation dir
+ APP_PATH = /usr/share/$${TARGET}
+ USER_PATH = $(HOME)/.config/$${TARGET}
+
+-POCKET_PATH = $${APP_PATH}/pocketsphinx
++POCKET_PATH = /usr/share/pocketsphinx/
+ ACOUSTIC_DIR = pocketsphinx
+
+ tools.path = $${APP_PATH}
+@@ -155,7 +155,7 @@ INSTALLS += tools pocket userdata target icons desktop
# More make targets
include(more-make-targets.pri) # Additional targets : version, translation, files, count