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