2018-04-12 13:07:19 +02:00
|
|
|
PORTNAME= flite
|
2017-08-22 15:01:31 +02:00
|
|
|
PORTVERSION= 3.0
|
2016-09-20 20:10:18 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2023-04-25 17:15:30 +02:00
|
|
|
PORTREVISION= 5
|
2016-09-20 20:10:18 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
|
2022-08-30 10:09:11 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2016-09-20 20:10:18 +02:00
|
|
|
COMMENT= Flite dialplan application for Asterisk
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://zaf.github.io/Asterisk-Flite/
|
2016-09-20 20:10:18 +02:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
|
|
|
|
|
|
|
LIB_DEPENDS= libflite.so:audio/flite
|
2018-04-12 13:07:19 +02:00
|
|
|
|
2021-10-24 20:30:53 +02:00
|
|
|
FLAVORS= asterisk18 asterisk16
|
2019-11-24 17:45:32 +01:00
|
|
|
FLAVOR?= ${FLAVORS:[1]}
|
2018-04-12 13:07:19 +02:00
|
|
|
|
2018-11-01 00:42:52 +01:00
|
|
|
asterisk16_PKGNAMEPREFIX= asterisk16-
|
|
|
|
asterisk16_BUILD_DEPENDS= asterisk:net/asterisk16
|
|
|
|
asterisk16_RUN_DEPENDS= asterisk:net/asterisk16
|
|
|
|
|
2022-09-07 12:26:41 +02:00
|
|
|
asterisk18_PKGNAMEPREFIX= asterisk18-
|
2020-10-23 10:13:57 +02:00
|
|
|
asterisk18_BUILD_DEPENDS= asterisk:net/asterisk18
|
|
|
|
asterisk18_RUN_DEPENDS= asterisk:net/asterisk18
|
|
|
|
|
2020-01-03 14:17:01 +01:00
|
|
|
USES= compiler:c11 gmake localbase
|
2017-08-22 15:01:31 +02:00
|
|
|
INSTALL_TARGET= install samples
|
|
|
|
|
2016-09-20 20:10:18 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= zaf
|
|
|
|
GH_PROJECT= Asterisk-Flite
|
|
|
|
|
2022-02-06 19:36:07 +01:00
|
|
|
CONFLICTS_INSTALL= asterisk[0-9][0-9]-flite # etc/asterisk/flite.conf.sample
|
|
|
|
|
2016-09-20 20:10:18 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
|
|
|
CFLAGS+= -fblocks
|
|
|
|
.endif
|
|
|
|
|
2018-04-12 13:07:19 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/ASTERISK_REGISTER_FILE/d' \
|
|
|
|
${WRKSRC}/app_flite.c
|
|
|
|
|
2016-09-20 20:10:18 +02:00
|
|
|
post-install:
|
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/app_flite.so
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|