2014-12-12 16:42:47 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# janus-gateway
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-12-26 22:26:31 +01:00
|
|
|
JANUS_GATEWAY_VERSION = v0.5.0
|
2014-12-12 16:42:47 +01:00
|
|
|
JANUS_GATEWAY_SITE = $(call github,meetecho,janus-gateway,$(JANUS_GATEWAY_VERSION))
|
2017-03-30 15:43:33 +02:00
|
|
|
JANUS_GATEWAY_LICENSE = GPL-3.0
|
2014-12-12 16:42:47 +01:00
|
|
|
JANUS_GATEWAY_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
# ding-libs provides the ini_config library
|
2017-01-25 14:42:36 +01:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES = host-pkgconf jansson libnice \
|
2017-03-22 15:13:03 +01:00
|
|
|
libsrtp host-gengetopt libglib2 openssl
|
2014-12-12 16:42:47 +01:00
|
|
|
|
2015-01-03 15:16:09 +01:00
|
|
|
# Straight out of the repository, no ./configure, and we also patch
|
|
|
|
# configure.ac.
|
2014-12-12 16:42:47 +01:00
|
|
|
JANUS_GATEWAY_AUTORECONF = YES
|
|
|
|
|
|
|
|
define JANUS_GATEWAY_M4
|
2015-12-29 18:10:32 +01:00
|
|
|
mkdir -p $(@D)/m4
|
2014-12-12 16:42:47 +01:00
|
|
|
endef
|
|
|
|
JANUS_GATEWAY_POST_PATCH_HOOKS += JANUS_GATEWAY_M4
|
|
|
|
|
|
|
|
JANUS_GATEWAY_CONF_OPTS = \
|
|
|
|
--disable-data-channels \
|
2017-03-22 15:13:03 +01:00
|
|
|
--disable-sample-event-handler
|
2014-12-12 16:42:47 +01:00
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_AUDIO_BRIDGE),y)
|
2017-01-25 14:42:38 +01:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES += opus
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-audiobridge
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-audiobridge
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_ECHO_TEST),y)
|
2017-01-25 14:42:39 +01:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-echotest
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-echotest
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_RECORDPLAY),y)
|
2017-01-25 14:42:40 +01:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-recordplay
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-recordplay
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_SIP_GATEWAY),y)
|
2017-01-25 14:42:37 +01:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES += sofia-sip
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-sip
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-sip
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_STREAMING),y)
|
2017-01-25 14:42:41 +01:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-streaming
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-streaming
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_TEXT_ROOM),y)
|
2017-01-25 14:42:42 +01:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-textroom
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-textroom
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_VIDEO_CALL),y)
|
2017-01-25 14:42:43 +01:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-videocall
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-videocall
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_VIDEO_ROOM),y)
|
2017-01-25 14:42:44 +01:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-videoroom
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-videoroom
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_VOICE_MAIL),y)
|
2017-01-25 14:42:45 +01:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES += libogg
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-voicemail
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-voicemail
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_MQTT),y)
|
2017-06-15 14:13:12 +02:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES += paho-mqtt-c
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-mqtt
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-mqtt
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_RABBITMQ),y)
|
2017-06-15 14:13:11 +02:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES += rabbitmq-c
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-rabbitmq
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-rabbitmq
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_REST),y)
|
2017-06-15 14:13:09 +02:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES += libmicrohttpd
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-rest
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-rest
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_UNIX_SOCKETS),y)
|
2017-06-15 14:13:13 +02:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-unix-sockets
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-unix-sockets
|
|
|
|
endif
|
|
|
|
|
2018-05-13 21:07:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_WEBSOCKETS),y)
|
2017-06-15 14:13:10 +02:00
|
|
|
JANUS_GATEWAY_DEPENDENCIES += libwebsockets
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-websockets
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-websockets
|
|
|
|
endif
|
|
|
|
|
2014-12-12 16:42:47 +01:00
|
|
|
# Parallel build broken
|
|
|
|
JANUS_GATEWAY_MAKE = $(MAKE1)
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|