summarylogtreecommitdiffstats
path: root/050-ffmpeg-pocketsphinx-arch.patch
blob: c16c8d458fd5cb43c5fa68c0270b38af135aefde (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
From 84d5bedee3ce781e5aacdc145af6b68918595c7a Mon Sep 17 00:00:00 2001
From: Fredrick Brennan <copypaste@kittens.ph>
Date: Mon, 8 May 2023 13:17:22 -0400
Subject: [PATCH] Fix pocketsphinx inclusion according to AUR package way of
 distributing it

---
 configure            | 2 +-
 libavfilter/af_asr.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index bb7be67676..a39bdabfb6 100755
--- a/configure
+++ b/configure
@@ -6792,7 +6792,7 @@ enabled openssl           && { { check_pkg_config openssl "openssl >= 3.0.0" ope
                                check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
                                check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
                                die "ERROR: openssl not found"; }
-enabled pocketsphinx      && require_pkg_config pocketsphinx pocketsphinx pocketsphinx/pocketsphinx.h ps_init
+enabled pocketsphinx      && require_pkg_config pocketsphinx pocketsphinx pocketsphinx.h ps_init
 enabled rkmpp             && { require_pkg_config rkmpp rockchip_mpp  rockchip/rk_mpi.h mpp_create &&
                                require_pkg_config rockchip_mpp "rockchip_mpp >= 1.3.7" rockchip/rk_mpi.h mpp_create &&
                                { enabled libdrm ||
diff --git a/libavfilter/af_asr.c b/libavfilter/af_asr.c
index b402f5ff26..65993fc2f1 100644
--- a/libavfilter/af_asr.c
+++ b/libavfilter/af_asr.c
@@ -18,7 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <pocketsphinx/pocketsphinx.h>
+#include <pocketsphinx.h>
 
 #include "libavutil/avstring.h"
 #include "libavutil/channel_layout.h"
-- 
2.40.1