mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
ea0b236554
Approved by: portmgr (flavors already approved for these ports)
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= espeak
|
|
PORTVERSION= 4.0
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 3
|
|
CATEGORIES= audio
|
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
|
COMMENT= Espeak dialplan application for Asterisk
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libespeak.so:audio/espeak \
|
|
libsamplerate.so:audio/libsamplerate
|
|
|
|
FLAVORS= asterisk16 asterisk13
|
|
FLAVOR?= ${FLAVORS:[1]}
|
|
|
|
asterisk13_PKGNAMEPREFIX= asterisk13-
|
|
asterisk13_CONFLICTS_INSTALL= asterisk16-espeak
|
|
asterisk13_BUILD_DEPENDS= asterisk:net/asterisk13
|
|
asterisk13_RUN_DEPENDS= asterisk:net/asterisk13
|
|
|
|
asterisk16_PKGNAMEPREFIX= asterisk16-
|
|
asterisk16_CONFLICTS_INSTALL= asterisk13-espeak
|
|
asterisk16_BUILD_DEPENDS= asterisk:net/asterisk16
|
|
asterisk16_RUN_DEPENDS= asterisk:net/asterisk16
|
|
|
|
USES= compiler gmake localbase
|
|
INSTALL_TARGET= install samples
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= zaf
|
|
GH_PROJECT= Asterisk-eSpeak
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
|
CFLAGS+= -fblocks
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/ASTERISK_REGISTER_FILE/d' \
|
|
${WRKSRC}/app_espeak.c
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/app_espeak.so
|
|
|
|
.include <bsd.port.post.mk>
|