mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Merge pull request #6846 from HiassofT/le11-ffmpeg-openssl
Switch ffmpeg from gnutls to openssl
This commit is contained in:
commit
90a6f3e308
@ -7,7 +7,7 @@ PKG_SHA256="06b10a183ce5371f915c6bb15b7b1fffbe046e8275099c96affc29e17645d909"
|
||||
PKG_LICENSE="LGPLv2.1+"
|
||||
PKG_SITE="https://ffmpeg.org"
|
||||
PKG_URL="https://ffmpeg.org/releases/ffmpeg-${PKG_VERSION}.tar.xz"
|
||||
PKG_DEPENDS_TARGET="toolchain aom bzip2 gnutls lame libvorbis opus x264 zlib"
|
||||
PKG_DEPENDS_TARGET="toolchain aom bzip2 openssl lame libvorbis opus x264 zlib"
|
||||
PKG_LONGDESC="FFmpegx is an complete FFmpeg build to support encoding and decoding."
|
||||
PKG_BUILD_FLAGS="-gold -sysroot"
|
||||
|
||||
@ -123,6 +123,7 @@ configure_target() {
|
||||
\
|
||||
`#Licensing options` \
|
||||
--enable-gpl \
|
||||
--enable-version3 \
|
||||
\
|
||||
`#Documentation options` \
|
||||
--disable-doc \
|
||||
@ -160,8 +161,8 @@ configure_target() {
|
||||
--extra-ldflags="${LDFLAGS}" \
|
||||
--extra-libs="${PKG_FFMPEG_LIBS}" \
|
||||
--enable-pic \
|
||||
--enable-gnutls \
|
||||
--disable-openssl \
|
||||
--disable-gnutls \
|
||||
--enable-openssl \
|
||||
\
|
||||
`#Advanced options` \
|
||||
--disable-hardcoded-tables \
|
||||
|
@ -0,0 +1,44 @@
|
||||
From 1d23e125b6f76e74b754560c3b6931507cacddce Mon Sep 17 00:00:00 2001
|
||||
From: Timo Rothenpieler <timo@rothenpieler.org>
|
||||
Date: Tue, 7 Sep 2021 19:35:31 +0200
|
||||
Subject: [PATCH] configure: account for openssl3 license change
|
||||
|
||||
---
|
||||
configure | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index c87a010387..ed7345b2c1 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -1765,7 +1765,6 @@ EXTERNAL_LIBRARY_GPL_LIST="
|
||||
EXTERNAL_LIBRARY_NONFREE_LIST="
|
||||
decklink
|
||||
libfdk_aac
|
||||
- openssl
|
||||
libtls
|
||||
"
|
||||
|
||||
@@ -1857,6 +1856,7 @@ EXTERNAL_LIBRARY_LIST="
|
||||
mediacodec
|
||||
openal
|
||||
opengl
|
||||
+ openssl
|
||||
pocketsphinx
|
||||
vapoursynth
|
||||
"
|
||||
@@ -6572,7 +6572,10 @@ enabled omx_rpi && { test_code cc OMX_Core.h OMX_IndexConfigBrcmVideoR
|
||||
die "ERROR: OpenMAX IL headers from raspberrypi/firmware not found"; } &&
|
||||
enable omx
|
||||
enabled omx && require_headers OMX_Core.h
|
||||
-enabled openssl && { check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
|
||||
+enabled openssl && { { check_pkg_config openssl "openssl >= 3.0.0" openssl/ssl.h OPENSSL_init_ssl &&
|
||||
+ { enabled gplv3 || ! enabled gpl || enabled nonfree || die "ERROR: OpenSSL >=3.0.0 requires --enable-version3"; }; } ||
|
||||
+ { enabled gpl && ! enabled nonfree && die "ERROR: OpenSSL <3.0.0 is incompatible with the gpl"; } ||
|
||||
+ check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
|
||||
check_pkg_config openssl openssl openssl/ssl.h SSL_library_init ||
|
||||
check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
|
||||
check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||
|
||||
--
|
||||
2.34.1
|
||||
|
@ -1,3 +1,9 @@
|
||||
119
|
||||
- Switch FFmpeg to openssl3
|
||||
|
||||
118
|
||||
- Add missing libraries
|
||||
|
||||
117
|
||||
- Update aom (AV1) to 3.2.0
|
||||
- Update VPX to 1.11.0
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
PKG_NAME="ffmpeg-tools"
|
||||
PKG_VERSION="1.0"
|
||||
PKG_REV="118"
|
||||
PKG_REV="119"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://libreelec.tv"
|
||||
|
@ -4,12 +4,12 @@
|
||||
PKG_NAME="inputstream.ffmpegdirect"
|
||||
PKG_VERSION="20.4.0-Nexus"
|
||||
PKG_SHA256="361fb0a617fa8184ecc8d51885a9306597bacc9eef2c6578a061811e78b0d3e6"
|
||||
PKG_REV="2"
|
||||
PKG_REV="3"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL2+"
|
||||
PKG_SITE="https://github.com/xbmc/inputstream.ffmpegdirect"
|
||||
PKG_URL="https://github.com/xbmc/inputstream.ffmpegdirect/archive/${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain kodi-platform bzip2 ffmpeg gmp gnutls libpng libxml2 nettle xz zlib zvbi"
|
||||
PKG_DEPENDS_TARGET="toolchain kodi-platform bzip2 ffmpeg gmp libpng libxml2 xz zlib zvbi"
|
||||
PKG_SECTION=""
|
||||
PKG_SHORTDESC="inputstream.ffmpegdirect"
|
||||
PKG_LONGDESC="InputStream Client for streams that can be opened by FFmpeg's libavformat such as plain TS, HLS and DASH (without DRM) streams."
|
||||
|
@ -5,7 +5,7 @@
|
||||
PKG_NAME="ffmpeg"
|
||||
PKG_LICENSE="LGPLv2.1+"
|
||||
PKG_SITE="https://ffmpeg.org"
|
||||
PKG_DEPENDS_TARGET="toolchain zlib bzip2 gnutls speex"
|
||||
PKG_DEPENDS_TARGET="toolchain zlib bzip2 openssl speex"
|
||||
PKG_LONGDESC="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video."
|
||||
PKG_BUILD_FLAGS="-gold"
|
||||
|
||||
@ -147,7 +147,7 @@ configure_target() {
|
||||
--disable-static \
|
||||
--enable-shared \
|
||||
--enable-gpl \
|
||||
--disable-version3 \
|
||||
--enable-version3 \
|
||||
--enable-logging \
|
||||
--disable-doc \
|
||||
${PKG_FFMPEG_DEBUG} \
|
||||
@ -164,7 +164,7 @@ configure_target() {
|
||||
--disable-devices \
|
||||
--enable-pthreads \
|
||||
--enable-network \
|
||||
--enable-gnutls --disable-openssl \
|
||||
--disable-gnutls --enable-openssl \
|
||||
--disable-gray \
|
||||
--enable-swscale-alpha \
|
||||
--disable-small \
|
||||
|
44
packages/multimedia/ffmpeg/patches/ffmpeg-openssl3.patch
Normal file
44
packages/multimedia/ffmpeg/patches/ffmpeg-openssl3.patch
Normal file
@ -0,0 +1,44 @@
|
||||
From 1d23e125b6f76e74b754560c3b6931507cacddce Mon Sep 17 00:00:00 2001
|
||||
From: Timo Rothenpieler <timo@rothenpieler.org>
|
||||
Date: Tue, 7 Sep 2021 19:35:31 +0200
|
||||
Subject: [PATCH] configure: account for openssl3 license change
|
||||
|
||||
---
|
||||
configure | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index c87a010387..ed7345b2c1 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -1765,7 +1765,6 @@ EXTERNAL_LIBRARY_GPL_LIST="
|
||||
EXTERNAL_LIBRARY_NONFREE_LIST="
|
||||
decklink
|
||||
libfdk_aac
|
||||
- openssl
|
||||
libtls
|
||||
"
|
||||
|
||||
@@ -1857,6 +1856,7 @@ EXTERNAL_LIBRARY_LIST="
|
||||
mediacodec
|
||||
openal
|
||||
opengl
|
||||
+ openssl
|
||||
pocketsphinx
|
||||
vapoursynth
|
||||
"
|
||||
@@ -6572,7 +6572,10 @@ enabled omx_rpi && { test_code cc OMX_Core.h OMX_IndexConfigBrcmVideoR
|
||||
die "ERROR: OpenMAX IL headers from raspberrypi/firmware not found"; } &&
|
||||
enable omx
|
||||
enabled omx && require_headers OMX_Core.h
|
||||
-enabled openssl && { check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
|
||||
+enabled openssl && { { check_pkg_config openssl "openssl >= 3.0.0" openssl/ssl.h OPENSSL_init_ssl &&
|
||||
+ { enabled gplv3 || ! enabled gpl || enabled nonfree || die "ERROR: OpenSSL >=3.0.0 requires --enable-version3"; }; } ||
|
||||
+ { enabled gpl && ! enabled nonfree && die "ERROR: OpenSSL <3.0.0 is incompatible with the gpl"; } ||
|
||||
+ check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
|
||||
check_pkg_config openssl openssl openssl/ssl.h SSL_library_init ||
|
||||
check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
|
||||
check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||
|
||||
--
|
||||
2.34.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user