summaryrefslogtreecommitdiff
path: root/net-misc/janus-gateway/janus-gateway-0.11.6.ebuild
blob: 754f5df8449cd037fc8daf46a257c1afd5622c38 (plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
EAPI=7
 
inherit autotools
 
# this is not a general Janus ebuild, I'm only setting up the bits
# needed by nextcloud-spreed-signaling
 
DESCRIPTION="open source, general purpose, WebRTC server"
HOMEPAGE="https://janus.conf.meetecho.com/"
SRC_URI="https://github.com/meetecho/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
 
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
 
DEPEND="dev-libs/jansson
dev-libs/libconfig
>=net-libs/libnice-0.1.16
>=dev-libs/openssl-1.0.1e
net-libs/libsrtp:2[openssl]
net-libs/usrsctp
net-libs/libwebsockets[ssl]
net-misc/curl
media-libs/opus
media-libs/libogg
 
dev-libs/glib
sys-libs/zlib
dev-util/gengetopt
virtual/pkgconfig
"
 
src_prepare() {
default
eautoreconf
}
 
src_configure() {
econf \
--enable-libsrtp2 \
--enable-aes-gcm \
--enable-turn-rest-api \
--enable-json-logger \
\
--enable-unix-sockets \
--enable-websockets-event-handler \
--disable-rest \
--disable-rabbitmq \
--disable-rabbitmq-event-handler \
--disable-mqtt \
--disable-mqtt-event-handler \
--disable-nanomsg \
--disable-nanomsg-event-handler \
--enable-data-channels \
\
--enable-plugin-audiobridge \
--enable-plugin-duktape \
--enable-plugin-echotest \
--disable-plugin-lua \
--enable-plugin-recordplay \
--disable-plugin-sip \
--enable-plugin-streaming \
--enable-plugin-textroom \
--enable-plugin-videocall \
--enable-plugin-videoroom \
--enable-plugin-voicemail \
\
--disable-boringssl \
--disable-systemd-sockets \
--disable-docs
}
 
src_compile() {
default
}
 
src_install() {
emake DESTDIR="${D}" configs
default
}