* [Buildroot] [PATCH v14 01/27] package/freeswitch: new package
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-17 15:03 ` Arnout Vandecappelle
2016-04-16 10:54 ` [Buildroot] [PATCH v14 02/27] package/freeswitch: enable optional modules Bernd Kuhls
` (25 subsequent siblings)
26 siblings, 1 reply; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 +++++++++++++
package/freeswitch/Config.in | 27 +++++++++++
package/freeswitch/freeswitch.hash | 2 +
package/freeswitch/freeswitch.mk | 97 ++++++++++++++++++++++++++++++++++++++
5 files changed, 160 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
diff --git a/package/Config.in b/package/Config.in
index bcfe13b..3ed5d1d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1381,6 +1381,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/Config.in b/package/freeswitch/Config.in
new file mode 100644
index 0000000..3824a09
--- /dev/null
+++ b/package/freeswitch/Config.in
@@ -0,0 +1,27 @@
+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
+ depends on BR2_USE_WCHAR # libuuid
+ 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_UTIL_LINUX
+ select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+ 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, wchar"
+ depends on BR2_USE_MMU
+ depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS \
+ || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
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..a6d5de3
--- /dev/null
+++ b/package/freeswitch/freeswitch.mk
@@ -0,0 +1,97 @@
+################################################################################
+#
+# 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, \
+ Apache-2.0 (apr, apr-util) \
+ LGPLv2+ (sofia-sip), \
+ LGPLv2.1, GPLv2 (spandsp), \
+ BSD-3c (libsrtp), \
+ tiff license
+
+FREESWITCH_LICENSE_FILES = \
+ COPYING \
+ libs/apr/LICENSE \
+ libs/apr-util/LICENSE \
+ libs/sofia-sip/COPYING \
+ libs/sofia-sip/COPYRIGHTS \
+ libs/spandsp/COPYING \
+ libs/srtp/LICENSE \
+ libs/tiff-4.0.2/COPYRIGHT
+
+# required dependencies
+FREESWITCH_DEPENDENCIES = \
+ host-pkgconf \
+ jpeg \
+ libcurl \
+ openssl \
+ pcre \
+ speex \
+ sqlite \
+ util-linux \
+ zlib
+
+# 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_LICENSE += AGPLv3 (libzrtp)
+FREESWITCH_LICENSE_FILES += libs/libzrtp/src/zrtp_legal.c
+FREESWITCH_CONF_OPTS += --disable-zrtp
+endif
+
+$(eval $(autotools-package))
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 01/27] package/freeswitch: new package
2016-04-16 10:54 ` [Buildroot] [PATCH v14 01/27] " Bernd Kuhls
@ 2016-04-17 15:03 ` Arnout Vandecappelle
2016-04-17 15:10 ` Arnout Vandecappelle
0 siblings, 1 reply; 31+ messages in thread
From: Arnout Vandecappelle @ 2016-04-17 15:03 UTC (permalink / raw)
To: buildroot
On 04/16/16 12:54, Bernd Kuhls wrote:
> 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>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Build test on arm-musl and sh4-glibc.
I've never seen a package before that puts advertising in the build output :-)
There is one small weird thing: the build ends with:
.../output/build/freeswitch-1.6.7/build/modcheck.sh: line 17: cd:
/usr/lib/freeswitch/mod: No such file or directory
If a script is searching for things in /usr/lib, that doesn't give a warm
fuzzy feeling... But at least I couldn't find any weird path references in the
target directory, so I guess it's OK.
But again a small nit about the licensing, see below.
> ---
[snip]
> diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
> new file mode 100644
> index 0000000..a6d5de3
> --- /dev/null
> +++ b/package/freeswitch/freeswitch.mk
> @@ -0,0 +1,97 @@
> +################################################################################
> +#
> +# 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, \
> + Apache-2.0 (apr, apr-util) \
> + LGPLv2+ (sofia-sip), \
> + LGPLv2.1, GPLv2 (spandsp), \
> + BSD-3c (libsrtp), \
> + tiff license
I'm not 100% sure about the licensing bit (even with fossology, it's a huge
amount of work to really vet it). But now at least the license statement looks
sufficiently complicated so that the appropriate alarm bells start ringing when
someone looks at legal-info output. Also none of the potentially problematic
licenses seem to be missing. Except... GPLv3. The following should be added.
GPLv3+ with font exception (fonts), \
Perhaps that can be added while committing? This is v14 already...
With that:
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Regards,
Arnout
> +
> +FREESWITCH_LICENSE_FILES = \
> + COPYING \
> + libs/apr/LICENSE \
> + libs/apr-util/LICENSE \
> + libs/sofia-sip/COPYING \
> + libs/sofia-sip/COPYRIGHTS \
> + libs/spandsp/COPYING \
> + libs/srtp/LICENSE \
> + libs/tiff-4.0.2/COPYRIGHT
> +
> +# required dependencies
> +FREESWITCH_DEPENDENCIES = \
> + host-pkgconf \
> + jpeg \
> + libcurl \
> + openssl \
> + pcre \
> + speex \
> + sqlite \
> + util-linux \
> + zlib
> +
> +# 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_LICENSE += AGPLv3 (libzrtp)
> +FREESWITCH_LICENSE_FILES += libs/libzrtp/src/zrtp_legal.c
> +FREESWITCH_CONF_OPTS += --disable-zrtp
> +endif
> +
> +$(eval $(autotools-package))
>
--
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* [Buildroot] [PATCH v14 01/27] package/freeswitch: new package
2016-04-17 15:03 ` Arnout Vandecappelle
@ 2016-04-17 15:10 ` Arnout Vandecappelle
2016-04-17 15:15 ` Arnout Vandecappelle
0 siblings, 1 reply; 31+ messages in thread
From: Arnout Vandecappelle @ 2016-04-17 15:10 UTC (permalink / raw)
To: buildroot
On 04/17/16 17:03, Arnout Vandecappelle wrote:
> On 04/16/16 12:54, Bernd Kuhls wrote:
>> 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.
[snip]
> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Oops, no...
[snip]
>> +# 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_LICENSE += AGPLv3 (libzrtp)
>> +FREESWITCH_LICENSE_FILES += libs/libzrtp/src/zrtp_legal.c
This doesn't sound right, I guess that that bit should have gone to the other
side of the condition?
So this makes the whole AGPLv3 for most architectures... I guess that anyone
who has a problem with that can just edit the .mk file to remove zrtp support.
Regards,
Arnout
>> +FREESWITCH_CONF_OPTS += --disable-zrtp
>> +endif
>> +
>> +$(eval $(autotools-package))
>>
>
>
--
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* [Buildroot] [PATCH v14 01/27] package/freeswitch: new package
2016-04-17 15:10 ` Arnout Vandecappelle
@ 2016-04-17 15:15 ` Arnout Vandecappelle
0 siblings, 0 replies; 31+ messages in thread
From: Arnout Vandecappelle @ 2016-04-17 15:15 UTC (permalink / raw)
To: buildroot
On 04/17/16 17:10, Arnout Vandecappelle wrote:
> On 04/17/16 17:03, Arnout Vandecappelle wrote:
>> On 04/16/16 12:54, Bernd Kuhls wrote:
>>> 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.
> [snip]
>> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
>
> Oops, no...
>
> [snip]
>
>>> +# 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_LICENSE += AGPLv3 (libzrtp)
>>> +FREESWITCH_LICENSE_FILES += libs/libzrtp/src/zrtp_legal.c
>
> This doesn't sound right, I guess that that bit should have gone to the other
> side of the condition?
>
> So this makes the whole AGPLv3 for most architectures... I guess that anyone
> who has a problem with that can just edit the .mk file to remove zrtp support.
And now that I've actually _read_ zrtp_legal.c: there is an exception for when
you distribute it bundled with freeswitch; in that case, it's licensed MPLv1.1.
So, the AGPLv3 bit can be removed. I _would_ keep the zrtp_legal.c as a license
file, though.
Regards,
Arnout
--
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
^ permalink raw reply [flat|nested] 31+ messages in thread
* [Buildroot] [PATCH v14 02/27] package/freeswitch: enable optional modules
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 01/27] " Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 03/27] package/freeswitch: add optional dependency to libedit Bernd Kuhls
` (24 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 | 80 ++++++++++++++++++++++++++++++++++++----
1 file changed, 73 insertions(+), 7 deletions(-)
diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index a6d5de3..95a992b 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -36,13 +36,6 @@ FREESWITCH_DEPENDENCIES = \
util-linux \
zlib
-# 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 \
@@ -94,4 +87,77 @@ FREESWITCH_LICENSE_FILES += libs/libzrtp/src/zrtp_legal.c
FREESWITCH_CONF_OPTS += --disable-zrtp
endif
+# Enable 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_rpc \
+ xml_int/mod_xml_scgi
+
+define FREESWITCH_ENABLE_MODULES
+ $(Q)echo $(FREESWITCH_ENABLED_MODULES) \
+ | tr ' ' '\n' \
+ > $(@D)/modules.conf
+endef
+FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
+
$(eval $(autotools-package))
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 03/27] package/freeswitch: add optional dependency to libedit
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 01/27] " Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 02/27] package/freeswitch: enable optional modules Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 04/27] package/freeswitch: enable mod_enum Bernd Kuhls
` (23 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 95a992b..d83835e 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -68,7 +68,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 \
@@ -160,4 +159,11 @@ define FREESWITCH_ENABLE_MODULES
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
+
$(eval $(autotools-package))
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 04/27] package/freeswitch: enable mod_enum
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (2 preceding siblings ...)
2016-04-16 10:54 ` [Buildroot] [PATCH v14 03/27] package/freeswitch: add optional dependency to libedit Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 05/27] package/freeswitch: add optional dependency to libpng Bernd Kuhls
` (22 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 d83835e..9c6b874 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -166,4 +166,9 @@ else
FREESWITCH_CONF_OPTS += --disable-core-libedit-support
endif
+ifeq ($(BR2_PACKAGE_LIBLDNS),y)
+FREESWITCH_DEPENDENCIES += libldns
+FREESWITCH_ENABLED_MODULES += applications/mod_enum
+endif
+
$(eval $(autotools-package))
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 05/27] package/freeswitch: add optional dependency to libpng
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (3 preceding siblings ...)
2016-04-16 10:54 ` [Buildroot] [PATCH v14 04/27] package/freeswitch: enable mod_enum Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 06/27] package/freeswitch: add optional dependency to unixodbc Bernd Kuhls
` (21 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 9c6b874..b129628 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -171,4 +171,9 @@ 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
+
$(eval $(autotools-package))
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 06/27] package/freeswitch: add optional dependency to unixodbc
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (4 preceding siblings ...)
2016-04-16 10:54 ` [Buildroot] [PATCH v14 05/27] package/freeswitch: add optional dependency to libpng Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 07/27] package/freeswitch: add optional dependency to freetype Bernd Kuhls
` (20 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 b129628..4991cfe 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -68,7 +68,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 \
@@ -176,4 +175,13 @@ 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
+
$(eval $(autotools-package))
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 07/27] package/freeswitch: add optional dependency to freetype
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (5 preceding siblings ...)
2016-04-16 10:54 ` [Buildroot] [PATCH v14 06/27] package/freeswitch: add optional dependency to unixodbc Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-16 10:54 ` [Buildroot] [PATCH v14 08/27] package/freeswitch: enable mod_yaml Bernd Kuhls
` (19 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 4991cfe..b66464a 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -158,6 +158,10 @@ define FREESWITCH_ENABLE_MODULES
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] 31+ messages in thread* [Buildroot] [PATCH v14 08/27] package/freeswitch: enable mod_yaml
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (6 preceding siblings ...)
2016-04-16 10:54 ` [Buildroot] [PATCH v14 07/27] package/freeswitch: add optional dependency to freetype Bernd Kuhls
@ 2016-04-16 10:54 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 09/27] package/freeswitch: enable mod_lua Bernd Kuhls
` (18 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:54 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 b66464a..31c0bda 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -179,6 +179,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] 31+ messages in thread* [Buildroot] [PATCH v14 09/27] package/freeswitch: enable mod_lua
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (7 preceding siblings ...)
2016-04-16 10:54 ` [Buildroot] [PATCH v14 08/27] package/freeswitch: enable mod_yaml Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 10/27] package/freeswitch: enable mod_bv Bernd Kuhls
` (17 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 31c0bda..f6eb137 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -184,6 +184,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] 31+ messages in thread* [Buildroot] [PATCH v14 10/27] package/freeswitch: enable mod_bv
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (8 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 09/27] package/freeswitch: enable mod_lua Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 11/27] package/freeswitch: enable mod_codec2 Bernd Kuhls
` (16 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 f6eb137..a4e9ade 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -162,6 +162,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] 31+ messages in thread* [Buildroot] [PATCH v14 11/27] package/freeswitch: enable mod_codec2
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (9 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 10/27] package/freeswitch: enable mod_bv Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 12/27] package/freeswitch: add optional dependency to libg7221 Bernd Kuhls
` (15 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 a4e9ade..85a6209 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -167,6 +167,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] 31+ messages in thread* [Buildroot] [PATCH v14 12/27] package/freeswitch: add optional dependency to libg7221
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (10 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 11/27] package/freeswitch: enable mod_codec2 Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 13/27] package/freeswitch: enable mod_ilbc Bernd Kuhls
` (14 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 85a6209..dfc994a 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -179,6 +179,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] 31+ messages in thread* [Buildroot] [PATCH v14 13/27] package/freeswitch: enable mod_ilbc
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (11 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 12/27] package/freeswitch: add optional dependency to libg7221 Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 14/27] package/freeswitch: enable mod_isac Bernd Kuhls
` (13 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 dfc994a..0ccbe2a 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -183,6 +183,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] 31+ messages in thread* [Buildroot] [PATCH v14 14/27] package/freeswitch: enable mod_isac
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (12 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 13/27] package/freeswitch: enable mod_ilbc Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 15/27] package/freeswitch: enable mod_opus Bernd Kuhls
` (12 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/freeswitch/freeswitch.mk | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 0ccbe2a..083e412 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -158,6 +158,14 @@ define FREESWITCH_ENABLE_MODULES
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_LICENSE += BSD-3c (mod_isac)
+FREESWITCH_LICENSE_FILES += src/mod/codecs/mod_isac/LICENSE
+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] 31+ messages in thread* [Buildroot] [PATCH v14 15/27] package/freeswitch: enable mod_opus
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (13 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 14/27] package/freeswitch: enable mod_isac Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 16/27] package/freeswitch: enable mod_portaudio Bernd Kuhls
` (11 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 083e412..8176ed9 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -216,6 +216,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] 31+ messages in thread* [Buildroot] [PATCH v14 16/27] package/freeswitch: enable mod_portaudio
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (14 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 15/27] package/freeswitch: enable mod_opus Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 17/27] package/freeswitch: enable mod_silk Bernd Kuhls
` (10 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 8176ed9..d06ee89 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -221,6 +221,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] 31+ messages in thread* [Buildroot] [PATCH v14 17/27] package/freeswitch: enable mod_silk
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (15 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 16/27] package/freeswitch: enable mod_portaudio Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 18/27] package/freeswitch: enable mod_sndfile Bernd Kuhls
` (9 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 d06ee89..8ce454c 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -226,6 +226,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] 31+ messages in thread* [Buildroot] [PATCH v14 18/27] package/freeswitch: enable mod_sndfile
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (16 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 17/27] package/freeswitch: enable mod_silk Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 19/27] package/freeswitch: enable mod_alsa Bernd Kuhls
` (8 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 8ce454c..80a6d0b 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -231,6 +231,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] 31+ messages in thread* [Buildroot] [PATCH v14 19/27] package/freeswitch: enable mod_alsa
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (17 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 18/27] package/freeswitch: enable mod_sndfile Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 20/27] package/freeswitch: enable mod_soundtouch Bernd Kuhls
` (7 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 80a6d0b..a012886 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -166,6 +166,11 @@ FREESWITCH_LICENSE_FILES += src/mod/codecs/mod_isac/LICENSE
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] 31+ messages in thread* [Buildroot] [PATCH v14 20/27] package/freeswitch: enable mod_soundtouch
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (18 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 19/27] package/freeswitch: enable mod_alsa Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 21/27] package/freeswitch: add optional dependency to xz Bernd Kuhls
` (6 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 a012886..cb9f45d 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -241,6 +241,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] 31+ messages in thread* [Buildroot] [PATCH v14 21/27] package/freeswitch: add optional dependency to xz
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (19 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 20/27] package/freeswitch: enable mod_soundtouch Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 22/27] package/freeswitch: enable mod_memcache Bernd Kuhls
` (5 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 cb9f45d..4228f41 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -255,4 +255,8 @@ else
FREESWITCH_CONF_OPTS += --disable-core-odbc-support
endif
+ifeq ($(BR2_PACKAGE_XZ),y)
+FREESWITCH_DEPENDENCIES += xz
+endif
+
$(eval $(autotools-package))
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 22/27] package/freeswitch: enable mod_memcache
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (20 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 21/27] package/freeswitch: add optional dependency to xz Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 23/27] package/freeswitch: enable mod_imagick Bernd Kuhls
` (4 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 4228f41..73ea144 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -206,6 +206,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] 31+ messages in thread* [Buildroot] [PATCH v14 23/27] package/freeswitch: enable mod_imagick
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (21 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 22/27] package/freeswitch: enable mod_memcache Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 24/27] package/freeswitch: enable mod_cv Bernd Kuhls
` (3 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 73ea144..534b964 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -175,6 +175,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] 31+ messages in thread* [Buildroot] [PATCH v14 24/27] package/freeswitch: enable mod_cv
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (22 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 23/27] package/freeswitch: enable mod_imagick Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 25/27] package/freeswitch: enable mod_shout Bernd Kuhls
` (2 subsequent siblings)
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 534b964..ce242a4 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -256,6 +256,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 += \
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 25/27] package/freeswitch: enable mod_shout
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (23 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 24/27] package/freeswitch: enable mod_cv Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 26/27] package/freeswitch: add optional dependency to openldap Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 27/27] package/freeswitch: enable video support Bernd Kuhls
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 ce242a4..b2df598 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -241,6 +241,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
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 26/27] package/freeswitch: add optional dependency to openldap
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (24 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 25/27] package/freeswitch: enable mod_shout Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
2016-04-16 10:55 ` [Buildroot] [PATCH v14 27/27] package/freeswitch: enable video support Bernd Kuhls
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 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 b2df598..9337214 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -231,6 +231,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
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 31+ messages in thread* [Buildroot] [PATCH v14 27/27] package/freeswitch: enable video support
2016-04-16 10:54 [Buildroot] [PATCH v14 00/27] package/freeswitch: new package Bernd Kuhls
` (25 preceding siblings ...)
2016-04-16 10:55 ` [Buildroot] [PATCH v14 26/27] package/freeswitch: add optional dependency to openldap Bernd Kuhls
@ 2016-04-16 10:55 ` Bernd Kuhls
26 siblings, 0 replies; 31+ messages in thread
From: Bernd Kuhls @ 2016-04-16 10:55 UTC (permalink / raw)
To: buildroot
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/freeswitch/Config.in | 16 +++++++++++++++-
package/freeswitch/freeswitch.mk | 40 ++++++++++++++++++++++++++++++++++++++--
2 files changed, 53 insertions(+), 3 deletions(-)
diff --git a/package/freeswitch/Config.in b/package/freeswitch/Config.in
index 3824a09..f1a6f69 100644
--- a/package/freeswitch/Config.in
+++ b/package/freeswitch/Config.in
@@ -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
@@ -21,6 +21,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, wchar"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS \
diff --git a/package/freeswitch/freeswitch.mk b/package/freeswitch/freeswitch.mk
index 9337214..a48868a 100644
--- a/package/freeswitch/freeswitch.mk
+++ b/package/freeswitch/freeswitch.mk
@@ -68,8 +68,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 \
@@ -284,4 +282,42 @@ ifeq ($(BR2_PACKAGE_XZ),y)
FREESWITCH_DEPENDENCIES += xz
endif
+ifeq ($(BR2_PACKAGE_FREESWITCH_MODULE_VIDEO),y)
+FREESWITCH_LICENSE += BSD-3c (libvpx, libyuv)
+FREESWITCH_LICENSE_FILES += libs/libvpx/LICENSE libs/libyuv/LICENSE
+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] 31+ messages in thread