aboutsummaryrefslogtreecommitdiff
path: root/net/asterisk-chan_sccp/Makefile
blob: 96a3fa44bdd07d3326d2312aa3ce50107c50d33b (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Created by: Diederik de Groot
# $FreeBSD$

PORTNAME=	chan_sccp
DISTVERSIONPREFIX=	v
DISTVERSION=	4.3.2
PORTREVISION=	1
DISTVERSIONSUFFIX=	-gamma
CATEGORIES=	net
PKGNAMEPREFIX=	asterisk-

MAINTAINER=	ddegroot@talon.nl
COMMENT=	Replacement for the SCCP channel driver in Asterisk

LICENSE=	GPLv1
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		autoreconf gettext-tools iconv libtool
USE_GITHUB=	yes
GH_ACCOUNT=	chan-sccp
GH_PROJECT=	chan-sccp

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-advanced-functions \
		--with-hash-size=3001 \
		${ICONV_CONFIGURE_ARG}
INSTALL_TARGET=	install-strip

CPPFLAGS+=	-I${ICONV_INCLUDE_PATH}
LDFLAGS+=	-L${LOCALBASE}/lib \
		${ICONV_LIB}

PLIST_FILES=	etc/asterisk/sccp.conf.annotated \
		"@sample etc/asterisk/sccp.conf.sample" \
		lib/asterisk/modules/chan_sccp.so \
		share/asterisk/documentation/thirdparty/chan_sccp-en_US.xml

OPTIONS_DEFINE=		CONFERENCE VIDEO
OPTIONS_DEFAULT=	AST16 CONFERENCE VIDEO
OPTIONS_SINGLE=		ASTVER
OPTIONS_SINGLE_ASTVER=	AST13 AST15 AST16

ASTVER_DESC=		Which asterisk to build for
AST13_DESC=		Asterisk 13
AST15_DESC=		Asterisk 15
AST16_DESC=		Asterisk 16
CONFERENCE_DESC=	Enable Conference Support
VIDEO_DESC=		Enable Video Support

AST13_BUILD_DEPENDS=	asterisk13>0:net/asterisk13
AST13_RUN_DEPENDS=	asterisk13>0:net/asterisk13

# AST15 will be EOL october 2019
AST15_BUILD_DEPENDS=	asterisk15>0:net/asterisk15
AST15_RUN_DEPENDS=	asterisk15>0:net/asterisk15

AST16_BUILD_DEPENDS=	asterisk16>0:net/asterisk16
AST16_RUN_DEPENDS=	asterisk16>0:net/asterisk16

CONFERENCE_CONFIGURE_ENABLE=	conference
VIDEO_CONFIGURE_ENABLE=		video

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/asterisk
	${INSTALL_DATA} ${WRKSRC}/conf/sccp.conf \
		${STAGEDIR}${PREFIX}/etc/asterisk/sccp.conf.sample
	${INSTALL_DATA} ${WRKSRC}/conf/sccp.conf.annotated \
		${STAGEDIR}${PREFIX}/etc/asterisk

.include <bsd.port.mk>