2014-12-12 16:42:47 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# janus-gateway
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-06-05 19:52:04 +02:00
|
|
|
JANUS_GATEWAY_VERSION = v0.1.0
|
2014-12-12 16:42:47 +01:00
|
|
|
JANUS_GATEWAY_SITE = $(call github,meetecho,janus-gateway,$(JANUS_GATEWAY_VERSION))
|
|
|
|
JANUS_GATEWAY_LICENSE = GPLv3
|
|
|
|
JANUS_GATEWAY_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
# ding-libs provides the ini_config library
|
|
|
|
JANUS_GATEWAY_DEPENDENCIES = host-pkgconf libmicrohttpd jansson \
|
|
|
|
libnice sofia-sip libsrtp host-gengetopt openssl ding-libs
|
|
|
|
|
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 \
|
|
|
|
--disable-rabbitmq
|
|
|
|
|
2016-06-06 07:21:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS),y)
|
|
|
|
JANUS_GATEWAY_DEPENDENCIES += libwebsockets
|
2014-12-12 16:42:47 +01:00
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-websockets
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-websockets
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPUS),y)
|
|
|
|
JANUS_GATEWAY_DEPENDENCIES += opus
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-audiobridge
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-audiobridge
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBOGG),y)
|
|
|
|
JANUS_GATEWAY_DEPENDENCIES += libogg
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-voicemail
|
|
|
|
else
|
|
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-voicemail
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Parallel build broken
|
|
|
|
JANUS_GATEWAY_MAKE = $(MAKE1)
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|