blob: 8eb52f31f36980c1f914b0ff9f4d7eb84d4f9dcf (
plain) (
blame)
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
|
PORTNAME= pocketsphinx
PORTVERSION= 0.1.15
PORTREVISION= 5
CATEGORIES= audio python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= dtxdf@FreeBSD.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= swig40>0:devel/swig40
LIB_DEPENDS= libasound.so:audio/alsa-lib \
libpulse-simple.so:audio/pulseaudio \
libpulse.so:audio/pulseaudio
USES= python
USE_PYTHON= distutils
BINARY_ALIAS= swig=swig40
CFLAGS+= -I${LOCALBASE}/include
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/pocketsphinx/_pocketsphinx${PYTHON_TAG}.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_alsa${PYTHON_TAG}.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_ad_pulse${PYTHON_TAG}.so
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/sphinxbase/_sphinxbase${PYTHON_TAG}.so
.include <bsd.port.mk>
|