1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/audio/asterisk-flite/Makefile
Piotr Kubaj edc70d0b5e audio/asterisk-flite: fix build on GCC architectures
C11 compiler is necessary:

In file included from /usr/local/include/asterisk/vector.h:22,
                 from /usr/local/include/asterisk/stringfields.h:178,
                 from /usr/local/include/asterisk/app.h:26,
                 from app_flite.c:42:
/usr/local/include/asterisk/lock.h: In function 'ast_atomic_fetchadd_int':
/usr/local/include/asterisk/lock.h:752: error: '__ATOMIC_RELAXED' undeclared (first use in this function)
/usr/local/include/asterisk/lock.h:752: error: (Each undeclared identifier is reported only once
/usr/local/include/asterisk/lock.h:752: error: for each function it appears in.)
/usr/local/include/asterisk/lock.h: In function 'ast_atomic_dec_and_test':
/usr/local/include/asterisk/lock.h:762: error: '__ATOMIC_RELAXED' undeclared (first use in this function)

MFH:		2020Q1 (build fix blanket)
2020-01-03 13:17:01 +00:00

50 lines
1.1 KiB
Makefile

# $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= asterisk16 asterisk13
FLAVOR?= ${FLAVORS:[1]}
asterisk13_PKGNAMEPREFIX= asterisk13-
asterisk13_CONFLICTS_INSTALL= asterisk16-flite
asterisk13_BUILD_DEPENDS= asterisk:net/asterisk13
asterisk13_RUN_DEPENDS= asterisk:net/asterisk13
asterisk16_PKGNAMEPREFIX= asterisk16-
asterisk16_CONFLICTS_INSTALL= asterisk13-flite
asterisk16_BUILD_DEPENDS= asterisk:net/asterisk16
asterisk16_RUN_DEPENDS= asterisk:net/asterisk16
USES= compiler:c11 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>