aboutsummaryrefslogtreecommitdiffstats
path: root/audio/pocketsphinx/Makefile
blob: a05e52aa2ceb98231030094e9d9649e483a9ea35 (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
33
34
35
36
37
38
# Created by: Richard Neese
# $FreeBSD$

PORTNAME=   pocketsphinx
PORTVERSION=    0.8
CATEGORIES= audio accessibility
MASTER_SITES=   SF/cmusphinx/${PORTNAME}/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Speech recognition system

LIB_DEPENDS=    sphinxad:${PORTSDIR}/audio/sphinxbase

USES=       pkgconfig
USE_LDCONFIG=   yes
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool

CONFIGURE_ARGS+=    --without-python
CONFIGURE_ENV+= HAVE_DOXYGEN=no

CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

MAKE_ENV=   MKDIR="${MKDIR}" \
        OSVERSION=${OSVERSION}

MAN1=   pocketsphinx_batch.1 \
    pocketsphinx_continuous.1 \
    pocketsphinx_mdef_convert.1

post-patch:
    @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -E -e 's|^([[:space:]]+programs )\\$$|\1|;' \
        -e '/[[:space:]]+gst-plugin$$/D;' \
        ${WRKSRC}/src/Makefile.in

.include <bsd.port.mk>