Lines 1-8
Link Here
|
1 |
PORTNAME= baresip |
1 |
PORTNAME= baresip |
2 |
PORTVERSION= 0.5.8 |
2 |
DISTVERSIONPREFIX= v |
3 |
PORTREVISION= 9 |
3 |
DISTVERSION= 2.3.0 |
4 |
CATEGORIES= audio |
4 |
CATEGORIES= audio |
5 |
MASTER_SITES= http://www.creytiv.com/pub/ |
|
|
6 |
|
5 |
|
7 |
MAINTAINER= crees@FreeBSD.org |
6 |
MAINTAINER= crees@FreeBSD.org |
8 |
COMMENT= Small SIP client |
7 |
COMMENT= Small SIP client |
Lines 10-20
COMMENT= Small SIP client
Link Here
|
10 |
LICENSE= BSD3CLAUSE |
9 |
LICENSE= BSD3CLAUSE |
11 |
LICENSE_FILE= ${WRKSRC}/docs/COPYING |
10 |
LICENSE_FILE= ${WRKSRC}/docs/COPYING |
12 |
|
11 |
|
13 |
BUILD_DEPENDS= re>=0.5.8:audio/re \ |
12 |
BUILD_DEPENDS= re>=${DISTVERSION}:audio/re \ |
14 |
rem>=0.5.3:audio/rem |
13 |
rem>=${DISTVERSION}:audio/rem |
15 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
14 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
16 |
|
15 |
|
17 |
USES= gmake pkgconfig ssl |
16 |
USES= gmake pkgconfig ssl |
|
|
17 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= baresip |
18 |
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ilbc |
19 |
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/ilbc |
19 |
MAKE_ARGS= MOD_AUTODETECT="" |
20 |
MAKE_ARGS= MOD_AUTODETECT="" |
20 |
PLIST_FILES= bin/baresip |
21 |
PLIST_FILES= bin/baresip |
Lines 22-100
PORTDATA= *
Link Here
|
22 |
PORTDOCS= * |
23 |
PORTDOCS= * |
23 |
PORTEXAMPLES= * |
24 |
PORTEXAMPLES= * |
24 |
|
25 |
|
25 |
#OPTIONS_NOT_YET_WORKING= ALSA BV32 G722_1 PLC ISAC OPENGLES |
26 |
OPTIONS_DEFINE= \ |
26 |
OPTIONS_DEFINE= CONS DOCS EXAMPLES FFMPEG G711 G722 G726 GSM GSTREAMER ILBC \ |
27 |
ALSA \ |
27 |
L16 OPUS OSS PORTAUDIO PULSEAUDIO SDL SNDFILE SPEEX STDIO UUID V4L V4L2 X11 \ |
28 |
DOCS \ |
28 |
DTLS_SRTP AUBRIDGE VIDBRIDGE HTTPD DSHOW DIRECTFB ACCOUNT \ |
29 |
EXAMPLES \ |
29 |
NATPMP SDL MIW SNAPSHOT SELFVIEW VUMETER AULOOP CONTACT \ |
30 |
G711 G722 G726 GSM GST GST_VIDEO \ |
30 |
MENU PRESENCE SYSLOG VIDLOOP |
31 |
MQTT \ |
31 |
OPTIONS_DEFAULT=CONS G711 G722 G726 L16 OSS STDIO |
32 |
OPUS OPUS_MS \ |
32 |
|
33 |
PLC PORTAUDIO PULSEAUDIO \ |
33 |
AULOOP_DESC= Audio-loop test module |
34 |
SDL SNAPSHOT SNDFILE \ |
34 |
BV32_DESC= BroadVoice32 Wideband Audio codec |
35 |
V4L2 VPX \ |
35 |
CONTACT_DESC= Contacts module |
36 |
X11 |
36 |
CONS_DESC= Console input driver |
37 |
OPTIONS_DEFAULT=CONS DOCS EVDEV EXAMPLES G711 G722 G726 HTTPREQ L16 NETROAM STDIO SYSLOG |
37 |
DTLS_SRTP_DESC= DTLS Secure RTP module [broken] |
38 |
|
|
|
39 |
ALSA_DESC= ALSA audio driver |
38 |
G711_DESC= G.711 audio codec |
40 |
G711_DESC= G.711 audio codec |
39 |
G722_DESC= G.722 audio codec |
41 |
G722_DESC= G.722 audio codec |
40 |
G722_1_DESC= G.722.1 audio codec |
|
|
41 |
G726_DESC= G.726 audio codec |
42 |
G726_DESC= G.726 audio codec |
42 |
ILBC_DESC= iLBC audio codec |
43 |
GSM_DESC= GSM audio codec |
43 |
L16_DESC= L16 audio codec |
44 |
GST_DESC= Gstreamer audio module |
44 |
MENU_DESC= Interactive menu |
45 |
GST_VIDEO_DESC= Gstreamer video module |
45 |
OPENGLES_DESC= OpenGL ES video output |
46 |
MQTT_DESC= Message Queue Telemetry Transport (MQTT) client |
|
|
47 |
OPUS_DESC= Opus audio codec |
48 |
OPUS_MS_DESC= Opus Multistream audio codec |
46 |
PLC_DESC= Packet Loss Concealment |
49 |
PLC_DESC= Packet Loss Concealment |
47 |
PRESENCE_DESC= Presence module |
50 |
PORTAUDIO_DESC= Portaudio audio driver |
48 |
STDIO_DESC= stdio input driver |
51 |
PULSEAUDIO_DESC= Pulseaudio audio driver |
|
|
52 |
SDL_DESC= libSDL2 video output |
53 |
SNAPSHOT_DESC= Snapshot video module |
54 |
SNDFILE_DESC= sndfile wav dumper |
49 |
SYSLOG_DESC= Syslog module |
55 |
SYSLOG_DESC= Syslog module |
50 |
UUID_DESC= UUID module |
56 |
V4L2_DESC= Video4Linux2 module |
51 |
V4L_DESC= Video4Linux module [broken] |
57 |
VPX_DESC= VP8/VP9 video codecs |
52 |
V4L2_DESC= Video4Linux2 module [broken] |
58 |
X11_DESC= X11 video output |
53 |
VIDLOOP_DESC= Video-loop test module |
|
|
54 |
X11_DESC= X11 module [broken] |
55 |
|
56 |
.for o in ${OPTIONS_DEFINE} |
57 |
. ifndef $o_DESC |
58 |
$o_DESC= ${o:C,^(.).*,\1,}${o:C,^.,,:tl} module |
59 |
. endif |
60 |
.endfor |
61 |
|
59 |
|
62 |
.include <bsd.port.options.mk> |
60 |
.include <bsd.port.options.mk> |
63 |
|
61 |
|
64 |
.include "${.CURDIR}/Makefile.depends" |
62 |
.if ${PORT_OPTIONS:MALSA} |
|
|
63 |
ALSA_DEPEND= ${LOCALBASE}/include/alsa/asoundlib.h:audio/alsa-lib |
64 |
.endif |
65 |
|
66 |
.if ${PORT_OPTIONS:MG711} |
67 |
G711_DEPEND= ${LOCALBASE}/include/spandsp/g711.h:comms/spandsp |
68 |
.endif |
69 |
|
70 |
.if ${PORT_OPTIONS:MG722} |
71 |
G722_DEPEND= ${LOCALBASE}/include/spandsp/g722.h:comms/spandsp |
72 |
.endif |
73 |
|
74 |
.if ${PORT_OPTIONS:MG726} |
75 |
G726_DEPEND= ${LOCALBASE}/include/spandsp/g726.h:comms/spandsp |
76 |
.endif |
77 |
|
78 |
.if ${PORT_OPTIONS:MGSM} |
79 |
GSM_DEPEND= ${LOCALBASE}/include/gsm.h:audio/gsm |
80 |
.endif |
65 |
|
81 |
|
66 |
# Port used to call it GST, if it's set in make.conf let's not annoy people |
82 |
# Port used to call it GST, if it's set in make.conf let's not annoy people |
67 |
.if ${PORT_OPTIONS:MGST} |
83 |
.if ${PORT_OPTIONS:MGST} |
68 |
PORT_OPTIONS+= GSTREAMER |
84 |
PORT_OPTIONS+= GSTREAMER |
|
|
85 |
USES+= gnome |
86 |
USE_GNOME+= glib20 |
87 |
USE_GSTREAMER1+= yes |
88 |
.endif |
89 |
|
90 |
.if ${PORT_OPTIONS:MGST_VIDEO} |
91 |
PORT_OPTIONS+= GSTREAMER_VIDEO |
92 |
USES+= gnome |
93 |
USE_GNOME+= glib20 |
94 |
USE_GSTREAMER1+= yes |
95 |
.endif |
96 |
|
97 |
.if ${PORT_OPTIONS:MMQTT} |
98 |
LIB_DEPENDS+= libmosquitto.so:net/mosquitto |
99 |
.endif |
100 |
|
101 |
.if ${PORT_OPTIONS:MOPUS} |
102 |
OPUS_DEPEND= ${LOCALBASE}/include/opus/opus.h:audio/opus |
103 |
.endif |
104 |
|
105 |
.if ${PORT_OPTIONS:MOPUS_MS} |
106 |
OPUS_MS_DEPEND= ${LOCALBASE}/include/opus/opus.h:audio/opus |
107 |
.endif |
108 |
|
109 |
.if ${PORT_OPTIONS:MPLC} |
110 |
PLC_DEPEND= ${LOCALBASE}/include/spandsp/plc.h:comms/spandsp |
111 |
.endif |
112 |
|
113 |
.if ${PORT_OPTIONS:MPORTAUDIO} |
114 |
PORTAUDIO_DEPEND= ${LOCALBASE}/include/portaudio.h:audio/portaudio |
69 |
.endif |
115 |
.endif |
70 |
|
116 |
|
71 |
# Port calls it PULSE, standard OPTION is PULSEAUDIO |
117 |
# Port calls it PULSE, standard OPTION is PULSEAUDIO |
72 |
.if ${PORT_OPTIONS:MPULSEAUDIO} |
118 |
.if ${PORT_OPTIONS:MPULSEAUDIO} |
73 |
PORT_OPTIONS+= PULSE |
119 |
PORT_OPTIONS+= PULSE |
|
|
120 |
PULSEAUDIO_DEPEND= ${LOCALBASE}/include/pulse/pulseaudio.h:audio/pulseaudio |
74 |
.endif |
121 |
.endif |
75 |
|
122 |
|
76 |
.if ${PORT_OPTIONS:MSDL} |
123 |
.if ${PORT_OPTIONS:MSDL} |
77 |
USES+= sdl |
124 |
USES+= sdl |
78 |
USE_SDL= sdl sound |
125 |
USE_SDL= sdl2 |
79 |
.endif |
126 |
.endif |
80 |
|
127 |
|
81 |
# SPEEX forces install of speex, therefore may as well enable all methods |
128 |
.if ${PORT_OPTIONS:MSNAPSHOT} |
82 |
.if ${PORT_OPTIONS:MSPEEX} |
129 |
LIB_DEPENDS+= libpng16.so:graphics/png |
83 |
. for s in SPEEX_AEC SPEEX_PP SPEEX_RESAMP |
|
|
84 |
MAKE_ARGS+= USE_$s=yes |
85 |
. endfor |
86 |
MAKE_ARGS+= HAVE_SPEEXDSP=yes |
87 |
.endif |
130 |
.endif |
88 |
|
131 |
|
89 |
.for o in V4L DTLS_SRTP V4L2 X11 |
132 |
.if ${PORT_OPTIONS:MSNDFILE} |
90 |
. if ${PORT_OPTIONS:M$o} |
133 |
SNDFILE_DEPEND= ${LOCALBASE}/include/sndfile.h:audio/libsndfile |
91 |
BROKEN= OPTIONS marked as BROKEN have not been updated to the new Baresip API |
134 |
.endif |
92 |
. endif |
135 |
|
93 |
.endfor |
136 |
.if ${PORT_OPTIONS:MV4L2} |
|
|
137 |
V4L2_DEPEND= ${LOCALBASE}/include/libv4l2.h:multimedia/libv4l |
138 |
.endif |
139 |
|
140 |
.if ${PORT_OPTIONS:MVPX} |
141 |
VPX_DEPEND= ${LOCALBASE}/include/vpx/vp8.h:multimedia/libvpx |
142 |
.endif |
94 |
|
143 |
|
95 |
.if ${PORT_OPTIONS:MX11} |
144 |
.if ${PORT_OPTIONS:MX11} |
96 |
USES+= xorg |
145 |
USES+= xorg |
97 |
USE_XORG= x11 |
146 |
USE_XORG= x11 |
|
|
147 |
USE_XORG+= xext |
98 |
.endif |
148 |
.endif |
99 |
|
149 |
|
100 |
.for o in ${PORT_OPTIONS} |
150 |
.for o in ${PORT_OPTIONS} |