aboutsummaryrefslogtreecommitdiffstats
path: root/net/asterisk-chan_sccp/Makefile
blob: a1c99e7d1fa83b8b70774405fe23b0a4a680776c (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
# 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 AST16

ASTVER_DESC=        Which asterisk to build for
AST13_DESC=     Asterisk 13
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

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>