blob: 20c8b7350ea26100b6e80391a95c258c6e157a9d (
plain) (
tree)
|
|
PORTNAME= pocketsphinx
PORTVERSION= 0.1.15
PORTREVISION= 2
CATEGORIES= audio python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= DtxdF@disroot.org
COMMENT= Python interface to CMU Sphinxbase and Pocketsphinx libraries
WWW= https://github.com/bambocher/pocketsphinx-python
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= swig>0:devel/swig
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libpulse-simple.so:audio/pulseaudio \
libpulse.so:audio/pulseaudio
USES= python
USE_PYTHON= distutils
CFLAGS+= -I${LOCALBASE}/include
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pocketsphinx/_pocketsphinx${PYTHON_EXT_SUFFIX}.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_alsa${PYTHON_EXT_SUFFIX}.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_pulse${PYTHON_EXT_SUFFIX}.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_sphinxbase${PYTHON_EXT_SUFFIX}.so
.include <bsd.port.mk>
|