# New ports collection makefile for:	sphinx3
# Date created:				4 Jan 2008
# Whom:					Richard Neese
#
# $FreeBSD: ports/audio/sphinx3/Makefile,v 1.5 2010/12/04 07:30:31 ade Exp $
#

PORTNAME=	sphinx3
PORTVERSION=	0.7
CATEGORIES=	audio accessibility
MASTER_SITES=	SF/cmusphinx/${PORTNAME}/${PORTVERSION}

MAINTAINER=	r.neese@gmail.com
COMMENT=	Speech recognition system

LIB_DEPENDS=	sphinxfe.0:${PORTSDIR}/audio/sphinxbase

USE_LDCONFIG=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=libtool

CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/sphinxbase" \
		LDFLAGS="-L${LOCALBASE}/lib"

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

post-patch:
	@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in

.include <bsd.port.mk>
