Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
From c8cc6f1773ff370bb14bb963e2f632eef6d6a3c2 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Thu, 12 May 2022 23:22:42 +0200
|
||||
Subject: [PATCH] libs/srtp/crypto/hash/hmac_ossl.c: fix build with libressl >=
|
||||
3.5.0
|
||||
|
||||
Fix the following build failure with libressl >= 3.5.0:
|
||||
|
||||
crypto/hash/hmac_ossl.c: In function 'srtp_hmac_alloc':
|
||||
crypto/hash/hmac_ossl.c:88:55: error: invalid application of 'sizeof' to incomplete type 'HMAC_CTX' {aka 'struct hmac_ctx_st'}
|
||||
88 | pointer = (uint8_t *)srtp_crypto_alloc(sizeof(HMAC_CTX) +
|
||||
| ^~~~~~~~
|
||||
crypto/hash/hmac_ossl.c:97:9: warning: implicit declaration of function 'HMAC_CTX_init'; did you mean 'HMAC_CTX_new'? [-Wimplicit-function-declaration]
|
||||
97 | HMAC_CTX_init(new_hmac_ctx);
|
||||
| ^~~~~~~~~~~~~
|
||||
| HMAC_CTX_new
|
||||
crypto/hash/hmac_ossl.c: In function 'srtp_hmac_dealloc':
|
||||
crypto/hash/hmac_ossl.c:130:5: warning: implicit declaration of function 'HMAC_CTX_cleanup' [-Wimplicit-function-declaration]
|
||||
130 | HMAC_CTX_cleanup(hmac_ctx);
|
||||
| ^~~~~~~~~~~~~~~~
|
||||
crypto/hash/hmac_ossl.c:133:40: error: invalid application of 'sizeof' to incomplete type 'HMAC_CTX' {aka 'struct hmac_ctx_st'}
|
||||
133 | octet_string_set_to_zero(a, sizeof(HMAC_CTX) + sizeof(srtp_auth_t));
|
||||
| ^~~~~~~~
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/e696ead9ffffa5bb80928d75607bfbb9b263d3c6
|
||||
|
||||
Upstream: https://github.com/signalwire/freeswitch/pull/1654
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
libs/srtp/crypto/hash/hmac_ossl.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/libs/srtp/crypto/hash/hmac_ossl.c b/libs/srtp/crypto/hash/hmac_ossl.c
|
||||
index 8146438b05..6730cbb35c 100644
|
||||
--- a/libs/srtp/crypto/hash/hmac_ossl.c
|
||||
+++ b/libs/srtp/crypto/hash/hmac_ossl.c
|
||||
@@ -79,7 +79,8 @@ static srtp_err_status_t srtp_hmac_alloc(srtp_auth_t **a,
|
||||
|
||||
/* OpenSSL 1.1.0 made HMAC_CTX an opaque structure, which must be allocated
|
||||
using HMAC_CTX_new. But this function doesn't exist in OpenSSL 1.0.x. */
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
|
||||
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x30500000L)
|
||||
{
|
||||
/* allocate memory for auth and HMAC_CTX structures */
|
||||
uint8_t *pointer;
|
||||
@@ -125,7 +126,8 @@ static srtp_err_status_t srtp_hmac_dealloc(srtp_auth_t *a)
|
||||
|
||||
hmac_ctx = (HMAC_CTX *)a->state;
|
||||
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
|
||||
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x30500000L)
|
||||
HMAC_CTX_cleanup(hmac_ctx);
|
||||
|
||||
/* zeroize entire state*/
|
||||
--
|
||||
2.35.1
|
||||
|
||||
52
package/freeswitch/0002-ffmpeg8.patch
Normal file
52
package/freeswitch/0002-ffmpeg8.patch
Normal file
@@ -0,0 +1,52 @@
|
||||
From 0ce211af3a3ad0b1060b542d0a92a07dab5d2d59 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Sat, 23 Aug 2025 18:15:39 +0200
|
||||
Subject: [PATCH] [mod_av] Add support for FFmpeg 8.0
|
||||
|
||||
remove deprecated FF_API_FF_PROFILE_LEVEL:
|
||||
https://github.com/FFmpeg/FFmpeg/commit/822432769868da325ba03774df1084aa78b9a5a0
|
||||
|
||||
Upstream: https://github.com/signalwire/freeswitch/pull/2896
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/mod/applications/mod_av/avcodec.c | 10 +++++-----
|
||||
1 file changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/mod/applications/mod_av/avcodec.c b/src/mod/applications/mod_av/avcodec.c
|
||||
index a9d449b562c..9962b821d53 100644
|
||||
--- a/src/mod/applications/mod_av/avcodec.c
|
||||
+++ b/src/mod/applications/mod_av/avcodec.c
|
||||
@@ -530,7 +530,7 @@ static void init_profile(avcodec_profile_t *aprofile, const char *name)
|
||||
aprofile->decoder_thread_count = avcodec_globals.dec_threads;
|
||||
|
||||
if (!strcasecmp(name, "H264")) {
|
||||
- aprofile->ctx.profile = FF_PROFILE_H264_BASELINE;
|
||||
+ aprofile->ctx.profile = AV_PROFILE_H264_BASELINE;
|
||||
aprofile->ctx.level = 31;
|
||||
#ifdef AV_CODEC_FLAG_PSNR
|
||||
aprofile->ctx.flags |= AV_CODEC_FLAG_PSNR;
|
||||
@@ -2071,7 +2071,7 @@ static void parse_profile(avcodec_profile_t *aprofile, switch_xml_t profile)
|
||||
|
||||
ctx = &aprofile->ctx;
|
||||
|
||||
- ctx->profile = FF_PROFILE_H264_BASELINE;
|
||||
+ ctx->profile = AV_PROFILE_H264_BASELINE;
|
||||
ctx->level = 31;
|
||||
|
||||
for (param = switch_xml_child(profile, "param"); param; param = param->next) {
|
||||
@@ -2094,11 +2094,11 @@ static void parse_profile(avcodec_profile_t *aprofile, switch_xml_t profile)
|
||||
|
||||
if (ctx->profile == 0 && !strcasecmp(aprofile->name, "H264")) {
|
||||
if (!strcasecmp(value, "baseline")) {
|
||||
- ctx->profile = FF_PROFILE_H264_BASELINE;
|
||||
+ ctx->profile = AV_PROFILE_H264_BASELINE;
|
||||
} else if (!strcasecmp(value, "main")) {
|
||||
- ctx->profile = FF_PROFILE_H264_MAIN;
|
||||
+ ctx->profile = AV_PROFILE_H264_MAIN;
|
||||
} else if (!strcasecmp(value, "high")) {
|
||||
- ctx->profile = FF_PROFILE_H264_HIGH;
|
||||
+ ctx->profile = AV_PROFILE_H264_HIGH;
|
||||
}
|
||||
}
|
||||
} else if (!strcmp(name, "level")) {
|
||||
65
package/freeswitch/0003-apr-fix-musl-build.patch
Normal file
65
package/freeswitch/0003-apr-fix-musl-build.patch
Normal file
@@ -0,0 +1,65 @@
|
||||
From 81bbf05838fc24b221debfdf75ab8a4c7e7b260c Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Fri, 29 May 2026 08:14:32 +0200
|
||||
Subject: [PATCH] apr: fix musl build
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
strerror_r on musl always returns an int since its addition back in 2011
|
||||
with
|
||||
https://git.musl-libc.org/cgit/musl/commit/src/string/strerror_r.c?id=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01
|
||||
|
||||
Add defines created by freeswitch configure to apr subproject to fix the
|
||||
build error:
|
||||
|
||||
misc/unix/errorcodes.c: In function ‘native_strerror’:
|
||||
misc/unix/errorcodes.c:358:9: error: assignment to ‘const char *’ from
|
||||
‘int’ makes pointer from integer without a cast [-Wint-conversion]
|
||||
358 | msg = strerror_r(statcode, buf, bufsize);
|
||||
|
||||
Upstream: https://github.com/signalwire/freeswitch/pull/3046
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
libs/apr/misc/unix/errorcodes.c | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/libs/apr/misc/unix/errorcodes.c b/libs/apr/misc/unix/errorcodes.c
|
||||
index 3be0b25b93..93c428df62 100644
|
||||
--- a/libs/apr/misc/unix/errorcodes.c
|
||||
+++ b/libs/apr/misc/unix/errorcodes.c
|
||||
@@ -25,6 +25,9 @@
|
||||
#ifdef HAVE_DLFCN_H
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
+#ifndef WIN32
|
||||
+#include "../../../src/include/switch_private.h"
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* stuffbuffer - like fspr_cpystrn() but returns the address of the
|
||||
@@ -352,12 +355,20 @@ const char *strerror_r(fspr_status_t, char *, fspr_size_t);
|
||||
static char *native_strerror(fspr_status_t statcode, char *buf,
|
||||
fspr_size_t bufsize)
|
||||
{
|
||||
+#if defined(STRERROR_R_CHAR_P)
|
||||
const char *msg;
|
||||
+#else
|
||||
+ int msg;
|
||||
+#endif
|
||||
|
||||
buf[0] = '\0';
|
||||
msg = strerror_r(statcode, buf, bufsize);
|
||||
if (buf[0] == '\0') { /* libc didn't use our buffer */
|
||||
+#if defined(STRERROR_R_CHAR_P)
|
||||
return stuffbuffer(buf, bufsize, msg);
|
||||
+#else
|
||||
+ return stuffbuffer(buf, bufsize, (const char*)msg);
|
||||
+#endif
|
||||
}
|
||||
else {
|
||||
return buf;
|
||||
--
|
||||
2.47.3
|
||||
|
||||
47
package/freeswitch/Config.in
Normal file
47
package/freeswitch/Config.in
Normal file
@@ -0,0 +1,47 @@
|
||||
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 # uses wchar_t
|
||||
select BR2_PACKAGE_FFMPEG_SWSCALE if BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
|
||||
select BR2_PACKAGE_JPEG
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_PCRE2
|
||||
select BR2_PACKAGE_SOFIA_SIP
|
||||
select BR2_PACKAGE_SPANDSP
|
||||
select BR2_PACKAGE_SPEEX
|
||||
select BR2_PACKAGE_SPEEXDSP
|
||||
select BR2_PACKAGE_SQLITE
|
||||
select BR2_PACKAGE_TIFF
|
||||
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
|
||||
|
||||
config BR2_PACKAGE_FREESWITCH_OPENCV4
|
||||
bool
|
||||
default y
|
||||
depends on BR2_PACKAGE_OPENCV4
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC # objdetect
|
||||
depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS # objdetect
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # objdetect
|
||||
# src/mod/applications/mod_cv/mod_cv.cpp includes
|
||||
# highgui.h, imgproc.hpp & objdetect.hpp
|
||||
select BR2_PACKAGE_OPENCV4_LIB_HIGHGUI
|
||||
select BR2_PACKAGE_OPENCV4_LIB_IMGPROC
|
||||
select BR2_PACKAGE_OPENCV4_LIB_OBJDETECT
|
||||
|
||||
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
|
||||
9
package/freeswitch/freeswitch.hash
Normal file
9
package/freeswitch/freeswitch.hash
Normal file
@@ -0,0 +1,9 @@
|
||||
# From https://files.freeswitch.org/freeswitch-releases/freeswitch-1.11.3.-release.tar.xz.sha256
|
||||
sha256 4c93cbce869cf928bc9e8b3a48fe40337199b348ab668def77e3f739796a3852 freeswitch-1.11.3.-release.tar.xz
|
||||
# Locally computed
|
||||
sha256 75c933202f40939cdc3827fce20a1efdaa38291e2b5a65d234eb16e2cffda66a COPYING
|
||||
sha256 c3e3388768dae8bf4edcc4108f95be815b8a05c0b0aef6e4c3d8df81affdfa34 docs/OPENH264_BINARY_LICENSE.txt
|
||||
sha256 e8e26b16da14aa3e6ed5c22c705fdc1f45d6225fca461ea9f7314bcdfdc414c4 libs/apr/LICENSE
|
||||
sha256 8267348d5af1262c11d1a08de2f5afc77457755f1ac658627dd9acf71011d615 libs/libvpx/LICENSE
|
||||
sha256 2b2cc1180c7e6988328ad2033b04b80117419db9c4c584918bbb3cfec7e9364f libs/libyuv/LICENSE
|
||||
sha256 8e19d42a1eec9561f3f347253ddf2e385c55f392f025bb0fd41b88dbf38db5ae libs/srtp/LICENSE
|
||||
322
package/freeswitch/freeswitch.mk
Normal file
322
package/freeswitch/freeswitch.mk
Normal file
@@ -0,0 +1,322 @@
|
||||
################################################################################
|
||||
#
|
||||
# freeswitch
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FREESWITCH_VERSION = 1.11.3
|
||||
FREESWITCH_SOURCE = freeswitch-$(FREESWITCH_VERSION).-release.tar.xz
|
||||
FREESWITCH_SITE = https://files.freeswitch.org/freeswitch-releases
|
||||
# External modules need headers/libs from staging
|
||||
FREESWITCH_INSTALL_STAGING = YES
|
||||
FREESWITCH_LICENSE = MPL-1.1, \
|
||||
GPL-3.0+ with font exception (fonts), \
|
||||
Apache-2.0 (apr), \
|
||||
BSD-3-Clause (libsrtp)
|
||||
|
||||
FREESWITCH_LICENSE_FILES = \
|
||||
COPYING \
|
||||
libs/apr/LICENSE \
|
||||
libs/srtp/LICENSE
|
||||
|
||||
FREESWITCH_CPE_ID_VENDOR = freeswitch
|
||||
|
||||
# required dependencies
|
||||
FREESWITCH_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
jpeg \
|
||||
libcurl \
|
||||
openssl \
|
||||
pcre2 \
|
||||
spandsp \
|
||||
sofia-sip \
|
||||
speex \
|
||||
sqlite \
|
||||
tiff \
|
||||
util-linux \
|
||||
zlib
|
||||
|
||||
# disable display of ClueCon banner in fs_cli
|
||||
FREESWITCH_CONF_ENV += \
|
||||
disable_cc=yes
|
||||
|
||||
# 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
|
||||
|
||||
# disable pcap detection, pcap is an optional dependency for unit tests
|
||||
FREESWITCH_CONF_ENV += \
|
||||
ac_cv_prog_HAVE_PCAP_CONFIG=false
|
||||
|
||||
# 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 = \
|
||||
--without-erlang \
|
||||
--enable-fhs \
|
||||
--without-python3 \
|
||||
--disable-system-xmlrpc-c
|
||||
|
||||
# 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 \
|
||||
dialplans/mod_dialplan_asterisk \
|
||||
dialplans/mod_dialplan_xml \
|
||||
endpoints/mod_loopback \
|
||||
endpoints/mod_rtc \
|
||||
endpoints/mod_rtmp \
|
||||
endpoints/mod_sofia \
|
||||
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 \
|
||||
timers/mod_timerfd \
|
||||
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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
||||
FREESWITCH_DEPENDENCIES += alsa-lib
|
||||
FREESWITCH_ENABLED_MODULES += endpoints/mod_alsa
|
||||
endif
|
||||
|
||||
# Use the pass-through g729 module provided by freeswitch instead of
|
||||
# the external mod_bcg729 provided by freeswitch-mod-bcg729.
|
||||
ifeq ($(BR2_PACKAGE_FREESWITCH_MOD_BCG729),)
|
||||
FREESWITCH_ENABLED_MODULES += codecs/mod_g729
|
||||
endif
|
||||
|
||||
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_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
|
||||
else
|
||||
FREESWITCH_CONF_OPTS += --disable-core-libedit-support
|
||||
endif
|
||||
|
||||
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_LIBKS),y)
|
||||
FREESWITCH_DEPENDENCIES += libks
|
||||
FREESWITCH_ENABLED_MODULES += endpoints/mod_verto
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBMEMCACHED),y)
|
||||
FREESWITCH_DEPENDENCIES += libmemcached
|
||||
FREESWITCH_ENABLED_MODULES += applications/mod_memcache
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBOPENH264),y)
|
||||
FREESWITCH_LICENSE += , BSD-2-Clause (libopenh264)
|
||||
FREESWITCH_LICENSE_FILES += docs/OPENH264_BINARY_LICENSE.txt
|
||||
FREESWITCH_DEPENDENCIES += libopenh264
|
||||
FREESWITCH_ENABLED_MODULES += codecs/mod_openh264
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
||||
FREESWITCH_DEPENDENCIES += libpng
|
||||
FREESWITCH_ENABLED_MODULES += formats/mod_png
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
|
||||
FREESWITCH_DEPENDENCIES += libxcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LUA),y)
|
||||
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
|
||||
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
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
||||
FREESWITCH_DEPENDENCIES += libsndfile
|
||||
FREESWITCH_ENABLED_MODULES += formats/mod_sndfile
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_FREESWITCH_OPENCV4),y)
|
||||
FREESWITCH_DEPENDENCIES += opencv4
|
||||
FREESWITCH_ENABLED_MODULES += applications/mod_cv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
|
||||
FREESWITCH_CONF_ENV += \
|
||||
ac_cv_path_PG_CONFIG=$(STAGING_DIR)/usr/bin/pg_config
|
||||
FREESWITCH_DEPENDENCIES += postgresql
|
||||
FREESWITCH_ENABLED_MODULES += databases/mod_pgsql
|
||||
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_XZ),y)
|
||||
FREESWITCH_DEPENDENCIES += xz
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_4_8)$(BR2_PACKAGE_FFMPEG),yy)
|
||||
FREESWITCH_LICENSE += , BSD-3-Clause (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 applications/mod_fsv
|
||||
FREESWITCH_MAKE_ENV += CROSS=$(TARGET_CROSS)
|
||||
|
||||
# Freeswitch's buildsystem forgets to pass important environment
|
||||
# variables and config options when it configures libvpx, so
|
||||
# pre-build libvpx manually, so Freeswitch does not attempt to run
|
||||
# its flawed commands...
|
||||
# Freeswitch only ever uses the static libtrary, that's hard-coded,
|
||||
# we can't do anything about that...
|
||||
# From package/libvpx/libvpx.mk:
|
||||
# - this is not a true autotools package. It is based on the ffmpeg
|
||||
# build system.
|
||||
# - ld is being used with cc options. therefore, pretend ld is cc.
|
||||
define FREESWITCH_BUILD_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-shared --enable-static \
|
||||
--disable-examples \
|
||||
--disable-docs \
|
||||
--disable-unit-tests && \
|
||||
$(TARGET_MAKE_ENV) \
|
||||
$(LIBVPX_MAKE_ENV) \
|
||||
$(MAKE) \
|
||||
-C $(@D)/libs/libvpx \
|
||||
all
|
||||
endef
|
||||
FREESWITCH_PRE_BUILD_HOOKS += FREESWITCH_BUILD_LIBVPX
|
||||
|
||||
else
|
||||
FREESWITCH_CONF_OPTS += --disable-libvpx --disable-libyuv
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user