summaryrefslogtreecommitdiff
path: root/net/appkonference/Makefile
blob: 9d397f320e3ece839eb702be3f82d78e2817c5e6 (plain)
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
# Created by: Alex Deiter <Alex.Deiter@Gmail.COM>
# $FreeBSD$

PORTNAME=	appkonference
PORTVERSION=	2.7
PORTREVISION=	3
CATEGORIES=	net
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	High-performance Asterisk voice/video conferencing plugin

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

ONLY_FOR_ARCHS=		amd64 armv6 armv7 i386 powerpc
ONLY_FOR_ARCHS_REASON=	not yet ported to this architecture

BUILD_DEPENDS=	asterisk:net/asterisk13
RUN_DEPENDS=	asterisk:net/asterisk13

USES=		compiler:features gmake
USE_CSTD=	gnu89
WRKSRC=		${WRKDIR}/${PORTNAME}/konference
MAKE_ARGS=	ASTERISK_SRC_VERSION=1300

PLIST_FILES=	lib/asterisk/modules/app_konference.so

OPTIONS_DEFINE=		OPTIMIZED_CFLAGS
OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS

OPTIMIZED_CFLAGS_CFLAGS=	-O3 -ffast-math

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} && ${CHOSEN_COMPILER_TYPE} == gcc
CFLAGS+=	-funroll-all-loops -fsingle-precision-constant
.endif

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

.include <bsd.port.post.mk>