ports/audio/py-pocketsphinx/files/patch-setup.py
Jesús Daniel Colmenares Oviedo 74c7ab2091
Add audio/py-pocketsphinx: Python interface to CMU Sphinxbase and Pocketsphinx libraries
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
2022-10-26 03:16:28 +08:00

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',