mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 22:30:38 -04:00
Pocketsphinx is a part of the CMU Sphinx Open Source Toolkit For Speech Recognition. This package provides a python interface to CMU Sphinxbase and Pocketsphinx libraries created with SWIG and Setuptools. WWW: https://github.com/bambocher/pocketsphinx-python PR: 265766
20 lines
765 B
Python
20 lines
765 B
Python
--- setup.py.orig 2022-08-09 05:49:06 UTC
|
|
+++ setup.py
|
|
@@ -120,7 +120,7 @@ elif sys.platform.startswith('darwin'):
|
|
'-Wno-sign-compare',
|
|
'-Wno-logical-op-parentheses'
|
|
])
|
|
-elif sys.platform.startswith('linux'):
|
|
+elif sys.platform.startswith('linux') or sys.platform.startswith('freebsd'):
|
|
sb_include_dirs.append('deps/sphinxbase/include/android')
|
|
extra_compile_args.extend([
|
|
'-Wno-unused-label',
|
|
@@ -245,7 +245,7 @@ elif sys.platform.startswith('darwin'):
|
|
extra_link_args=extra_link_args
|
|
)
|
|
)
|
|
-elif sys.platform.startswith('linux'):
|
|
+elif sys.platform.startswith('linux') or sys.platform.startswith('freebsd'):
|
|
ext_modules.extend([
|
|
Extension(
|
|
name='sphinxbase._ad_pulse',
|