7ea01e10ee
Currently janus-gateway's voicemail plugin is only built if libogg is selected, and even then there is no way to disable the plugin from being built. This causes a example config file to be placed on the target filing system that the user may not need or want, creates a 33K .so file on the target directory, and janus will also generate a warning when ran if the plugin does not have a matching configuration file setup by the user, as it will not use the example config file by default. This patch makes the voicemail plugin optional, removes the check for libogg, adds libogg as a dependency to the voicemail plugin, and selects the libogg package automatically when the user selects the plugin. Signed-off-by: Adam Duskett <aduskett@codeblue.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
97 lines
2.6 KiB
Makefile
97 lines
2.6 KiB
Makefile
################################################################################
|
|
#
|
|
# janus-gateway
|
|
#
|
|
################################################################################
|
|
|
|
JANUS_GATEWAY_VERSION = v0.2.1
|
|
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 jansson libnice \
|
|
libsrtp host-gengetopt libglib2 openssl
|
|
|
|
# Straight out of the repository, no ./configure, and we also patch
|
|
# configure.ac.
|
|
JANUS_GATEWAY_AUTORECONF = YES
|
|
|
|
define JANUS_GATEWAY_M4
|
|
mkdir -p $(@D)/m4
|
|
endef
|
|
JANUS_GATEWAY_POST_PATCH_HOOKS += JANUS_GATEWAY_M4
|
|
|
|
JANUS_GATEWAY_CONF_OPTS = \
|
|
--disable-data-channels \
|
|
--disable-rabbitmq
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_AUDIO_BRIDGE),y)
|
|
JANUS_GATEWAY_DEPENDENCIES += opus
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-audiobridge
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-audiobridge
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_ECHO_TEST),y)
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-echotest
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-echotest
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_RECORDPLAY),y)
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-recordplay
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-recordplay
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_SIP_GATEWAY),y)
|
|
JANUS_GATEWAY_DEPENDENCIES += sofia-sip
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-sip
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-sip
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_STREAMING),y)
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-streaming
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-streaming
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_TEXT_ROOM),y)
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-textroom
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-textroom
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_VIDEO_CALL),y)
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-videocall
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-videocall
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_VIDEO_ROOM),y)
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-videoroom
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-videoroom
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JANUS_VOICE_MAIL),y)
|
|
JANUS_GATEWAY_DEPENDENCIES += libogg
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-voicemail
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-voicemail
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS),y)
|
|
JANUS_GATEWAY_DEPENDENCIES += libwebsockets
|
|
JANUS_GATEWAY_CONF_OPTS += --enable-websockets
|
|
else
|
|
JANUS_GATEWAY_CONF_OPTS += --disable-websockets
|
|
endif
|
|
|
|
# Parallel build broken
|
|
JANUS_GATEWAY_MAKE = $(MAKE1)
|
|
|
|
$(eval $(autotools-package))
|