aboutsummaryrefslogtreecommitdiffstats
path: root/audio/asterisk-flite/Makefile
blob: c9340a328ace8fce327d236d6f48f3d8cc6d2c13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $FreeBSD$

PORTNAME=   flite
PORTVERSION=    3.0
DISTVERSIONPREFIX=  v
PORTREVISION=   3
CATEGORIES= audio

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

LICENSE=    GPLv2

LIB_DEPENDS=    libflite.so:audio/flite

FLAVORS=            asterisk13 asterisk15 asterisk16
FLAVOR?=            ${FLAVORS[1]}

asterisk13_PKGNAMEPREFIX=   asterisk13-
asterisk13_CONFLICTS_INSTALL=   asterisk15-flite asterisk16-flite
asterisk13_BUILD_DEPENDS=   asterisk:net/asterisk13
asterisk13_RUN_DEPENDS=     asterisk:net/asterisk13

asterisk15_PKGNAMEPREFIX=   asterisk15-
asterisk15_CONFLICTS_INSTALL=   asterisk13-flite asterisk16-flite
asterisk15_BUILD_DEPENDS=   asterisk:net/asterisk15
asterisk15_RUN_DEPENDS=     asterisk:net/asterisk15

asterisk16_PKGNAMEPREFIX=   asterisk16-
asterisk16_CONFLICTS_INSTALL=   asterisk13-flite asterisk15-flite
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-Flite

.include <bsd.port.pre.mk>

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

post-patch:
    @${REINPLACE_CMD} -e '/ASTERISK_REGISTER_FILE/d' \
        ${WRKSRC}/app_flite.c

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

.include <bsd.port.post.mk>