package/linphone: add support for ffmpeg 3.0

Linphone 3.6 is incompatible with bumped mediastreamer and ortp
packages. Like Debian we use the bundled versions instead and add the
Debian patch series to support ffmpeg 3.0

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls 2016-03-28 21:49:31 +02:00 committed by Thomas Petazzoni
parent 1f11061e2c
commit dec0446654
3 changed files with 20 additions and 7 deletions

View File

@ -2,10 +2,8 @@ config BR2_PACKAGE_LINPHONE
bool "linphone"
select BR2_PACKAGE_LIBEXOSIP2
select BR2_PACKAGE_SPEEX
select BR2_PACKAGE_ORTP
select BR2_PACKAGE_MEDIASTREAMER
depends on BR2_INSTALL_LIBSTDCPP # mediastreamer
depends on BR2_TOOLCHAIN_HAS_THREADS # ortp
depends on BR2_INSTALL_LIBSTDCPP # mediastreamer (bundled)
depends on BR2_TOOLCHAIN_HAS_THREADS # ortp (bundled)
depends on BR2_USE_MMU # libeXosip2
help
Linphone is an internet phone or Voice Over IP phone (VoIP).

View File

@ -1,2 +1,6 @@
# Locally calculated after checking pgp signature
sha256 05ba81223e9378c3bce8d33080213b9925af49bd9623cd9004eb3dd22ca9d2a0 linphone-3.6.1.tar.gz
sha256 bc4ef670c0ecc1bb60bcb79374309b555c11d154bacfa363d809a26a58780933 libav9.patch
sha256 a50a8ac2caedb389c224f81393901a029fec055ec2ec83aa18d677e1bfe7fc73 libav10.patch
sha256 e384775c12ea93d3bc35dccfe4ea875c38b74be8af63fcb82e6b7f06e93d1593 libav11.patch
sha256 3367a26f65f49f4101787b1821402127d29cde9b02d3873112a5001a549cc7d9 ffmpeg_2.9.patch

View File

@ -8,15 +8,18 @@ LINPHONE_VERSION_MAJOR = 3.6
LINPHONE_VERSION = $(LINPHONE_VERSION_MAJOR).1
LINPHONE_SITE = http://download-mirror.savannah.gnu.org/releases/linphone/$(LINPHONE_VERSION_MAJOR).x/sources
LINPHONE_CONF_OPTS = \
--enable-external-ortp \
--enable-external-mediastreamer \
--disable-strict
# configure is out of sync causing deplibs linking issues
LINPHONE_AUTORECONF = YES
LINPHONE_INSTALL_STAGING = YES
LINPHONE_DEPENDENCIES = host-pkgconf ortp mediastreamer libeXosip2 speex
LINPHONE_DEPENDENCIES = host-pkgconf libeXosip2 speex
LINPHONE_LICENSE = GPLv2+
LINPHONE_LICENSE_FILES = COPYING
LINPHONE_PATCH = \
https://sources.debian.net/data/main/l/linphone/3.6.1-2.5/debian/patches/libav9.patch \
https://sources.debian.net/data/main/l/linphone/3.6.1-2.5/debian/patches/libav10.patch \
https://sources.debian.net/data/main/l/linphone/3.6.1-2.5/debian/patches/libav11.patch \
https://sources.debian.net/data/main/l/linphone/3.6.1-2.5/debian/patches/ffmpeg_2.9.patch
ifeq ($(BR2_arc),y)
# toolchain __arc__ define conflicts with libosip2 source
@ -30,4 +33,12 @@ else
LINPHONE_CONF_OPTS += --disable-gtk_ui
endif
# needed for bundled mediastreamer2
ifeq ($(BR2_PACKAGE_LIBV4L),y)
LINPHONE_CONF_OPTS += --enable-libv4l1 --enable-libv4l2
LINPHONE_DEPENDENCIES += libv4l
else
LINPHONE_CONF_OPTS += --disable-libv4l1 --disable-libv4l2
endif
$(eval $(autotools-package))