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.9.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 |
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.9.0:audio/re \ |
15 |
rem>=0.5.3:audio/rem |
14 |
rem>=2.9.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 |
AVCODEC AVFILTER AVFORMAT 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 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 SNDIO \ |
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 |
41 |
AVCODEC_DESC= Video codecs using libavcodec |
42 |
AVFILTER_DESC= Video filter using libavfilter |
43 |
AVFORMAT_DESC= libavformat media-source |
39 |
G711_DESC= G.711 audio codec |
44 |
G711_DESC= G.711 audio codec |
40 |
G722_DESC= G.722 audio codec |
45 |
G722_DESC= G.722 audio codec |
41 |
G722_1_DESC= G.722.1 audio codec |
|
|
42 |
G726_DESC= G.726 audio codec |
46 |
G726_DESC= G.726 audio codec |
43 |
ILBC_DESC= iLBC audio codec |
47 |
GST_DESC= Gstreamer audio module |
44 |
L16_DESC= L16 audio codec |
48 |
MQTT_DESC= Message Queue Telemetry Transport (MQTT) client |
45 |
MENU_DESC= Interactive menu |
49 |
OPUS_DESC= Opus audio codec |
46 |
OPENGLES_DESC= OpenGL ES video output |
50 |
OPUS_MS_DESC= Opus Multistream audio codec |
47 |
PLC_DESC= Packet Loss Concealment |
51 |
PLC_DESC= Packet Loss Concealment |
48 |
PRESENCE_DESC= Presence module |
52 |
PORTAUDIO_DESC= Portaudio audio driver |
49 |
STDIO_DESC= stdio input driver |
53 |
PULSEAUDIO_DESC= Pulseaudio audio driver |
|
|
54 |
SDL_DESC= libSDL2 video output |
55 |
SNAPSHOT_DESC= Snapshot video module |
56 |
SNDFILE_DESC= sndfile wav dumper |
57 |
SNDIO_DESC= SndIO sound driver |
50 |
SYSLOG_DESC= Syslog module |
58 |
SYSLOG_DESC= Syslog module |
51 |
UUID_DESC= UUID module |
59 |
V4L2_DESC= Video4Linux2 module |
52 |
V4L_DESC= Video4Linux module [broken] |
60 |
VPX_DESC= VP8/VP9 video codecs |
53 |
V4L2_DESC= Video4Linux2 module [broken] |
61 |
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 |
|
62 |
|
63 |
.include <bsd.port.options.mk> |
63 |
.include <bsd.port.options.mk> |
64 |
|
64 |
|
65 |
.include "${.CURDIR}/Makefile.depends" |
65 |
.if ${PORT_OPTIONS:MALSA} |
|
|
66 |
ALSA_DEPEND= ${LOCALBASE}/include/alsa/asoundlib.h:audio/alsa-lib |
67 |
.endif |
68 |
|
69 |
.if ${PORT_OPTIONS:MAVCODEC} |
70 |
AVCODEC_DEPEND= ${LOCALBASE}/include/libavcodec/avcodec.h:multimedia/ffmpeg |
71 |
.endif |
72 |
|
73 |
.if ${PORT_OPTIONS:MAVFILTER} |
74 |
AVFILTER_DEPEND= ${LOCALBASE}/include/libavfilter/avfilter.h:multimedia/ffmpeg |
75 |
.endif |
76 |
|
77 |
.if ${PORT_OPTIONS:MAVFORMAT} |
78 |
AVFORMAT_DEPEND= ${LOCALBASE}/include/libavformat/avformat.h:multimedia/ffmpeg |
79 |
.endif |
80 |
|
81 |
.if ${PORT_OPTIONS:MG711} |
82 |
G711_DEPEND= ${LOCALBASE}/include/spandsp/g711.h:comms/spandsp |
83 |
.endif |
84 |
|
85 |
.if ${PORT_OPTIONS:MG722} |
86 |
G722_DEPEND= ${LOCALBASE}/include/spandsp/g722.h:comms/spandsp |
87 |
.endif |
88 |
|
89 |
.if ${PORT_OPTIONS:MG726} |
90 |
G726_DEPEND= ${LOCALBASE}/include/spandsp/g726.h:comms/spandsp |
91 |
.endif |
66 |
|
92 |
|
67 |
# Port used to call it GST, if it's set in make.conf let's not annoy people |
|
|
68 |
.if ${PORT_OPTIONS:MGST} |
93 |
.if ${PORT_OPTIONS:MGST} |
|
|
94 |
GST_DEPEND= ${LOCALBASE}/include/gstreamer-1.0/gst/gst.h:multimedia/gstreamer1 |
69 |
PORT_OPTIONS+= GSTREAMER |
95 |
PORT_OPTIONS+= GSTREAMER |
|
|
96 |
USES+= gnome |
97 |
USE_GNOME+= glib20 |
98 |
USE_GSTREAMER1+= yes |
99 |
.endif |
100 |
|
101 |
.if ${PORT_OPTIONS:MMQTT} |
102 |
LIB_DEPENDS+= libmosquitto.so:net/mosquitto |
103 |
.endif |
104 |
|
105 |
.if ${PORT_OPTIONS:MOPUS} |
106 |
OPUS_DEPEND= ${LOCALBASE}/include/opus/opus.h:audio/opus |
107 |
.endif |
108 |
|
109 |
.if ${PORT_OPTIONS:MOPUS_MS} |
110 |
OPUS_MS_DEPEND= ${LOCALBASE}/include/opus/opus.h:audio/opus |
111 |
.endif |
112 |
|
113 |
.if ${PORT_OPTIONS:MPLC} |
114 |
PLC_DEPEND= ${LOCALBASE}/include/spandsp/plc.h:comms/spandsp |
115 |
.endif |
116 |
|
117 |
.if ${PORT_OPTIONS:MPORTAUDIO} |
118 |
PORTAUDIO_DEPEND= ${LOCALBASE}/include/portaudio.h:audio/portaudio |
70 |
.endif |
119 |
.endif |
71 |
|
120 |
|
72 |
# Port calls it PULSE, standard OPTION is PULSEAUDIO |
121 |
# Port calls it PULSE, standard OPTION is PULSEAUDIO |
73 |
.if ${PORT_OPTIONS:MPULSEAUDIO} |
122 |
.if ${PORT_OPTIONS:MPULSEAUDIO} |
74 |
PORT_OPTIONS+= PULSE |
123 |
PORT_OPTIONS+= PULSE |
|
|
124 |
PULSEAUDIO_DEPEND= ${LOCALBASE}/include/pulse/pulseaudio.h:audio/pulseaudio |
75 |
.endif |
125 |
.endif |
76 |
|
126 |
|
77 |
.if ${PORT_OPTIONS:MSDL} |
127 |
.if ${PORT_OPTIONS:MSDL} |
78 |
USES+= sdl |
128 |
USES+= sdl |
79 |
USE_SDL= sdl sound |
129 |
USE_SDL= sdl2 |
80 |
.endif |
130 |
.endif |
81 |
|
131 |
|
82 |
# SPEEX forces install of speex, therefore may as well enable all methods |
132 |
.if ${PORT_OPTIONS:MSNAPSHOT} |
83 |
.if ${PORT_OPTIONS:MSPEEX} |
133 |
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 |
134 |
.endif |
89 |
|
135 |
|
90 |
.for o in V4L DTLS_SRTP V4L2 X11 |
136 |
.if ${PORT_OPTIONS:MSNDFILE} |
91 |
. if ${PORT_OPTIONS:M$o} |
137 |
SNDFILE_DEPEND= ${LOCALBASE}/include/sndfile.h:audio/libsndfile |
92 |
BROKEN= OPTIONS marked as BROKEN have not been updated to the new Baresip API |
138 |
.endif |
93 |
. endif |
139 |
|
94 |
.endfor |
140 |
.if ${PORT_OPTIONS:MSNDIO} |
|
|
141 |
SNDIO_DEPEND= ${LOCALBASE}/include/sndio.h:audio/sndio |
142 |
LIB_DEPENDS+= libsndio.so:audio/sndio |
143 |
.endif |
144 |
|
145 |
.if ${PORT_OPTIONS:MV4L2} |
146 |
V4L2_DEPEND= ${LOCALBASE}/include/libv4l2.h:multimedia/libv4l |
147 |
.endif |
148 |
|
149 |
.if ${PORT_OPTIONS:MVPX} |
150 |
VPX_DEPEND= ${LOCALBASE}/include/vpx/vp8.h:multimedia/libvpx |
151 |
.endif |
95 |
|
152 |
|
96 |
.if ${PORT_OPTIONS:MX11} |
153 |
.if ${PORT_OPTIONS:MX11} |
97 |
USES+= xorg |
154 |
USES+= xorg |
98 |
USE_XORG= x11 |
155 |
USE_XORG= x11 |
|
|
156 |
USE_XORG+= xext |
99 |
.endif |
157 |
.endif |
100 |
|
158 |
|
101 |
.for o in ${PORT_OPTIONS} |
159 |
.for o in ${PORT_OPTIONS} |