Skip to contentSkip to conversation

package/freeswitch: new package

PATCH Superseded Bernd Kuhls 3 participants 37 messages Apr 10, 2016 – Apr 14, 2016

v12 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

v12 cover package/freeswitch: new package

Hi,

this patch series splits my previous patch into smaller chunks for easier review as requested by Luca and Thomas.

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

v12: - removed patches 0002 & 0003
- 0002 "fixed" a weird linking error when libuuid was missing, autoreconf was necessary for this but with freeswitch 1.6.7 this breaks build with BR2_COMPILER_PARANOID_UNSAFE_PATH=y Furthermore the linking error did not occur with 1.6.7, so autoreconf was removed as well
- 0003 "fixed" only a cosmetic problem and also needed autoreconf
- added support for mod_cv, mod_shout, openldap and mod_flite
- mod_flite needs a version bump of the flite package, this is included in the patch series
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 (31):
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 mod_cv package/freeswitch: enable mod_shout package/freeswitch: add optional dependency to openldap package/flite: bump version to 2.0.0 package/freeswitch: enable mod_flite package/freeswitch: enable video support

 package/Config.in                                  |   1 +
 ...lsa-static.patch => 0001-fix-alsa-static.patch} |   4 +-
 .../flite/0001-now-honor-DESTDIR-env.-var.patch    |  30 --
 ...eck.patch => 0002-fix-alsa-version-check.patch} |   4 +-
 package/flite/flite.hash                           |   2 -
 package/flite/flite.mk                             |  24 +-
 package/freeswitch/0001-zrtp.patch                 |  33 +++
 package/freeswitch/Config.in                       |  42 +++
 package/freeswitch/freeswitch.hash                 |   2 +
 package/freeswitch/freeswitch.mk                   | 319 +++++++++++++++++++++
 10 files changed, 405 insertions(+), 56 deletions(-)
 rename package/flite/{0002-fix-alsa-static.patch => 0001-fix-alsa-static.patch} (77%)
 delete mode 100644 package/flite/0001-now-honor-DESTDIR-env.-var.patch
 rename package/flite/{0003-fix-alsa-version-check.patch => 0002-fix-alsa-version-check.patch} (90%)
 delete mode 100644 package/flite/flite.hash
 create mode 100644 package/freeswitch/0001-zrtp.patch
 create mode 100644 package/freeswitch/Config.in
 create mode 100644 package/freeswitch/freeswitch.hash
 create mode 100644 package/freeswitch/freeswitch.mk
Signature · 1 line
2.8.0.rc3
#1 lore raw

PATCH v12 1/31 package/freeswitch: new package

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

---
 package/Config.in                  |  1 +
 package/freeswitch/0001-zrtp.patch | 33 +++++++++++++++++
 package/freeswitch/Config.in       | 24 +++++++++++++
 package/freeswitch/freeswitch.hash |  2 ++
 package/freeswitch/freeswitch.mk   | 74 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 134 insertions(+)
 create mode 100644 package/freeswitch/0001-zrtp.patch
 create mode 100644 package/freeswitch/Config.in
 create mode 100644 package/freeswitch/freeswitch.hash
 create mode 100644 package/freeswitch/freeswitch.mk
package/Config.in +1 -0
index 64822bf..99f7226 100644
@@ -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"
package/freeswitch/0001-zrtp.patch new file +33 -0
new file mode 100644
index 0000000..c1cdeed
@@ -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 <[email protected]>
+
+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
+  */
package/freeswitch/Config.in new file +24 -0
new file mode 100644
index 0000000..e8281cb
@@ -0,0 +1,24 @@
+config BR2_PACKAGE_FREESWITCH
+	bool "freeswitch"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on !BR2_STATIC_LIBS # apr, included in freeswitch source
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_USE_MMU # 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_STATIC_LIBS \
+		|| !BR2_TOOLCHAIN_HAS_THREADS
package/freeswitch/freeswitch.hash new file +2 -0
new file mode 100644
index 0000000..31915cd
@@ -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
package/freeswitch/freeswitch.mk new file +74 -0

74 lines not on this page · raw message

Signature · 1 line
2.8.0.rc3
#2 lore raw

PATCH v12 1/31 package/freeswitch: new package

Hello,

Quoted 18 lines · Bernd Kuhls

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/

Quoted 5 lines

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

I'm sorry, but this still doesn't build, with the exact same error I had in my previous test of the freeswitch package:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://autobuild.buildroot.org/toolchains/tarballs/br-arm-full-2016.02-3-g762b7c9.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_4_7=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_3_10=y
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
# BR2_TOOLCHAIN_EXTERNAL_HAS_THREADS_DEBUG is not set
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTERNAL_CXX=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_FREESWITCH=y
# BR2_TARGET_ROOTFS_TAR is not set

gives:

CCLD fs_cli
libs/libzrtp/third_party/bnlib/libbn.a(lbnmem.o): In function `lbnMemWipe':
/home/thomas/projets/buildroot/output/build/freeswitch-1.6.7/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/thomas/projets/buildroot/output/build/freeswitch-1.6.7/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/thomas/projets/buildroot/output/build/freeswitch-1.6.7/libs/libzrtp/third_party/bnlib/lbnmem.c:87: undefined reference to `zrtp_sys_free'
collect2: error: ld returned 1 exit status
Makefile:1259: recipe for target 'fs_cli' failed
make[4]: *** [fs_cli] Error 1
make[4]: *** Waiting for unfinished jobs....

*** Warning: Linking the shared library libfreeswitch.la against the *** static library libs/libzrtp/libzrtp.a is not portable!

*** Warning: Linking the shared library libfreeswitch.la against the
*** static library libs/libzrtp/third_party/bnlib/libbn.a is not portable!
Makefile:2803: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
Makefile:1066: recipe for target 'all' failed
make[2]: *** [all] Error 2
package/pkg-generic.mk:195: recipe for target '/home/thomas/projets/buildroot/output/build/freeswitch-1.6.7/.stamp_built' failed make[1]: *** [/home/thomas/projets/buildroot/output/build/freeswitch-1.6.7/.stamp_built] Error 2 Makefile:36: recipe for target '_all' failed
make: *** [_all] Error 2

Note that I have only PATCH 01/31 applied. If an ARM/uClibc configuration doesn't build, a package is definitely not ready to go. I would be OK to merge a package that doesn't build with musl, or on some weird architectures, but certainly not something that doesn't build on ARM/uClibc.

Could you look into this?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v12 1/31 package/freeswitch: new package

Hi Thomas,

[posted and mailed]

Thomas Petazzoni <[email protected]> wrote in news:20160413230219.73e299ea at free-electrons.com:

Quoted 2 lines

I'm sorry, but this still doesn't build, with the exact same error I had in my previous test of the freeswitch package:

no need for excuses, I also want to make the autobuilders happy ;)

Quoted 3 lines

CCLD fs_cli
libs/libzrtp/third_party/bnlib/libbn.a(lbnmem.o): In function `lbnMemWipe':
/home/thomas/projets/buildroot/output/build/freeswitch-1.6.7/libs/libzrtp/third_party/bnlib/lbnmem.c:69:

undefined reference to `zrtp_memset'

Quoted 2 lines

libs/libzrtp/third_party/bnlib/libbn.a(lbnmem.o): In function `lbnMemAlloc':
/home/thomas/projets/buildroot/output/build/freeswitch-1.6.7/libs/libzrtp/third_party/bnlib/lbnmem.c:78:

undefined reference to `zrtp_sys_alloc'

Quoted 2 lines

libs/libzrtp/third_party/bnlib/libbn.a(lbnmem.o): In function `lbnMemFree':
/home/thomas/projets/buildroot/output/build/freeswitch-1.6.7/libs/libzrtp/third_party/bnlib/lbnmem.c:87:

undefined reference to `zrtp_sys_free'

I had a fix for this problem in freeswitch 1.6.6:
http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/141985

With freeswitch 1.6.7 this fix will not work anymore because after the necessary autoreconf libtool will add STAGING_DIR as rpath when my patch is applied which breaks compilation with BR2_COMPILER_PARANOID_UNSAFE_PATH=y

Therefore v13 of my patch series will move the libuuid patch into the initial package patch and make libuuid and wchar toolchain support mandatory.

Regards, Bernd

#4 lore raw

PATCH v12 1/31 package/freeswitch: new package

In reply to Bernd Kuhls
Quoted 23 lines · Bernd Kuhls

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

[snip]

package/freeswitch/freeswitch.mk line 15

Quoted 3 lines
package/freeswitch/freeswitch.mk new file +3 -0
+# required dependencies
+FREESWITCH_DEPENDENCIES = \
+	host-autoconf host-automake host-libtool host-pkgconf jpeg \

host-autoconf and host-automake? That's surprising when you don't
autoreconf... An explanatory comment would be nice.

package/freeswitch/freeswitch.mk line 16

Quoted 1 line
package/freeswitch/freeswitch.mk new file +1 -0
+	libcurl openssl pcre speex sqlite zlib

I prefer one dependency per line, so it's easier to update the dependencies
while keeping them sorted.

Quoted 46 lines
package/freeswitch/freeswitch.mk new file +46 -0
+
+# 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 \

package/freeswitch/freeswitch.mk line 72

Quoted 10 lines
package/freeswitch/freeswitch.mk new file +10 -0
+	--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

Given the problems with compiling zrtp, perhaps start out without it and add
patch 32 to enable it? :-)

Regards,
Arnout

Quoted 3 lines

+
+$(eval $(autotools-package))

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#5 lore raw

PATCH v12 2/31 package/freeswitch: enable optional modules

In reply to Bernd Kuhls

All these modules have no external dependencies.

---
 package/freeswitch/freeswitch.mk | 76 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
package/freeswitch/freeswitch.mk +76 -0
index 69a7ee2..f1903c1 100644
@@ -71,4 +71,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))
Signature · 1 line
2.8.0.rc3
#6 lore raw

PATCH v12 2/31 package/freeswitch: enable optional modules

Quoted 11 lines · Bernd Kuhls

All these modules have no external dependencies.

---
  package/freeswitch/freeswitch.mk | 76 ++++++++++++++++++++++++++++++++++++++++
  1 file changed, 76 insertions(+)
package/freeswitch/freeswitch.mk +0 -0
index 69a7ee2..f1903c1 100644

[snip]

package/freeswitch/freeswitch.mk else · line 145

Quoted 7 lines
package/freeswitch/freeswitch.mk +7 -0
+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))

I don't particularly like this way of doing it. AFAICS you only have enabled
modules, so you could just do:

	$(Q)echo $(FREESWITCH_ENABLED_MODULES) \
		| tr ' ' '\n' \
		> $(@D)/modules.conf

(and then you can remove the reset modules hook).

Regards,
Arnout

Quoted 6 lines
package/freeswitch/freeswitch.mk +4 -0
+endef
+
+FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
+
  $(eval $(autotools-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#7 lore raw

PATCH v12 3/31 package/freeswitch: add optional dependency to libuuid

In reply to Bernd Kuhls
---
 package/freeswitch/Config.in     | 4 ++++
 package/freeswitch/freeswitch.mk | 4 ++++
 2 files changed, 8 insertions(+)
package/freeswitch/Config.in +4 -0
index e8281cb..c521647 100644
@@ -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
package/freeswitch/freeswitch.mk +4 -0
index f1903c1..786ef39 100644
@@ -147,4 +147,8 @@ endef
 
 FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
 
+ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
+FREESWITCH_DEPENDENCIES += util-linux
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
2.8.0.rc3
#8 lore raw

PATCH v12 4/31 package/freeswitch: add optional dependency to libedit

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/freeswitch/freeswitch.mk +7 -1
index 786ef39..e92d6c5 100644
@@ -54,7 +54,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 \
@@ -147,6 +146,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
Signature · 1 line
2.8.0.rc3
#9 lore raw

PATCH v12 5/31 package/freeswitch: enable mod_enum

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index e92d6c5..457e69a 100644
@@ -153,6 +153,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
Signature · 1 line
2.8.0.rc3
#10 lore raw

PATCH v12 6/31 package/freeswitch: add optional dependency to libpng

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 457e69a..582a9f2 100644
@@ -158,6 +158,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
Signature · 1 line
2.8.0.rc3
#11 lore raw

PATCH v12 7/31 package/freeswitch: add optional dependency to unixodbc

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
package/freeswitch/freeswitch.mk +9 -1
index 582a9f2..8a27b70 100644
@@ -54,7 +54,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 \
@@ -163,6 +162,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
Signature · 1 line
2.8.0.rc3
#12 lore raw

PATCH v12 8/31 package/freeswitch: add optional dependency to freetype

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/freeswitch/freeswitch.mk +4 -0
index 8a27b70..7af31a2 100644
@@ -145,6 +145,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
Signature · 1 line
2.8.0.rc3
#13 lore raw

PATCH v12 9/31 package/freeswitch: enable mod_yaml

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 7af31a2..fea0398 100644
@@ -166,6 +166,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 += \
Signature · 1 line
2.8.0.rc3
#14 lore raw

PATCH v12 10/31 package/freeswitch: enable mod_lua

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index fea0398..f478eb9 100644
@@ -171,6 +171,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 += \
Signature · 1 line
2.8.0.rc3
#15 lore raw

PATCH v12 11/31 package/freeswitch: enable mod_bv

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index f478eb9..7623fad 100644
@@ -149,6 +149,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
Signature · 1 line
2.8.0.rc3
#16 lore raw

PATCH v12 12/31 package/freeswitch: enable mod_codec2

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 7623fad..64d7ffe 100644
@@ -154,6 +154,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
Signature · 1 line
2.8.0.rc3
#17 lore raw

PATCH v12 13/31 package/freeswitch: add optional dependency to libg7221

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/freeswitch/freeswitch.mk +4 -0
index 64d7ffe..7afa601 100644
@@ -166,6 +166,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
Signature · 1 line
2.8.0.rc3
#18 lore raw

PATCH v12 14/31 package/freeswitch: enable mod_ilbc

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 7afa601..95db94e 100644
@@ -170,6 +170,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
Signature · 1 line
2.8.0.rc3
#19 lore raw

PATCH v12 15/31 package/freeswitch: enable mod_isac

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/freeswitch/freeswitch.mk +6 -0
index 95db94e..189bee7 100644
@@ -145,6 +145,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
Signature · 1 line
2.8.0.rc3
#20 lore raw

PATCH v12 16/31 package/freeswitch: enable mod_opus

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 189bee7..cf12b75 100644
@@ -201,6 +201,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 += \
Signature · 1 line
2.8.0.rc3
#21 lore raw

PATCH v12 17/31 package/freeswitch: enable mod_portaudio

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index cf12b75..db6fced 100644
@@ -206,6 +206,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 += \
Signature · 1 line
2.8.0.rc3
#22 lore raw

PATCH v12 18/31 package/freeswitch: enable mod_silk

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index db6fced..b29812a 100644
@@ -211,6 +211,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 += \
Signature · 1 line
2.8.0.rc3
#23 lore raw

PATCH v12 19/31 package/freeswitch: enable mod_sndfile

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index b29812a..baa8e2d 100644
@@ -216,6 +216,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 += \
Signature · 1 line
2.8.0.rc3
#24 lore raw

PATCH v12 20/31 package/freeswitch: enable mod_alsa

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index baa8e2d..69e728a 100644
@@ -151,6 +151,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
Signature · 1 line
2.8.0.rc3
#25 lore raw

PATCH v12 21/31 package/freeswitch: enable mod_soundtouch

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 69e728a..ce66c1e 100644
@@ -226,6 +226,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 += \
Signature · 1 line
2.8.0.rc3
#26 lore raw

PATCH v12 22/31 package/freeswitch: enable mod_xml_rpc

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/freeswitch/freeswitch.mk +4 -0
index ce66c1e..64866e4 100644
@@ -151,6 +151,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
Signature · 1 line
2.8.0.rc3
#27 lore raw

PATCH v12 23/31 package/freeswitch: add optional dependency to xz

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/freeswitch/freeswitch.mk +4 -0
index 64866e4..c89998f 100644
@@ -248,4 +248,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))
Signature · 1 line
2.8.0.rc3
#28 lore raw

PATCH v12 24/31 package/freeswitch: enable mod_memcache

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index c89998f..8723827 100644
@@ -195,6 +195,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
Signature · 1 line
2.8.0.rc3
#29 lore raw

PATCH v12 25/31 package/freeswitch: enable mod_imagick

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 8723827..f0d299a 100644
@@ -164,6 +164,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
Signature · 1 line
2.8.0.rc3
#30 lore raw

PATCH v12 26/31 package/freeswitch: enable mod_cv

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index f0d299a..4b73f74 100644
@@ -245,6 +245,11 @@ FREESWITCH_DEPENDENCIES += libsoundtouch
 FREESWITCH_ENABLED_MODULES += applications/mod_soundtouch
 endif
 
+ifeq ($(BR2_PACKAGE_OPENCV),y)
+FREESWITCH_DEPENDENCIES += opencv
+FREESWITCH_ENABLED_MODULES += applications/mod_cv
+endif
+
 ifeq ($(BR2_PACKAGE_UNIXODBC),y)
 FREESWITCH_DEPENDENCIES += unixodbc
 FREESWITCH_CONF_OPTS += \
Signature · 1 line
2.8.0.rc3
#31 lore raw

PATCH v12 27/31 package/freeswitch: enable mod_shout

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 4b73f74..b80c49d 100644
@@ -230,6 +230,11 @@ FREESWITCH_DEPENDENCIES += portaudio
 FREESWITCH_ENABLED_MODULES += endpoints/mod_portaudio
 endif
 
+ifeq ($(BR2_PACKAGE_LAME)$(BR2_PACKAGE_LIBSHOUT)$(BR2_PACKAGE_MPG123),yyy)
+FREESWITCH_DEPENDENCIES += lame libshout mpg123
+FREESWITCH_ENABLED_MODULES += formats/mod_shout
+endif
+
 ifeq ($(BR2_PACKAGE_LIBSILK),y)
 FREESWITCH_DEPENDENCIES += libsilk
 FREESWITCH_ENABLED_MODULES += codecs/mod_silk
Signature · 1 line
2.8.0.rc3
#32 lore raw

PATCH v12 28/31 package/freeswitch: add optional dependency to openldap

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index b80c49d..54d7d14 100644
@@ -220,6 +220,11 @@ FREESWITCH_DEPENDENCIES += lua
 FREESWITCH_ENABLED_MODULES += languages/mod_lua
 endif
 
+ifeq ($(BR2_PACKAGE_OPENLDAP),y)
+FREESWITCH_DEPENDENCIES += openldap
+FREESWITCH_ENABLED_MODULES += directories/mod_ldap xml_int/mod_xml_ldap
+endif
+
 ifeq ($(BR2_PACKAGE_OPUS),y)
 FREESWITCH_DEPENDENCIES += opus
 FREESWITCH_ENABLED_MODULES += codecs/mod_opus
Signature · 1 line
2.8.0.rc3
#33 lore raw

PATCH v12 29/31 package/flite: bump version to 2.0.0

In reply to Bernd Kuhls

Freeswitch contains mod_flite which needs flite >= 2.0.0 detected by pkgconf, its support was added by the freeswitch project so we switch to the freeswitch support deps repo:
https://freeswitch.org/stash/projects/SD

Removed 0001-now-honor-DESTDIR-env.-var.patch, not needed anymore. Rebased and renumbered the remaining patches.

---
 ...lsa-static.patch => 0001-fix-alsa-static.patch} |  4 +--
 .../flite/0001-now-honor-DESTDIR-env.-var.patch    | 30 ----------------------
 ...eck.patch => 0002-fix-alsa-version-check.patch} |  4 +--
 package/flite/flite.hash                           |  2 --
 package/flite/flite.mk                             | 24 +++--------------
 5 files changed, 8 insertions(+), 56 deletions(-)
 rename package/flite/{0002-fix-alsa-static.patch => 0001-fix-alsa-static.patch} (77%)
 delete mode 100644 package/flite/0001-now-honor-DESTDIR-env.-var.patch
 rename package/flite/{0003-fix-alsa-version-check.patch => 0002-fix-alsa-version-check.patch} (90%)
 delete mode 100644 package/flite/flite.hash
package/flite/0001-fix-alsa-static.patch renamed from package/flite/0002-fix-alsa-static.patch +2 -2
similarity index 77%
rename from package/flite/0002-fix-alsa-static.patch
rename to package/flite/0001-fix-alsa-static.patch
index 12adb9e..de088ad 100644
@@ -3,8 +3,8 @@ Use pkg-config to determine alsa link flags. This fixes static linking.
 Signed-off-by: Baruch Siach <[email protected]>
 
 diff -Nuar flite-1.4-release.orig/configure.in flite-1.4-release/configure.in
---- flite-1.4-release.orig/flite-1.4-release/configure.in	2009-08-14 23:46:38.000000000 +0300
-+++ flite-1.4-release/flite-1.4-release/configure.in	2014-04-30 18:52:33.253297236 +0300
+--- flite-1.4-release/configure.in	2009-08-14 23:46:38.000000000 +0300
++++ flite-1.4-release/configure.in	2014-04-30 18:52:33.253297236 +0300
 @@ -275,7 +275,10 @@
                  #endif],
                [AUDIODRIVER="alsa"
package/flite/0001-now-honor-DESTDIR-env.-var.patch deleted +0 -30
deleted file mode 100644
index 2d5fb68..0000000
@@ -1,30 +0,0 @@
-From 658f3243238efe951f6242fa384e990d77078afc Mon Sep 17 00:00:00 2001
-From: Samuel Martin <[email protected]>
-Date: Fri, 27 Dec 2013 17:42:39 +0100
-Subject: [PATCH] now honor DESTDIR env. var.
-
-Flite used a handwritten a Makefile which doesn't honor DESTDIR environment
-variable, though it uses autoconf.
-
-Signed-off-by: Samuel Martin <[email protected]>
----
- config/config.in | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/config/config.in b/config/config.in
-index 914d2bf..43f1a56 100644
---- a/flite-1.4-release/config/config.in
-+++ b/flite-1.4-release/config/config.in
-@@ -49,6 +49,6 @@ include $(TOP)/config/$(langvox).lv
- prefix        = @prefix@
- exec_prefix   = @exec_prefix@
- EXEEXT	      = @EXEEXT@
--INSTALLBINDIR = @bindir@
--INSTALLLIBDIR = @libdir@
--INSTALLINCDIR = @includedir@/flite
-+INSTALLBINDIR = $(DESTDIR)@bindir@
-+INSTALLLIBDIR = $(DESTDIR)@libdir@
-+INSTALLINCDIR = $(DESTDIR)@includedir@/flite
---
-1.8.5.2
-
package/flite/0002-fix-alsa-version-check.patch renamed from package/flite/0003-fix-alsa-version-check.patch +2 -2
similarity index 90%
rename from package/flite/0003-fix-alsa-version-check.patch
rename to package/flite/0002-fix-alsa-version-check.patch
index 8832ac3..6a38cc3 100644
@@ -13,8 +13,8 @@ Signed-off-by: Peter Korsgaard <[email protected]>
 
 Index: flite-1.4/flite-1.4-release/configure.in
 ===================================================================
---- flite-1.4.orig/flite-1.4-release/configure.in
-+++ flite-1.4/flite-1.4-release/configure.in
+--- flite-1.4-release/configure.in
++++ flite-1.4-release/configure.in
 @@ -270,7 +270,7 @@
  # the one I know -- you can still specific --with-audio=alsa
  AC_TRY_COMPILE([#include <alsa/version.h>],
package/flite/flite.hash deleted +0 -2
deleted file mode 100644
index e4dd0c6..0000000
@@ -1,2 +0,0 @@
-# locally computed hash
-sha256 45c662160aeca6560589f78daf42ab62c6111dd4d244afc28118c4e6f553cd0c flite-1.4-release.tar.bz2
package/flite/flite.mk +4 -20
index 611e334..557927d 100644
@@ -4,26 +4,10 @@
 #
 ################################################################################
 
-FLITE_VERSION = 1.4
-FLITE_SOURCE = flite-$(FLITE_VERSION)-release.tar.bz2
-FLITE_SITE = http://www.speech.cs.cmu.edu/flite/packed/flite-$(FLITE_VERSION)
-# $ tar tf flite-1.4-release.tar.bz2
-# ...
-# flite-1.4-release//install-sh
-# flite-1.4-release//mkinstalldirs
-# flite-1.4-release//Exports.def
-# flite-1.4-release//flite.sln
-# flite-1.4-release//fliteDll.vcproj
-# flite-1.4-release/config/Makefile
-# flite-1.4-release/config/common_make_rules
-# flite-1.4-release/config/project.mak
-# flite-1.4-release/config/config.in
-# flite-1.4-release/config/system.mak.in
-#
-# So, we set FLITE_STRIP_COMPONENTS=0 to avoid writing to "/", and then
-# build in flite-1.4-release/
-FLITE_STRIP_COMPONENTS = 0
-FLITE_SUBDIR = flite-$(FLITE_VERSION)-release
+FLITE_VERSION = 6260e4ca258715a35859397cdcf075bb4e7f386f
+# we use the FreeSwitch fork because it contains pkgconf support
+FLITE_SITE = https://freeswitch.org/stash/scm/sd/libflite.git
+FLITE_SITE_METHOD = git
 FLITE_LICENSE = BSD-4c
 FLITE_LICENSE_FILES = $(FLITE_SUBDIR)/COPYING
 
Signature · 1 line
2.8.0.rc3
#34 lore raw

PATCH v12 29/31 package/flite: bump version to 2.0.0

Quoted 4 lines · Bernd Kuhls

Freeswitch contains mod_flite which needs flite >= 2.0.0 detected by pkgconf, its support was added by the freeswitch project so we switch to the freeswitch support deps repo:
https://freeswitch.org/stash/projects/SD

So, we would be switching to a fork? I don't like that very much... I tend to
prefer sticking with the upstream flite-2.0.0 release, and add patches if needed. However, a quick look shows that the differences are pretty large, so it's probably not an option. But then, switching to a fork is even less attractive... But then again, the real upstream is not very active, while the freeswitch fork is really active.

Either way, it's ugly :-(

If it's really just about the pkg-config support, can't we just add a .pc file
ourselves? After bumping to the upstream flite-2.0.0 of course.

Quoted 25 lines

Removed 0001-now-honor-DESTDIR-env.-var.patch, not needed anymore. Rebased and renumbered the remaining patches.

---
  ...lsa-static.patch => 0001-fix-alsa-static.patch} |  4 +--
  .../flite/0001-now-honor-DESTDIR-env.-var.patch    | 30 ----------------------
  ...eck.patch => 0002-fix-alsa-version-check.patch} |  4 +--
  package/flite/flite.hash                           |  2 --
  package/flite/flite.mk                             | 24 +++--------------
  5 files changed, 8 insertions(+), 56 deletions(-)

rename package/flite/{0002-fix-alsa-static.patch => 0001-fix-alsa-static.patch} (77%) delete mode 100644 package/flite/0001-now-honor-DESTDIR-env.-var.patch
rename package/flite/{0003-fix-alsa-version-check.patch => 0002-fix-alsa-version-check.patch} (90%) delete mode 100644 package/flite/flite.hash

package/flite/0001-fix-alsa-static.patch renamed from package/flite/0002-fix-alsa-static.patch +0 -0
similarity index 77%
rename from package/flite/0002-fix-alsa-static.patch
rename to package/flite/0001-fix-alsa-static.patch
index 12adb9e..de088ad 100644

package/flite/0001-fix-alsa-static.patch Use pkg-config to determine alsa link flags. This fixes static linking. · line 7

Quoted 7 lines
package/flite/0001-fix-alsa-static.patch renamed from package/flite/0002-fix-alsa-static.patch +2 -2
@@ -3,8 +3,8 @@ Use pkg-config to determine alsa link flags. This fixes static linking.
  Signed-off-by: Baruch Siach <[email protected]>
 
  diff -Nuar flite-1.4-release.orig/configure.in flite-1.4-release/configure.in
---- flite-1.4-release.orig/flite-1.4-release/configure.in	2009-08-14 23:46:38.000000000 +0300
-+++ flite-1.4-release/flite-1.4-release/configure.in	2014-04-30 18:52:33.253297236 +0300
+--- flite-1.4-release/configure.in	2009-08-14 23:46:38.000000000 +0300
++++ flite-1.4-release/configure.in	2014-04-30 18:52:33.253297236 +0300

It's a bit weird to still have flite-1.4 when the version is actually 2.0...
Perhaps convert to git patches?

Quoted 3 lines
package/flite/0001-fix-alsa-static.patch renamed from package/flite/0002-fix-alsa-static.patch +0 -0
  @@ -275,7 +275,10 @@
                   #endif],
                 [AUDIODRIVER="alsa"

[snip]

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#35 lore raw

PATCH v12 30/31 package/freeswitch: enable mod_flite

In reply to Bernd Kuhls
---
 package/freeswitch/freeswitch.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/freeswitch/freeswitch.mk +5 -0
index 54d7d14..8695b30 100644
@@ -160,6 +160,11 @@ FREESWITCH_DEPENDENCIES += alsa-lib
 FREESWITCH_ENABLED_MODULES += endpoints/mod_alsa
 endif
 
+ifeq ($(BR2_PACKAGE_FLITE),y)
+FREESWITCH_DEPENDENCIES += flite
+FREESWITCH_ENABLED_MODULES += asr_tts/mod_flite
+endif
+
 ifeq ($(BR2_PACKAGE_FREETYPE),y)
 FREESWITCH_DEPENDENCIES += freetype
 endif
Signature · 1 line
2.8.0.rc3
#36 lore raw

PATCH v12 31/31 package/freeswitch: enable video support

In reply to Bernd Kuhls
---
 package/freeswitch/Config.in     | 16 +++++++++++++++-
 package/freeswitch/freeswitch.mk | 38 ++++++++++++++++++++++++++++++++++++--
 2 files changed, 51 insertions(+), 3 deletions(-)
package/freeswitch/Config.in +15 -1
index c521647..d552ccb 100644
@@ -1,4 +1,4 @@
-config BR2_PACKAGE_FREESWITCH
+menuconfig BR2_PACKAGE_FREESWITCH
 	bool "freeswitch"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on !BR2_STATIC_LIBS # apr, included in freeswitch source
@@ -22,6 +22,20 @@ config BR2_PACKAGE_FREESWITCH
 
 	  https://www.freeswitch.org
 
+if BR2_PACKAGE_FREESWITCH
+
+config BR2_PACKAGE_FREESWITCH_MODULE_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_STATIC_LIBS \
package/freeswitch/freeswitch.mk +36 -2
index 8695b30..70345b9 100644
@@ -54,8 +54,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 \
@@ -282,4 +280,40 @@ ifeq ($(BR2_PACKAGE_XZ),y)
 FREESWITCH_DEPENDENCIES += xz
 endif
 
+ifeq ($(BR2_PACKAGE_FREESWITCH_MODULE_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))
Signature · 1 line
2.8.0.rc3