Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= freeswitch |
8 |
PORTNAME= freeswitch |
9 |
PORTVERSION= 1.2 |
9 |
PORTVERSION= 1.2.1 |
10 |
CATEGORIES= net |
10 |
CATEGORIES= net |
11 |
MASTER_SITES= # none |
11 |
MASTER_SITES= # none |
12 |
PKGNAMESUFFIX= -devel |
12 |
PKGNAMESUFFIX= -devel |
Lines 23-41
Link Here
|
23 |
NO_WRKSUBDIR= yes |
23 |
NO_WRKSUBDIR= yes |
24 |
NO_BUILD= yes |
24 |
NO_BUILD= yes |
25 |
|
25 |
|
26 |
OPTIONS= VANILLA "Vanilla Dialplan Configs" off \ |
26 |
OPTIONS_DEFINE= VANILLA SBC INSIDEOUT CURL SOUNDS MUSIC PIZZADEMO SCRIPTS |
27 |
SBC "Session Border Conroller configs" off \ |
|
|
28 |
INSIDEOUT "Inside Out Basic Dialplan Configs" off \ |
29 |
CURL "Curl dialplan configs" off \ |
30 |
SOUNDS "Sound files for use with FreeSwitch PBX" off \ |
31 |
MUSIC "Music on hold for use with FreeSwitch PBX" off \ |
32 |
PIZZADEMO "Install Pizza Shop voice demo" off \ |
33 |
SCRIPTS "Install Freeswitch various scripts" off |
34 |
|
27 |
|
|
|
28 |
VANILLA_DESC= Vanilla Dialplan Configs |
29 |
SBC_DESC= Session Border Conroller configs |
30 |
INSIDEOUT_DESC= Inside Out Basic Dialplan Configs |
31 |
CURL_DESC= Curl dialplan configs |
32 |
SOUNDS_DESC= Sound files for use with FreeSwitch PBX |
33 |
MUSIC_DESC= Music on hold for use with FreeSwitch PBX |
34 |
PIZZADEMO_DESC= Install Pizza Shop voice demo |
35 |
SCRIPTS_DESC= Install Freeswitch various scripts |
36 |
|
37 |
OPTIONS_DEFAULT= VANILLA SOUNDS MUSIC |
38 |
NO_OPTIONS_SORT= yes |
39 |
|
35 |
.include <bsd.port.options.mk> |
40 |
.include <bsd.port.options.mk> |
36 |
|
41 |
|
37 |
.for conf in vanilla sbc insideout curl |
42 |
.for conf in vanilla sbc insideout curl |
38 |
. if defined(WITH_${conf:U}) |
43 |
.if ${PORT_OPTIONS:M${conf:U}} |
39 |
CNF?= ${conf} |
44 |
CNF?= ${conf} |
40 |
. if ${CNF} == ${conf} |
45 |
. if ${CNF} == ${conf} |
41 |
RUN_DEPENDS+= ${LOCALBASE}/etc/freeswitch/conf/.${conf}:${PORTSDIR}/net/freeswitch-${conf}-devel |
46 |
RUN_DEPENDS+= ${LOCALBASE}/etc/freeswitch/conf/.${conf}:${PORTSDIR}/net/freeswitch-${conf}-devel |
Lines 46-64
Link Here
|
46 |
.endfor |
51 |
.endfor |
47 |
.undef CNF |
52 |
.undef CNF |
48 |
|
53 |
|
49 |
.if defined(WITH_SOUNDS) |
54 |
.if ${PORT_OPTIONS:MSOUNDS} |
50 |
RUN_DEPENDS+= ${LOCALBASE}/share/freeswitch/sounds/.freeswitch-sounds:${PORTSDIR}/audio/freeswitch-sounds |
55 |
RUN_DEPENDS+= ${LOCALBASE}/share/freeswitch/sounds/.freeswitch-sounds:${PORTSDIR}/audio/freeswitch-sounds |
51 |
.endif |
56 |
.endif |
52 |
|
57 |
|
53 |
.if defined(WITH_MUSIC) |
58 |
.if ${PORT_OPTIONS:MMUSIC} |
54 |
RUN_DEPENDS+= ${LOCALBASE}/share/freeswitch/sounds/.freeswitch-music:${PORTSDIR}/audio/freeswitch-music |
59 |
RUN_DEPENDS+= ${LOCALBASE}/share/freeswitch/sounds/.freeswitch-music:${PORTSDIR}/audio/freeswitch-music |
55 |
.endif |
60 |
.endif |
56 |
|
61 |
|
57 |
.if defined(WITH_PIZZADEMO) |
62 |
.if ${PORT_OPTIONS:MPIZZADEMO} |
58 |
RUN_DEPENDS+= ${LOCALBASE}/share/freeswitch/sounds/.pizza:${PORTSDIR}/misc/freeswitch-pizzademo-devel |
63 |
RUN_DEPENDS+= ${LOCALBASE}/share/freeswitch/sounds/.pizza:${PORTSDIR}/misc/freeswitch-pizzademo-devel |
59 |
.endif |
64 |
.endif |
60 |
|
65 |
|
61 |
.if defined(WITH_SCRIPTS) |
66 |
.if ${PORT_OPTIONS:MSCRIPTS} |
62 |
RUN_DEPENDS+= ${LOCALBASE}/etc/freeswitch/scripts/.freeswitch-scripts:${PORTSDIR}/misc/freeswitch-scripts-devel |
67 |
RUN_DEPENDS+= ${LOCALBASE}/etc/freeswitch/scripts/.freeswitch-scripts:${PORTSDIR}/misc/freeswitch-scripts-devel |
63 |
.endif |
68 |
.endif |
64 |
|
69 |
|