# $MidnightBSD: trunk/audio/flite/Makefile 16947 2014-09-07 17:45:11Z laffer1 $

PORTNAME=	flite
PORTVERSION=	1.4
PORTREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	http://www.speech.cs.cmu.edu/flite/packed/${PORTNAME}-${PORTVERSION}/
DISTNAME=	${PORTNAME}-${PORTVERSION}-release

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Small run-time speech synthesis engine
LICENSE=	agg
# core is BSDL, with GPL build system

FAKE_OPTS=	prefixhack

OPTIONS_DEFINE=	DOCS

USES=		gmake tar:bzip2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-shared=yes
USE_LDCONFIG=	yes

MAKE_JOBS_UNSAFE=	yes

CFLAGS:=	${CFLAGS:N-O:N-O[0123456789]} -O0

post-patch:
	@${REINPLACE_CMD} -e 's|-pd|-p|g' ${WRKSRC}/main/Makefile

post-install:
	@${MKDIR} ${DOCSDIR}/
	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}/

.include <bsd.port.mk>
