All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v11 00/26] package/freeswitch: new package
@ 2016-04-03 14:18 Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 01/26] " Bernd Kuhls
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Hi,

this patch series splits my previous patch into smaller chunks for easier
review as requested by Luca and Thomas. I also removed all options from
Config.in.

Instead of enabling or disabling modules in the upstream modules.conf I
decided to delete that file in the first patch to provide a minimal
build for easier review, please keep in mind that I never did a run-time
test with this minimal version. A lot of modules, desired as a default
set, are added with the second patch - all of them have no external
dependencies. The rest of the patch series consists of modules having
some form of dependency, added module by module for easier review.

Regards, Bernd

v11: bumped to 1.6.7
    - libvpx & libyuv are now part of the freeswitch source code
    - reworked video support using new option
      BR2_PACKAGE_FREESWITCH_VIDEO
    - removed two patches:
      0001-jpeg.patch is not needed anymore since freeswitch does use
      system libyuv
      0003-FS-8736-resolve-Missing-MEMMOVE-macro-in-spandsp-aut.patch
      was applied upstream
v10: addressed various comments (Thomas)
    - fixed _LICENSE
    - fixed linking error for target fs_cli when libuuid is disabled
    - shortened subject of enable_mod* patches
    - fixed subject of patch #0003
    - added patch to remove modcheck.sh from build/Makefile.am instead
      of using _PRE_CONFIGURE_HOOKS
    - re-worded comment for FREESWITCH_BOOTSTRAP
v9: - added comment about bundled 3rd-party libraries (Romain)
    - renamed some POST_PATCH_HOOKS into PRE_CONFIGURE_HOOKS (Romain)
    - replaced autoreconf fix for spandsp (added in v6) with upstream
      commit, removed dependency to host-autoconf-archive
v8: - rebased against branch next
v7: - removed all Kconfig suboptions
    - squashed zrtp patch into main patch
    - updated platform support checks for zrtp and mod_isac
    - renamed zrtp patch to 0002-zrtp.patch and updated it to fix PPC
    - enabled missing modules:
      mod_g723_1, mod_g729, mod_loopback and mod_say_*
v6: - bumped to version 1.6.6
    - fixed autoreconf bug in libs/spandsp/ introduced by version bump
    - added hint for dynamic libs to comment in Config.in (Ricardo)
    - changed dependency from libjpeg to jpeg (Ricardo)
    - fixed -Werror bug using FREESWITCH_CONF_ENV,
      removed 0001-cross_git.patch (Ricardo)
    - re-numbered patches
v5: - bumped to version 1.6.5
    - split patch into smaller chunks (Luca, Thomas)
    - removed most of the options from Config.in
    - added several new modules
    - compilation with uClibc-ng is fixed
v4: - bumped to version 1.6.2
v3: - bumped to version 1.6.0, added hash
    - to compile with uClibc-NG this patch is needed:
      http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?h=1.0&id=5a167e319ca2bee566d330d1c901d76dc53deea7
      http://thread.gmane.org/gmane.comp.lib.uclibc.buildroot/126450/focus=127191
    - removed python module, cross compiling to 32bit on 64bit host is
      broken:
      http://lists.busybox.net/pipermail/buildroot/2011-August/045039.html
    - added reverse dependencies from vlc
    - added comment to 0002-jpeg.patch
v2: - addressed various comments (Thomas)



Bernd Kuhls (26):
  package/freeswitch: new package
  package/freeswitch: enable optional modules
  package/freeswitch: add optional dependency to libuuid
  package/freeswitch: add optional dependency to libedit
  package/freeswitch: enable mod_enum
  package/freeswitch: add optional dependency to libpng
  package/freeswitch: add optional dependency to unixodbc
  package/freeswitch: add optional dependency to freetype
  package/freeswitch: enable mod_yaml
  package/freeswitch: enable mod_lua
  package/freeswitch: enable mod_bv
  package/freeswitch: enable mod_codec2
  package/freeswitch: add optional dependency to libg7221
  package/freeswitch: enable mod_ilbc
  package/freeswitch: enable mod_isac
  package/freeswitch: enable mod_opus
  package/freeswitch: enable mod_portaudio
  package/freeswitch: enable mod_silk
  package/freeswitch: enable mod_sndfile
  package/freeswitch: enable mod_alsa
  package/freeswitch: enable mod_soundtouch
  package/freeswitch: enable mod_xml_rpc
  package/freeswitch: add optional dependency to xz
  package/freeswitch: enable mod_memcache
  package/freeswitch: enable mod_imagick
  package/freeswitch: enable video support

 package/Config.in                                  |   1 +
 package/freeswitch/0001-zrtp.patch                 |  33 +++
 .../0002-Makefile.am-fs_cli-needs-libzrtp.a.patch  |  41 +++
 ...ile.am-modcheck.sh-is-superfluous-when-cr.patch |  26 ++
 package/freeswitch/Config.in                       |  42 +++
 package/freeswitch/freeswitch.hash                 |   2 +
 package/freeswitch/freeswitch.mk                   | 306 +++++++++++++++++++++
 7 files changed, 451 insertions(+)
 create mode 100644 package/freeswitch/0001-zrtp.patch
 create mode 100644 package/freeswitch/0002-Makefile.am-fs_cli-needs-libzrtp.a.patch
 create mode 100644 package/freeswitch/0003-build-Makefile.am-modcheck.sh-is-superfluous-when-cr.patch
 create mode 100644 package/freeswitch/Config.in
 create mode 100644 package/freeswitch/freeswitch.hash
 create mode 100644 package/freeswitch/freeswitch.mk

-- 
2.8.0.rc3

^ permalink raw reply	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 01/26] package/freeswitch: new package
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 02/26] package/freeswitch: enable optional modules Bernd Kuhls
                   ` (24 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

This commit adds freeswitch without any configured modules and with a
minimal set of non-optional dependencies. All other dependencies and
modules will be added by further patches in this series.

PLease note that freeswitch source repo bundles some libraries which are
also available as buildroot packages. The freeswitch build system does
not allow to use system libraries in these cases:

apr, apr-util, libsrtp, libvpx, libyuv, sofia-sip, tiff

The reason are patches to these packages by the freeswitch project which
are not yet upstream. There is an open JIRA report for this situation:
https://freeswitch.org/jira/si/jira.issueviews:issue-html/FS-353/FS-353.html

More historic infos can be found here:
http://article.gmane.org/gmane.comp.telephony.freeswitch.devel/2715
https://freeswitch.org/the-missing-link/

In the 1.6.7 version bump libvpx & libyuv were also moved in-tree:
https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/febe0f8dacea2d2a31902b3dc469be757f8c3c4d
https://freeswitch.org/stash/projects/FS/repos/freeswitch/commits/44da905b4f6b3b35e94b4948fb70dec7b5071ded

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/Config.in                                  |  1 +
 package/freeswitch/0001-zrtp.patch                 | 33 +++++++++
 .../0002-Makefile.am-fs_cli-needs-libzrtp.a.patch  | 41 +++++++++++
 ...ile.am-modcheck.sh-is-superfluous-when-cr.patch | 26 +++++++
 package/freeswitch/Config.in                       | 24 +++++++
 package/freeswitch/freeswitch.hash                 |  2 +
 package/freeswitch/freeswitch.mk                   | 81 ++++++++++++++++++++++
 7 files changed, 208 insertions(+)
 create mode 100644 package/freeswitch/0001-zrtp.patch
 create mode 100644 package/freeswitch/0002-Makefile.am-fs_cli-needs-libzrtp.a.patch
 create mode 100644 package/freeswitch/0003-build-Makefile.am-modcheck.sh-is-superfluous-when-cr.patch
 create mode 100644 package/freeswitch/Config.in
 create mode 100644 package/freeswitch/freeswitch.hash
 create mode 100644 package/freeswitch/freeswitch.mk

diff --git a/package/Config.in b/package/Config.in
index 64822bf..99f7226 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1376,6 +1376,7 @@ endif
 	source "package/fcgiwrap/Config.in"
 	source "package/fmc/Config.in"
 	source "package/fping/Config.in"
+	source "package/freeswitch/Config.in"
 	source "package/gesftpserver/Config.in"
 	source "package/gutenprint/Config.in"
 	source "package/hans/Config.in"
diff --git a/package/freeswitch/0001-zrtp.patch b/package/freeswitch/0001-zrtp.patch
new file mode 100644
index 0000000..c1cdeed
--- /dev/null
+++ b/package/freeswitch/0001-zrtp.patch
@@ -0,0 +1,33 @@
+Fix PowerPC detection (needs __linux__) and add aarch64 support.
+
+Patch sent upstream: https://freeswitch.org/jira/browse/FS-8746
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr freeswitch-1.6.6.org/libs/libzrtp/include/zrtp_config.h freeswitch-1.6.6/libs/libzrtp/include/zrtp_config.h
+--- freeswitch-1.6.6.org/libs/libzrtp/include/zrtp_config.h	2016-01-12 17:32:36.000000000 +0100
++++ freeswitch-1.6.6/libs/libzrtp/include/zrtp_config.h	2016-01-16 14:09:17.830860603 +0100
+@@ -21,7 +21,7 @@
+ #		define ZRTP_PLATFORM ZP_ANDROID
+ #	elif defined(__FreeBSD__)
+ #		define ZRTP_PLATFORM ZP_BSD
+-#	elif defined(linux) || defined(__linux)
++#	elif defined(linux) || defined(__linux__)
+ #		include <linux/version.h>
+ #		define ZRTP_PLATFORM ZP_LINUX
+ #	elif defined(__MACOSX__) || defined (__APPLE__) || defined (__MACH__)
+@@ -88,7 +88,13 @@
+  */
+ #define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
+ 
+-#elif defined(ARM) || defined(_ARM_) || defined(ARMV4) || defined(__arm__)
++#elif defined(__AARCH64EB__)
++/*
++ * aarch64, big endian
++ */
++#define ZRTP_BYTE_ORDER ZBO_BIG_ENDIAN
++
++#elif defined(ARM) || defined(_ARM_) || defined(ARMV4) || defined(__arm__) || defined(__AARCH64EL__)
+ /*
+  * ARM, default to little endian
+  */
diff --git a/package/freeswitch/0002-Makefile.am-fs_cli-needs-libzrtp.a.patch b/package/freeswitch/0002-Makefile.am-fs_cli-needs-libzrtp.a.patch
new file mode 100644
index 0000000..630e02f
--- /dev/null
+++ b/package/freeswitch/0002-Makefile.am-fs_cli-needs-libzrtp.a.patch
@@ -0,0 +1,41 @@
+From 2e53d91ac18f34dd08227c2940d1525da5c6dbd2 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Tue, 1 Mar 2016 21:38:51 +0100
+Subject: [PATCH 1/1] Makefile.am: fs_cli needs libzrtp.a
+
+Compiling freeswitch sometimes shows a strange linking error:
+
+libs/libzrtp/third_party/bnlib/libbn.a(lbnmem.o): In function `lbnMemWipe':
+/home/bernd/buildroot/br7_freeswitch/output/build/freeswitch-1.6.6/libs/libzrtp/third_party/bnlib/lbnmem.c:69: undefined reference to `zrtp_memset'
+libs/libzrtp/third_party/bnlib/libbn.a(lbnmem.o): In function `lbnMemAlloc':
+/home/bernd/buildroot/br7_freeswitch/output/build/freeswitch-1.6.6/libs/libzrtp/third_party/bnlib/lbnmem.c:78: undefined reference to `zrtp_sys_alloc'
+libs/libzrtp/third_party/bnlib/libbn.a(lbnmem.o): In function `lbnMemFree':
+/home/bernd/buildroot/br7_freeswitch/output/build/freeswitch-1.6.6/libs/libzrtp/third_party/bnlib/lbnmem.c:87: undefined reference to `zrtp_sys_free'
+
+Adding libuuid as dependency fixes the problem although there is no
+connection between libzrtp and libuuid.
+
+Apparently bnlib depends on three symbols from libzrtp. Adding libzrtp.a
+to LIBS adds it to the linking command of fs_cli which fixes the bug.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 60746db..2e474fb 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -238,7 +238,7 @@ ZRTP_LIBS = -lbn -lzrtp
+ libfreeswitch_la_LDFLAGS += $(ZRTP_LDFLAGS)
+ libfreeswitch_la_LIBADD += $(ZRTP_LIBS)
+ CORE_LIBS += libs/libzrtp/libzrtp.a
+-LIBS += libs/libzrtp/third_party/bnlib/libbn.a
++LIBS += libs/libzrtp/third_party/bnlib/libbn.a libs/libzrtp/libzrtp.a
+ endif
+ 
+ library_includedir      = $(includedir)
+-- 
+2.7.0
+
diff --git a/package/freeswitch/0003-build-Makefile.am-modcheck.sh-is-superfluous-when-cr.patch b/package/freeswitch/0003-build-Makefile.am-modcheck.sh-is-superfluous-when-cr.patch
new file mode 100644
index 0000000..eb0a8fc
--- /dev/null
+++ b/package/freeswitch/0003-build-Makefile.am-modcheck.sh-is-superfluous-when-cr.patch
@@ -0,0 +1,26 @@
+From d39fa44865110dd6d8ebe914f6fc1f0fa5caf14e Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Tue, 1 Mar 2016 22:14:55 +0100
+Subject: [PATCH 1/1] build/Makefile.am: modcheck.sh is not needed when
+ cross-compiling
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+---
+ build/Makefile.am | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/build/Makefile.am b/build/Makefile.am
+index 61ac412..9baa306 100644
+--- a/build/Makefile.am
++++ b/build/Makefile.am
+@@ -71,7 +71,6 @@ install:
+ 	@echo " +                                                 +"
+ 	@echo " +-------------------------------------------------+"
+ 	@cat $(switch_srcdir)/cluecon2.tmpl
+-	@sh $(switch_srcdir)/build/modcheck.sh $(modulesdir)
+ 
+ .PHONY: check dvi html info install-data \
+         install-dvi install-exec install-html install-info install-pdf install-ps installcheck installdirs pdf \
+-- 
+2.7.0
+
diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in
new file mode 100644
index 0000000..b52d469
--- /dev/null
+++ b/package/freeswitch/Config.in
@@ -0,0 +1,24 @@
+config BR2_PACKAGE_FREESWITCH
+	bool "freeswitch"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_MMU # apr, included in freeswitch source
+	depends on !BR2_STATIC_LIBS # apr, included in freeswitch source
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_JPEG
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_PCRE
+	select BR2_PACKAGE_SPEEX
+	select BR2_PACKAGE_SQLITE
+	select BR2_PACKAGE_ZLIB
+	help
+	  FreeSWITCH is a scalable open source cross-platform telephony
+	  platform designed to route and interconnect popular communication
+	  protocols using audio, video, text or any other form of media.
+
+	  https://www.freeswitch.org
+
+comment "freeswitch needs a toolchain w/ C++, dynamic library, threads"
+	depends on BR2_USE_MMU
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
+		|| BR2_STATIC_LIBS
diff --git a/package/freeswitch/freeswitch.hash b/package/freeswitch/freeswitch.hash
new file mode 100644
index 0000000..31915cd
--- /dev/null
+++ b/package/freeswitch/freeswitch.hash
@@ -0,0 +1,2 @@
+# From http://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.7.tar.xz.sha256
+sha256	9c7ca2d39985fdc39659054179465540e926880f032f855c0df74d6eec41a794	freeswitch-1.6.7.tar.xz
diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
new file mode 100644
index 0000000..eeb6ca2
--- /dev/null
+++ b/package/freeswitch/freeswitch.mk
@@ -0,0 +1,81 @@
+################################################################################
+#
+# freeswitch
+#
+################################################################################
+
+FREESWITCH_VERSION = 1.6.7
+FREESWITCH_SOURCE = freeswitch-$(FREESWITCH_VERSION).tar.xz
+FREESWITCH_SITE = http://files.freeswitch.org/freeswitch-releases
+FREESWITCH_LICENSE = MPLv1.1
+FREESWITCH_LICENSE_FILES = COPYING
+
+# required dependencies
+FREESWITCH_DEPENDENCIES = \
+	host-autoconf host-automake host-libtool host-pkgconf jpeg \
+	libcurl openssl pcre speex sqlite zlib
+
+# configure.ac and Makefile.am are patched
+# our autoreconf breaks compilation of libs/apr
+define FREESWITCH_BOOTSTRAP
+	cd $(@D) && $(TARGET_MAKE_ENV) ./rebootstrap.sh
+endef
+FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_BOOTSTRAP
+
+# freeswitch comes with pre-enabled modules, since we want to control
+# the modules ourselves reset the upstream configuration
+define FREESWITCH_RESET_MODULES
+	> $(@D)/modules.conf
+endef
+FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_RESET_MODULES
+
+# we neither need host-perl nor host-php
+FREESWITCH_CONF_ENV += \
+	ac_cv_prog_PERL=false \
+	ac_cv_have_perl=no \
+	ac_cv_prog_PHP=false \
+	ac_cv_have_php=no \
+	ac_cv_prog_PHP_CONFIG=false \
+	ac_cv_have_php_config=no
+
+# copied from freeswitch/configure.ac, line 258+
+FREESWITCH_CONF_ENV += \
+	ac_cv_file__dev_ptmx=yes \
+	ac_cv_va_copy=yes \
+	ac_cv_file__dev_urandom=yes \
+	ac_cv_func_realloc_0_nonnull=yes \
+	ac_cv_func_malloc_0_nonnull=yes \
+	ac_cv_func_setpgrp_void=yes \
+	ac_cv_file__dev_zero=yes \
+	apr_cv_tcp_nodelay_with_cork=yes \
+	ac_cv_file_dbd_apr_dbd_mysql_c=no \
+	ac_cv_sizeof_ssize_t=4 \
+	apr_cv_mutex_recursive=yes \
+	ac_cv_func_pthread_rwlock_init=yes \
+	apr_cv_type_rwlock_t=yes \
+	apr_cv_process_shared_works=yes \
+	apr_cv_mutex_robust_shared=yes
+
+# build breaks with -Werror enabled
+FREESWITCH_CONF_ENV += \
+	ac_cv_gcc_supports_w_no_unused_result=no
+
+FREESWITCH_CONF_OPTS = \
+	--disable-core-libedit-support \
+	--disable-core-odbc-support \
+	--disable-libvpx \
+	--disable-libyuv \
+	--without-erlang \
+	--enable-fhs \
+	--without-python \
+	--disable-system-xmlrpc-c
+
+# zrtp supports a limited set of archs, sparc support is also broken due
+# to a broken ld call by gcc, see libs/libzrtp/include/zrtp_config.h
+ifeq ($(BR2_i386)$(BR2_arm)$(BR2_armeb)$(BR2_aarch64)$(BR2_aarch64_be)$(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el)$(BR2_powerpc)$(BR2_powerpc64)$(BR2_powerpcle)$(BR2_x86_64),y)
+FREESWITCH_CONF_OPTS += --enable-zrtp
+else
+FREESWITCH_CONF_OPTS += --disable-zrtp
+endif
+
+$(eval $(autotools-package))
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 02/26] package/freeswitch: enable optional modules
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 01/26] " Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 03/26] package/freeswitch: add optional dependency to libuuid Bernd Kuhls
                   ` (23 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

All these modules have no external dependencies.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 76 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index eeb6ca2..33900d4 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -78,4 +78,80 @@ else
 FREESWITCH_CONF_OPTS += --disable-zrtp
 endif
 
+# Enable more optional modules
+FREESWITCH_ENABLED_MODULES += \
+	applications/mod_avmd \
+	applications/mod_blacklist \
+	applications/mod_callcenter \
+	applications/mod_commands \
+	applications/mod_conference \
+	applications/mod_curl \
+	applications/mod_db \
+	applications/mod_directory \
+	applications/mod_dptools \
+	applications/mod_easyroute \
+	applications/mod_esf \
+	applications/mod_esl \
+	applications/mod_expr \
+	applications/mod_fifo \
+	applications/mod_fsk \
+	applications/mod_hash \
+	applications/mod_httapi \
+	applications/mod_lcr \
+	applications/mod_sms \
+	applications/mod_snom \
+	applications/mod_spandsp \
+	applications/mod_spy \
+	applications/mod_valet_parking \
+	applications/mod_voicemail \
+	codecs/mod_g723_1 \
+	codecs/mod_g729 \
+	dialplans/mod_dialplan_asterisk \
+	dialplans/mod_dialplan_xml \
+	endpoints/mod_loopback \
+	endpoints/mod_rtc \
+	endpoints/mod_rtmp \
+	endpoints/mod_sofia \
+	endpoints/mod_verto \
+	event_handlers/mod_cdr_csv \
+	event_handlers/mod_cdr_sqlite \
+	event_handlers/mod_event_socket \
+	formats/mod_local_stream \
+	formats/mod_native_file \
+	formats/mod_tone_stream \
+	loggers/mod_console \
+	loggers/mod_logfile \
+	loggers/mod_syslog \
+	say/mod_say_de \
+	say/mod_say_en \
+	say/mod_say_es \
+	say/mod_say_es_ar \
+	say/mod_say_fa \
+	say/mod_say_fr \
+	say/mod_say_he \
+	say/mod_say_hr \
+	say/mod_say_hu \
+	say/mod_say_it \
+	say/mod_say_ja \
+	say/mod_say_nl \
+	say/mod_say_pl \
+	say/mod_say_pt \
+	say/mod_say_ru \
+	say/mod_say_sv \
+	say/mod_say_th \
+	say/mod_say_zh \
+	xml_int/mod_xml_cdr \
+	xml_int/mod_xml_scgi
+
+define FREESWITCH_ENABLE_MODULE # (option, file)
+	echo '$(1)' >> $(2)
+endef
+
+define FREESWITCH_ENABLE_MODULES
+	$(foreach mod,$(FREESWITCH_ENABLED_MODULES),\
+		$(call FREESWITCH_ENABLE_MODULE,$(mod),$(@D)/modules.conf)$(sep))
+endef
+
+FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
+
 $(eval $(autotools-package))
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 03/26] package/freeswitch: add optional dependency to libuuid
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 01/26] " Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 02/26] package/freeswitch: enable optional modules Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 04/26] package/freeswitch: add optional dependency to libedit Bernd Kuhls
                   ` (22 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/Config.in     | 4 ++++
 package/freeswitch/freeswitch.mk | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in
index b52d469..a641008 100644
--- a/package/freeswitch/Config.in
+++ b/package/freeswitch/Config.in
@@ -10,6 +10,10 @@ config BR2_PACKAGE_FREESWITCH
 	select BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_SPEEX
 	select BR2_PACKAGE_SQLITE
+	# "libuuid development package highly recommended!"
+	# https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/build/config/uuid.m4#9
+	select BR2_PACKAGE_UTIL_LINUX if BR2_USE_WCHAR
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID if BR2_USE_WCHAR
 	select BR2_PACKAGE_ZLIB
 	help
 	  FreeSWITCH is a scalable open source cross-platform telephony
diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 33900d4..3ad1890 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -154,4 +154,8 @@ endef
 
 FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
 
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
+FREESWITCH_DEPENDENCIES += util-linux
+endif
+
 $(eval $(autotools-package))
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 04/26] package/freeswitch: add optional dependency to libedit
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (2 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 03/26] package/freeswitch: add optional dependency to libuuid Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 05/26] package/freeswitch: enable mod_enum Bernd Kuhls
                   ` (21 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 3ad1890..bda5d28 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -61,7 +61,6 @@ FREESWITCH_CONF_ENV += \
 	ac_cv_gcc_supports_w_no_unused_result=no
 
 FREESWITCH_CONF_OPTS = \
-	--disable-core-libedit-support \
 	--disable-core-odbc-support \
 	--disable-libvpx \
 	--disable-libyuv \
@@ -154,6 +153,13 @@ endef
 
 FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
 
+ifeq ($(BR2_PACKAGE_LIBEDIT),y)
+FREESWITCH_DEPENDENCIES += libedit
+FREESWITCH_CONF_OPTS += --enable-core-libedit-support
+else
+FREESWITCH_CONF_OPTS += --disable-core-libedit-support
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 FREESWITCH_DEPENDENCIES += util-linux
 endif
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 05/26] package/freeswitch: enable mod_enum
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (3 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 04/26] package/freeswitch: add optional dependency to libedit Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 06/26] package/freeswitch: add optional dependency to libpng Bernd Kuhls
                   ` (20 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index bda5d28..d403ded 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -160,6 +160,11 @@ else
 FREESWITCH_CONF_OPTS += --disable-core-libedit-support
 endif
 
+ifeq ($(BR2_PACKAGE_LIBLDNS),y)
+FREESWITCH_DEPENDENCIES += libldns
+FREESWITCH_ENABLED_MODULES += applications/mod_enum
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 FREESWITCH_DEPENDENCIES += util-linux
 endif
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 06/26] package/freeswitch: add optional dependency to libpng
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (4 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 05/26] package/freeswitch: enable mod_enum Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 07/26] package/freeswitch: add optional dependency to unixodbc Bernd Kuhls
                   ` (19 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index d403ded..34fc6d4 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -165,6 +165,11 @@ FREESWITCH_DEPENDENCIES += libldns
 FREESWITCH_ENABLED_MODULES += applications/mod_enum
 endif
 
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+FREESWITCH_DEPENDENCIES += libpng
+FREESWITCH_ENABLED_MODULES += formats/mod_png
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 FREESWITCH_DEPENDENCIES += util-linux
 endif
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 07/26] package/freeswitch: add optional dependency to unixodbc
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (5 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 06/26] package/freeswitch: add optional dependency to libpng Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 08/26] package/freeswitch: add optional dependency to freetype Bernd Kuhls
                   ` (18 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 34fc6d4..00bac94 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -61,7 +61,6 @@ FREESWITCH_CONF_ENV += \
 	ac_cv_gcc_supports_w_no_unused_result=no
 
 FREESWITCH_CONF_OPTS = \
-	--disable-core-odbc-support \
 	--disable-libvpx \
 	--disable-libyuv \
 	--without-erlang \
@@ -170,6 +169,15 @@ FREESWITCH_DEPENDENCIES += libpng
 FREESWITCH_ENABLED_MODULES += formats/mod_png
 endif
 
+ifeq ($(BR2_PACKAGE_UNIXODBC),y)
+FREESWITCH_DEPENDENCIES += unixodbc
+FREESWITCH_CONF_OPTS += \
+	--enable-core-odbc-support \
+	--with-odbc=$(STAGING_DIR)/usr
+else
+FREESWITCH_CONF_OPTS += --disable-core-odbc-support
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 FREESWITCH_DEPENDENCIES += util-linux
 endif
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 08/26] package/freeswitch: add optional dependency to freetype
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (6 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 07/26] package/freeswitch: add optional dependency to unixodbc Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 09/26] package/freeswitch: enable mod_yaml Bernd Kuhls
                   ` (17 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 00bac94..caeade4 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -152,6 +152,10 @@ endef
 
 FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
 
+ifeq ($(BR2_PACKAGE_FREETYPE),y)
+FREESWITCH_DEPENDENCIES += freetype
+endif
+
 ifeq ($(BR2_PACKAGE_LIBEDIT),y)
 FREESWITCH_DEPENDENCIES += libedit
 FREESWITCH_CONF_OPTS += --enable-core-libedit-support
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 09/26] package/freeswitch: enable mod_yaml
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (7 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 08/26] package/freeswitch: add optional dependency to freetype Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 10/26] package/freeswitch: enable mod_lua Bernd Kuhls
                   ` (16 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index caeade4..17d8490 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -173,6 +173,11 @@ FREESWITCH_DEPENDENCIES += libpng
 FREESWITCH_ENABLED_MODULES += formats/mod_png
 endif
 
+ifeq ($(BR2_PACKAGE_LIBYAML),y)
+FREESWITCH_DEPENDENCIES += libyaml
+FREESWITCH_ENABLED_MODULES += languages/mod_yaml
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 10/26] package/freeswitch: enable mod_lua
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (8 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 09/26] package/freeswitch: enable mod_yaml Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 11/26] package/freeswitch: enable mod_bv Bernd Kuhls
                   ` (15 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 17d8490..74ec7ea 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -178,6 +178,11 @@ FREESWITCH_DEPENDENCIES += libyaml
 FREESWITCH_ENABLED_MODULES += languages/mod_yaml
 endif
 
+ifeq ($(BR2_PACKAGE_LUA),y)
+FREESWITCH_DEPENDENCIES += lua
+FREESWITCH_ENABLED_MODULES += languages/mod_lua
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 11/26] package/freeswitch: enable mod_bv
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (9 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 10/26] package/freeswitch: enable mod_lua Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 12/26] package/freeswitch: enable mod_codec2 Bernd Kuhls
                   ` (14 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 74ec7ea..a705321 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -156,6 +156,11 @@ ifeq ($(BR2_PACKAGE_FREETYPE),y)
 FREESWITCH_DEPENDENCIES += freetype
 endif
 
+ifeq ($(BR2_PACKAGE_LIBBROADVOICE),y)
+FREESWITCH_DEPENDENCIES += libbroadvoice
+FREESWITCH_ENABLED_MODULES += codecs/mod_bv
+endif
+
 ifeq ($(BR2_PACKAGE_LIBEDIT),y)
 FREESWITCH_DEPENDENCIES += libedit
 FREESWITCH_CONF_OPTS += --enable-core-libedit-support
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 12/26] package/freeswitch: enable mod_codec2
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (10 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 11/26] package/freeswitch: enable mod_bv Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 13/26] package/freeswitch: add optional dependency to libg7221 Bernd Kuhls
                   ` (13 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index a705321..e42bfd2 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -161,6 +161,11 @@ FREESWITCH_DEPENDENCIES += libbroadvoice
 FREESWITCH_ENABLED_MODULES += codecs/mod_bv
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCODEC2),y)
+FREESWITCH_DEPENDENCIES += libcodec2
+FREESWITCH_ENABLED_MODULES += codecs/mod_codec2
+endif
+
 ifeq ($(BR2_PACKAGE_LIBEDIT),y)
 FREESWITCH_DEPENDENCIES += libedit
 FREESWITCH_CONF_OPTS += --enable-core-libedit-support
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 13/26] package/freeswitch: add optional dependency to libg7221
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (11 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 12/26] package/freeswitch: enable mod_codec2 Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 14/26] package/freeswitch: enable mod_ilbc Bernd Kuhls
                   ` (12 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index e42bfd2..cd723e0 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -173,6 +173,10 @@ else
 FREESWITCH_CONF_OPTS += --disable-core-libedit-support
 endif
 
+ifeq ($(BR2_PACKAGE_LIBG7221),y)
+FREESWITCH_DEPENDENCIES += libg7221
+endif
+
 ifeq ($(BR2_PACKAGE_LIBLDNS),y)
 FREESWITCH_DEPENDENCIES += libldns
 FREESWITCH_ENABLED_MODULES += applications/mod_enum
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 14/26] package/freeswitch: enable mod_ilbc
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (12 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 13/26] package/freeswitch: add optional dependency to libg7221 Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 15/26] package/freeswitch: enable mod_isac Bernd Kuhls
                   ` (11 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index cd723e0..438eeaf 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -177,6 +177,11 @@ ifeq ($(BR2_PACKAGE_LIBG7221),y)
 FREESWITCH_DEPENDENCIES += libg7221
 endif
 
+ifeq ($(BR2_PACKAGE_LIBILBC),y)
+FREESWITCH_DEPENDENCIES += libilbc
+FREESWITCH_ENABLED_MODULES += codecs/mod_ilbc
+endif
+
 ifeq ($(BR2_PACKAGE_LIBLDNS),y)
 FREESWITCH_DEPENDENCIES += libldns
 FREESWITCH_ENABLED_MODULES += applications/mod_enum
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 15/26] package/freeswitch: enable mod_isac
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (13 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 14/26] package/freeswitch: enable mod_ilbc Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 16/26] package/freeswitch: enable mod_opus Bernd Kuhls
                   ` (10 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 438eeaf..dee1bf5 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -152,6 +152,12 @@ endef
 
 FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
 
+# mod_isac supports a limited set of archs
+# src/mod/codecs/mod_isac/typedefs.h
+ifeq ($(BR2_i386)$(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el)$(BR2_x86_64),y)
+FREESWITCH_ENABLED_MODULES += codecs/mod_isac
+endif
+
 ifeq ($(BR2_PACKAGE_FREETYPE),y)
 FREESWITCH_DEPENDENCIES += freetype
 endif
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 16/26] package/freeswitch: enable mod_opus
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (14 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 15/26] package/freeswitch: enable mod_isac Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 17/26] package/freeswitch: enable mod_portaudio Bernd Kuhls
                   ` (9 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index dee1bf5..8059262 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -208,6 +208,11 @@ FREESWITCH_DEPENDENCIES += lua
 FREESWITCH_ENABLED_MODULES += languages/mod_lua
 endif
 
+ifeq ($(BR2_PACKAGE_OPUS),y)
+FREESWITCH_DEPENDENCIES += opus
+FREESWITCH_ENABLED_MODULES += codecs/mod_opus
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 17/26] package/freeswitch: enable mod_portaudio
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (15 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 16/26] package/freeswitch: enable mod_opus Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 18/26] package/freeswitch: enable mod_silk Bernd Kuhls
                   ` (8 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 8059262..2dcf565 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -213,6 +213,11 @@ FREESWITCH_DEPENDENCIES += opus
 FREESWITCH_ENABLED_MODULES += codecs/mod_opus
 endif
 
+ifeq ($(BR2_PACKAGE_PORTAUDIO),y)
+FREESWITCH_DEPENDENCIES += portaudio
+FREESWITCH_ENABLED_MODULES += endpoints/mod_portaudio
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 18/26] package/freeswitch: enable mod_silk
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (16 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 17/26] package/freeswitch: enable mod_portaudio Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 19/26] package/freeswitch: enable mod_sndfile Bernd Kuhls
                   ` (7 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 2dcf565..f73f5e5 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -218,6 +218,11 @@ FREESWITCH_DEPENDENCIES += portaudio
 FREESWITCH_ENABLED_MODULES += endpoints/mod_portaudio
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSILK),y)
+FREESWITCH_DEPENDENCIES += libsilk
+FREESWITCH_ENABLED_MODULES += codecs/mod_silk
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 19/26] package/freeswitch: enable mod_sndfile
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (17 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 18/26] package/freeswitch: enable mod_silk Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 20/26] package/freeswitch: enable mod_alsa Bernd Kuhls
                   ` (6 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index f73f5e5..636dd0e 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -223,6 +223,11 @@ FREESWITCH_DEPENDENCIES += libsilk
 FREESWITCH_ENABLED_MODULES += codecs/mod_silk
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
+FREESWITCH_DEPENDENCIES += libsndfile
+FREESWITCH_ENABLED_MODULES += formats/mod_sndfile
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 20/26] package/freeswitch: enable mod_alsa
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (18 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 19/26] package/freeswitch: enable mod_sndfile Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 21/26] package/freeswitch: enable mod_soundtouch Bernd Kuhls
                   ` (5 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 636dd0e..2bc3d87 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -158,6 +158,11 @@ ifeq ($(BR2_i386)$(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el)$(BR2_x86_6
 FREESWITCH_ENABLED_MODULES += codecs/mod_isac
 endif
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+FREESWITCH_DEPENDENCIES += alsa-lib
+FREESWITCH_ENABLED_MODULES += endpoints/mod_alsa
+endif
+
 ifeq ($(BR2_PACKAGE_FREETYPE),y)
 FREESWITCH_DEPENDENCIES += freetype
 endif
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 21/26] package/freeswitch: enable mod_soundtouch
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (19 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 20/26] package/freeswitch: enable mod_alsa Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 22/26] package/freeswitch: enable mod_xml_rpc Bernd Kuhls
                   ` (4 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 2bc3d87..497fbd7 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -233,6 +233,11 @@ FREESWITCH_DEPENDENCIES += libsndfile
 FREESWITCH_ENABLED_MODULES += formats/mod_sndfile
 endif
 
+ifeq ($(BR2_PACKAGE_LIBSOUNDTOUCH),y)
+FREESWITCH_DEPENDENCIES += libsoundtouch
+FREESWITCH_ENABLED_MODULES += applications/mod_soundtouch
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 22/26] package/freeswitch: enable mod_xml_rpc
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (20 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 21/26] package/freeswitch: enable mod_soundtouch Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 23/26] package/freeswitch: add optional dependency to xz Bernd Kuhls
                   ` (3 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 497fbd7..e638a0e 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -158,6 +158,10 @@ ifeq ($(BR2_i386)$(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el)$(BR2_x86_6
 FREESWITCH_ENABLED_MODULES += codecs/mod_isac
 endif
 
+ifeq ($(BR2_USE_WCHAR),y)
+FREESWITCH_ENABLED_MODULES += xml_int/mod_xml_rpc
+endif
+
 ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
 FREESWITCH_DEPENDENCIES += alsa-lib
 FREESWITCH_ENABLED_MODULES += endpoints/mod_alsa
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 23/26] package/freeswitch: add optional dependency to xz
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (21 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 22/26] package/freeswitch: enable mod_xml_rpc Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 24/26] package/freeswitch: enable mod_memcache Bernd Kuhls
                   ` (2 subsequent siblings)
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index e638a0e..e033d9a 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -255,4 +255,8 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
 FREESWITCH_DEPENDENCIES += util-linux
 endif
 
+ifeq ($(BR2_PACKAGE_XZ),y)
+FREESWITCH_DEPENDENCIES += xz
+endif
+
 $(eval $(autotools-package))
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 24/26] package/freeswitch: enable mod_memcache
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (22 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 23/26] package/freeswitch: add optional dependency to xz Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 25/26] package/freeswitch: enable mod_imagick Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 26/26] package/freeswitch: enable video support Bernd Kuhls
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index e033d9a..4a099a0 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -202,6 +202,11 @@ FREESWITCH_DEPENDENCIES += libldns
 FREESWITCH_ENABLED_MODULES += applications/mod_enum
 endif
 
+ifeq ($(BR2_PACKAGE_LIBMEMCACHED),y)
+FREESWITCH_DEPENDENCIES += libmemcached
+FREESWITCH_ENABLED_MODULES += applications/mod_memcache
+endif
+
 ifeq ($(BR2_PACKAGE_LIBPNG),y)
 FREESWITCH_DEPENDENCIES += libpng
 FREESWITCH_ENABLED_MODULES += formats/mod_png
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 25/26] package/freeswitch: enable mod_imagick
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (23 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 24/26] package/freeswitch: enable mod_memcache Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 26/26] package/freeswitch: enable video support Bernd Kuhls
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 4a099a0..38483f9 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -171,6 +171,11 @@ ifeq ($(BR2_PACKAGE_FREETYPE),y)
 FREESWITCH_DEPENDENCIES += freetype
 endif
 
+ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
+FREESWITCH_DEPENDENCIES += imagemagick
+FREESWITCH_ENABLED_MODULES += formats/mod_imagick
+endif
+
 ifeq ($(BR2_PACKAGE_LIBBROADVOICE),y)
 FREESWITCH_DEPENDENCIES += libbroadvoice
 FREESWITCH_ENABLED_MODULES += codecs/mod_bv
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [Buildroot] [PATCH v11 26/26] package/freeswitch: enable video support
  2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
                   ` (24 preceding siblings ...)
  2016-04-03 14:18 ` [Buildroot] [PATCH v11 25/26] package/freeswitch: enable mod_imagick Bernd Kuhls
@ 2016-04-03 14:18 ` Bernd Kuhls
  25 siblings, 0 replies; 27+ messages in thread
From: Bernd Kuhls @ 2016-04-03 14:18 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/freeswitch/Config.in     | 14 ++++++++++++++
 package/freeswitch/freeswitch.mk | 38 ++++++++++++++++++++++++++++++++++++--
 2 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in
index a641008..70e8055 100644
--- a/package/freeswitch/Config.in
+++ b/package/freeswitch/Config.in
@@ -22,6 +22,20 @@ config BR2_PACKAGE_FREESWITCH
 
 	  https://www.freeswitch.org
 
+if BR2_PACKAGE_FREESWITCH
+
+config BR2_PACKAGE_FREESWITCH_VIDEO
+	bool "Video support"
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # libyuv (in-tree)
+	select BR2_PACKAGE_FFMPEG
+	select BR2_PACKAGE_FFMPEG_AVRESAMPLE
+	select BR2_PACKAGE_FFMPEG_SWSCALE
+
+comment "Video support needs a toolchain w/ gcc >= 4.8"
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+
+endif
+
 comment "freeswitch needs a toolchain w/ C++, dynamic library, threads"
 	depends on BR2_USE_MMU
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 38483f9..8e74a83 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -61,8 +61,6 @@ FREESWITCH_CONF_ENV += \
 	ac_cv_gcc_supports_w_no_unused_result=no
 
 FREESWITCH_CONF_OPTS = \
-	--disable-libvpx \
-	--disable-libyuv \
 	--without-erlang \
 	--enable-fhs \
 	--without-python \
@@ -269,4 +267,40 @@ ifeq ($(BR2_PACKAGE_XZ),y)
 FREESWITCH_DEPENDENCIES += xz
 endif
 
+ifeq ($(BR2_PACKAGE_FREESWITCH_VIDEO),y)
+FREESWITCH_CONF_OPTS += --enable-libvpx --enable-libyuv
+FREESWITCH_DEPENDENCIES += host-yasm ffmpeg
+FREESWITCH_ENABLED_MODULES += applications/mod_av
+FREESWITCH_ENABLED_MODULES += applications/mod_fsv
+
+# freeswitch uses its own copy of libvpx since 1.6.7
+# the implementation of libvpx into the freeswitch build system is not
+# cross-compile friendly so we compile libvpx ourselves by copying
+# most of packages/libvpx/libvpx.mk here, added by some --disable-
+# options from freeswitch-1.6.7/Makefile.am, line 536
+define FREESWITCH_CROSS_COMPILE_LIBVPX
+	(cd $(@D)/libs/libvpx && \
+	$(TARGET_CONFIGURE_OPTS) \
+	$(TARGET_CONFIGURE_ARGS) \
+	LD="$(TARGET_CC)" \
+	CROSS=$(GNU_TARGET_NAME) \
+	./configure \
+		--target=generic-gnu \
+		--enable-pic \
+		--prefix=/usr \
+		--disable-docs \
+		--disable-examples \
+		--disable-install-bins \
+		--disable-install-srcs \
+		--disable-unit-tests \
+		--extra-cflags="-fvisibility=hidden" \
+        )
+        $(TARGET_MAKE_ENV) $(LIBVPX_MAKE_ENV) $(MAKE) -C $(@D)/libs/libvpx
+endef
+FREESWITCH_POST_CONFIGURE_HOOKS += FREESWITCH_CROSS_COMPILE_LIBVPX
+
+else
+FREESWITCH_CONF_OPTS += --disable-libvpx --disable-libyuv
+endif
+
 $(eval $(autotools-package))
-- 
2.8.0.rc3

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2016-04-03 14:18 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-03 14:18 [Buildroot] [PATCH v11 00/26] package/freeswitch: new package Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 01/26] " Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 02/26] package/freeswitch: enable optional modules Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 03/26] package/freeswitch: add optional dependency to libuuid Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 04/26] package/freeswitch: add optional dependency to libedit Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 05/26] package/freeswitch: enable mod_enum Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 06/26] package/freeswitch: add optional dependency to libpng Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 07/26] package/freeswitch: add optional dependency to unixodbc Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 08/26] package/freeswitch: add optional dependency to freetype Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 09/26] package/freeswitch: enable mod_yaml Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 10/26] package/freeswitch: enable mod_lua Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 11/26] package/freeswitch: enable mod_bv Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 12/26] package/freeswitch: enable mod_codec2 Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 13/26] package/freeswitch: add optional dependency to libg7221 Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 14/26] package/freeswitch: enable mod_ilbc Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 15/26] package/freeswitch: enable mod_isac Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 16/26] package/freeswitch: enable mod_opus Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 17/26] package/freeswitch: enable mod_portaudio Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 18/26] package/freeswitch: enable mod_silk Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 19/26] package/freeswitch: enable mod_sndfile Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 20/26] package/freeswitch: enable mod_alsa Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 21/26] package/freeswitch: enable mod_soundtouch Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 22/26] package/freeswitch: enable mod_xml_rpc Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 23/26] package/freeswitch: add optional dependency to xz Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 24/26] package/freeswitch: enable mod_memcache Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 25/26] package/freeswitch: enable mod_imagick Bernd Kuhls
2016-04-03 14:18 ` [Buildroot] [PATCH v11 26/26] package/freeswitch: enable video support Bernd Kuhls

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.