# $FreeBSD: tags/RELEASE_11_2_0/audio/asterisk-flite/Makefile 452780 2017-10-24 15:05:30Z madpilot $

PORTNAME=	asterisk-flite
PORTVERSION=	3.0
DISTVERSIONPREFIX=	v
CATEGORIES=	audio

MAINTAINER=	madpilot@FreeBSD.org
COMMENT=	Flite dialplan application for Asterisk

LICENSE=	GPLv2

LIB_DEPENDS=	libflite.so:audio/flite
BUILD_DEPENDS=	asterisk:net/asterisk13
RUN_DEPENDS=	asterisk:net/asterisk13

USES=		compiler gmake localbase
INSTALL_TARGET=	install samples

USE_GITHUB=	yes
GH_ACCOUNT=	zaf
GH_PROJECT=	Asterisk-Flite

.include <bsd.port.pre.mk>

.if ${CHOSEN_COMPILER_TYPE} == clang
CFLAGS+=	-fblocks
.endif

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/app_flite.so

.include <bsd.port.post.mk>
