Update buidlroot to version 2016.08.1
This commit is contained in:
29
bsp/buildroot/package/freeswitch/0001-libvpx-cross.patch
Normal file
29
bsp/buildroot/package/freeswitch/0001-libvpx-cross.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
Fix cross-compiling libvpx
|
||||
|
||||
Freeswitch since version 1.6.7 only uses an in-tree-version of libvpx:
|
||||
https://freeswitch.org/fisheye/changelog/freeswitch?cs=febe0f8dacea2d2a31902b3dc469be757f8c3c4d
|
||||
|
||||
It is not possible to use an external version of libvpx anymore.
|
||||
Unfortunately the freeswitch build system has no support for cross-
|
||||
compiling libvpx so we need to patch Makefile to pass CROSS from
|
||||
package/freeswitch/freeswitch.mk and add target=generic-gnu as
|
||||
configure parameter:
|
||||
https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/libs/libvpx/README#110
|
||||
|
||||
And yes, autoreconf is also broken, so we patch Makefile.in instead
|
||||
of Makefile.am.
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
||||
|
||||
diff -uNr freeswitch-1.6.7.org/Makefile.in freeswitch-1.6.7/Makefile.in
|
||||
--- freeswitch-1.6.7.org/Makefile.in 2016-04-01 18:09:54.000000000 +0200
|
||||
+++ freeswitch-1.6.7/Makefile.in 2016-04-22 20:11:37.938961730 +0200
|
||||
@@ -3491,7 +3491,7 @@
|
||||
cd libs/libzrtp && $(MAKE)
|
||||
|
||||
libs/libvpx/Makefile:
|
||||
- cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)"
|
||||
+ cd libs/libvpx && CROSS=$(CROSS) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --target=generic-gnu --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)"
|
||||
|
||||
libs/libvpx/libvpx.a: libs/libvpx/Makefile
|
||||
@cd libs/libvpx && $(MAKE)
|
||||
35
bsp/buildroot/package/freeswitch/Config.in
Normal file
35
bsp/buildroot/package/freeswitch/Config.in
Normal file
@@ -0,0 +1,35 @@
|
||||
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_FFMPEG_AVRESAMPLE if BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_FFMPEG_SWSCALE if BR2_PACKAGE_FFMPEG
|
||||
select BR2_PACKAGE_LIBCURL
|
||||
select BR2_PACKAGE_JPEG
|
||||
# src/mod/applications/mod_cv/mod_cv.cpp includes
|
||||
# highgui.h, imgproc.hpp & objdetect.hpp
|
||||
select BR2_PACKAGE_OPENCV_LIB_HIGHGUI if BR2_PACKAGE_OPENCV
|
||||
select BR2_PACKAGE_OPENCV_LIB_IMGPROC if BR2_PACKAGE_OPENCV
|
||||
select BR2_PACKAGE_OPENCV_LIB_OBJDETECT if BR2_PACKAGE_OPENCV
|
||||
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
|
||||
2
bsp/buildroot/package/freeswitch/freeswitch.hash
Normal file
2
bsp/buildroot/package/freeswitch/freeswitch.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://files.freeswitch.org/freeswitch-releases/freeswitch-1.6.9.tar.xz.sha256
|
||||
sha256 aa5f191113be2bd44cb4f2108da3dcc37be3234c6b733896fbff97526ac66451 freeswitch-1.6.9.tar.xz
|
||||
291
bsp/buildroot/package/freeswitch/freeswitch.mk
Normal file
291
bsp/buildroot/package/freeswitch/freeswitch.mk
Normal file
@@ -0,0 +1,291 @@
|
||||
################################################################################
|
||||
#
|
||||
# freeswitch
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FREESWITCH_VERSION = 1.6.9
|
||||
FREESWITCH_SOURCE = freeswitch-$(FREESWITCH_VERSION).tar.xz
|
||||
FREESWITCH_SITE = http://files.freeswitch.org/freeswitch-releases
|
||||
FREESWITCH_LICENSE = MPLv1.1, \
|
||||
GPLv3+ with font exception (fonts), \
|
||||
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
|
||||
|
||||
# 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 = \
|
||||
--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_LICENSE_FILES += libs/libzrtp/src/zrtp_legal.c
|
||||
FREESWITCH_CONF_OPTS += --enable-zrtp
|
||||
else
|
||||
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
|
||||
|
||||
# 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 := $(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_ALSA_LIB),y)
|
||||
FREESWITCH_DEPENDENCIES += alsa-lib
|
||||
FREESWITCH_ENABLED_MODULES += endpoints/mod_alsa
|
||||
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_LIBLDNS),y)
|
||||
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
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBYAML),y)
|
||||
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_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_PORTAUDIO),y)
|
||||
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
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
|
||||
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_OPENCV),y)
|
||||
FREESWITCH_DEPENDENCIES += opencv
|
||||
FREESWITCH_ENABLED_MODULES += applications/mod_cv
|
||||
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 := $(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 applications/mod_fsv
|
||||
FREESWITCH_MAKE_ENV += CROSS=$(TARGET_CROSS)
|
||||
else
|
||||
FREESWITCH_CONF_OPTS += --disable-libvpx --disable-libyuv
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user