1 ################################################################################
5 ################################################################################
7 JANUS_GATEWAY_VERSION = v0.2.2
8 JANUS_GATEWAY_SITE = $(call github,meetecho,janus-gateway,$(JANUS_GATEWAY_VERSION))
9 JANUS_GATEWAY_LICENSE = GPL-3.0
10 JANUS_GATEWAY_LICENSE_FILES = COPYING
12 # ding-libs provides the ini_config library
13 JANUS_GATEWAY_DEPENDENCIES = host-pkgconf jansson libnice \
14 libsrtp host-gengetopt libglib2 openssl
16 # Straight out of the repository, no ./configure, and we also patch
18 JANUS_GATEWAY_AUTORECONF = YES
20 define JANUS_GATEWAY_M4
23 JANUS_GATEWAY_POST_PATCH_HOOKS += JANUS_GATEWAY_M4
25 JANUS_GATEWAY_CONF_OPTS = \
26 --disable-data-channels \
28 --disable-sample-event-handler
30 ifeq ($(BR2_PACKAGE_JANUS_AUDIO_BRIDGE),y)
31 JANUS_GATEWAY_DEPENDENCIES += opus
32 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-audiobridge
34 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-audiobridge
37 ifeq ($(BR2_PACKAGE_JANUS_ECHO_TEST),y)
38 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-echotest
40 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-echotest
43 ifeq ($(BR2_PACKAGE_JANUS_RECORDPLAY),y)
44 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-recordplay
46 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-recordplay
49 ifeq ($(BR2_PACKAGE_JANUS_SIP_GATEWAY),y)
50 JANUS_GATEWAY_DEPENDENCIES += sofia-sip
51 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-sip
53 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-sip
56 ifeq ($(BR2_PACKAGE_JANUS_STREAMING),y)
57 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-streaming
59 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-streaming
62 ifeq ($(BR2_PACKAGE_JANUS_TEXT_ROOM),y)
63 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-textroom
65 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-textroom
68 ifeq ($(BR2_PACKAGE_JANUS_VIDEO_CALL),y)
69 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-videocall
71 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-videocall
74 ifeq ($(BR2_PACKAGE_JANUS_VIDEO_ROOM),y)
75 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-videoroom
77 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-videoroom
80 ifeq ($(BR2_PACKAGE_JANUS_VOICE_MAIL),y)
81 JANUS_GATEWAY_DEPENDENCIES += libogg
82 JANUS_GATEWAY_CONF_OPTS += --enable-plugin-voicemail
84 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-voicemail
87 ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS),y)
88 JANUS_GATEWAY_DEPENDENCIES += libwebsockets
89 JANUS_GATEWAY_CONF_OPTS += --enable-websockets
91 JANUS_GATEWAY_CONF_OPTS += --disable-websockets
94 # Parallel build broken
95 JANUS_GATEWAY_MAKE = $(MAKE1)
97 $(eval $(autotools-package))