mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Merge pull request #3414 from antonlacon/ffmpeg-gnutls
ffmpeg: shift to using gnutls
This commit is contained in:
commit
f1cc5ab23f
@ -2,8 +2,8 @@
|
|||||||
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="ffmpegx"
|
PKG_NAME="ffmpegx"
|
||||||
PKG_VERSION="4.1"
|
PKG_VERSION="4.1.3"
|
||||||
PKG_SHA256="7afb163d6974693cdad742aa1224c33683c50845c67ee5ae35506efc631ac121"
|
PKG_SHA256="271405b43f4953fcf0487c66bc455cf94bb7a10ffcb27f72a402463b87b2b8c9"
|
||||||
PKG_LICENSE="LGPLv2.1+"
|
PKG_LICENSE="LGPLv2.1+"
|
||||||
PKG_SITE="https://ffmpeg.org"
|
PKG_SITE="https://ffmpeg.org"
|
||||||
PKG_URL="https://github.com/FFmpeg/FFmpeg/archive/n${PKG_VERSION}.tar.gz"
|
PKG_URL="https://github.com/FFmpeg/FFmpeg/archive/n${PKG_VERSION}.tar.gz"
|
||||||
@ -34,11 +34,6 @@ fi
|
|||||||
pre_configure_target() {
|
pre_configure_target() {
|
||||||
cd $PKG_BUILD
|
cd $PKG_BUILD
|
||||||
rm -rf .$TARGET_NAME
|
rm -rf .$TARGET_NAME
|
||||||
|
|
||||||
# pass gnutls to build
|
|
||||||
PKG_CONFIG_PATH="$(get_build_dir gnutls)/.INSTALL_PKG/usr/lib/pkgconfig"
|
|
||||||
CFLAGS="$CFLAGS -I$(get_build_dir gnutls)/.INSTALL_PKG/usr/include"
|
|
||||||
LDFLAGS="$LDFLAGS -L$(get_build_dir gnutls)/.INSTALL_PKG/usr/lib"
|
|
||||||
|
|
||||||
if [ "$KODIPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
if [ "$KODIPLAYER_DRIVER" = "bcm2835-driver" ]; then
|
||||||
CFLAGS="$CFLAGS -DRPI=1 -I$SYSROOT_PREFIX/usr/include/IL"
|
CFLAGS="$CFLAGS -DRPI=1 -I$SYSROOT_PREFIX/usr/include/IL"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
120
|
||||||
|
- Use system gnutls
|
||||||
|
|
||||||
119
|
119
|
||||||
- Use system libidn2
|
- Use system libidn2
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ PKG_NAME="tvheadend42"
|
|||||||
PKG_VERSION="5c218500579d5bd1c1f7e7a4b5f7f0fb35baa626"
|
PKG_VERSION="5c218500579d5bd1c1f7e7a4b5f7f0fb35baa626"
|
||||||
PKG_SHA256="a9fe5a4c36aa185e3f0a73a709f0dc05794ae9c12f5d888985b559ff68a2508d"
|
PKG_SHA256="a9fe5a4c36aa185e3f0a73a709f0dc05794ae9c12f5d888985b559ff68a2508d"
|
||||||
PKG_VERSION_NUMBER="4.2.7-44"
|
PKG_VERSION_NUMBER="4.2.7-44"
|
||||||
PKG_REV="119"
|
PKG_REV="120"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://www.tvheadend.org"
|
PKG_SITE="http://www.tvheadend.org"
|
||||||
@ -86,9 +86,6 @@ pre_configure_target() {
|
|||||||
CFLAGS="$CFLAGS -I$(get_build_dir ffmpegx)/.INSTALL_PKG/usr/local/include"
|
CFLAGS="$CFLAGS -I$(get_build_dir ffmpegx)/.INSTALL_PKG/usr/local/include"
|
||||||
LDFLAGS="$LDFLAGS -L$(get_build_dir ffmpegx)/.INSTALL_PKG/usr/local/lib"
|
LDFLAGS="$LDFLAGS -L$(get_build_dir ffmpegx)/.INSTALL_PKG/usr/local/lib"
|
||||||
|
|
||||||
# pass gnutls to build
|
|
||||||
LDFLAGS="$LDFLAGS -L$(get_build_dir gnutls)/.INSTALL_PKG/usr/lib"
|
|
||||||
|
|
||||||
# pass libhdhomerun to build
|
# pass libhdhomerun to build
|
||||||
CFLAGS="$CFLAGS -I$(get_build_dir libhdhomerun)"
|
CFLAGS="$CFLAGS -I$(get_build_dir libhdhomerun)"
|
||||||
|
|
||||||
@ -109,13 +106,6 @@ addon() {
|
|||||||
|
|
||||||
cp $PKG_DIR/addon.xml $ADDON_BUILD/$PKG_ADDON_ID
|
cp $PKG_DIR/addon.xml $ADDON_BUILD/$PKG_ADDON_ID
|
||||||
|
|
||||||
# copy gnutls lib that is needed for ffmpeg
|
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir gnutls)/.INSTALL_PKG/usr/lib/libgnutls.so.30 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir nettle)/.install_pkg/usr/lib/libnettle.so.6 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir nettle)/.install_pkg/usr/lib/libhogweed.so.4 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir gmp)/.install_pkg/usr/lib/libgmp.so.10 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
|
|
||||||
# set only version (revision will be added by buildsystem)
|
# set only version (revision will be added by buildsystem)
|
||||||
sed -e "s|@ADDON_VERSION@|$ADDON_VERSION|g" \
|
sed -e "s|@ADDON_VERSION@|$ADDON_VERSION|g" \
|
||||||
-i $ADDON_BUILD/$PKG_ADDON_ID/addon.xml
|
-i $ADDON_BUILD/$PKG_ADDON_ID/addon.xml
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
107
|
||||||
|
- Use system gnutls
|
||||||
|
- Update FFmpeg to 4.1.3
|
||||||
|
|
||||||
106
|
106
|
||||||
- Use system libidn2
|
- Use system libidn2
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
PKG_NAME="ffmpeg-tools"
|
PKG_NAME="ffmpeg-tools"
|
||||||
PKG_VERSION="1.0"
|
PKG_VERSION="1.0"
|
||||||
PKG_REV="106"
|
PKG_REV="107"
|
||||||
PKG_ARCH="any"
|
PKG_ARCH="any"
|
||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://libreelec.tv"
|
PKG_SITE="https://libreelec.tv"
|
||||||
@ -20,11 +20,4 @@ PKG_ADDON_TYPE="xbmc.python.script"
|
|||||||
addon() {
|
addon() {
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin/
|
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/bin/
|
||||||
cp -L $(get_build_dir ffmpegx)/.INSTALL_PKG/usr/local/bin/* $ADDON_BUILD/$PKG_ADDON_ID/bin
|
cp -L $(get_build_dir ffmpegx)/.INSTALL_PKG/usr/local/bin/* $ADDON_BUILD/$PKG_ADDON_ID/bin
|
||||||
|
|
||||||
# copy gnutls lib that is needed for ffmpeg
|
|
||||||
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir gmp)/.install_pkg/usr/lib/libgmp.so.10 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir gnutls)/.INSTALL_PKG/usr/lib/libgnutls.so.30 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir nettle)/.install_pkg/usr/lib/libhogweed.so.4 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
cp -PL $(get_build_dir nettle)/.install_pkg/usr/lib/libnettle.so.6 $ADDON_BUILD/$PKG_ADDON_ID/lib
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ PKG_SHA256="68535cc2a000946b62ce4be6edf7dda7900bd524f22bcb826800b94f4a873314"
|
|||||||
PKG_LICENSE="LGPLv2.1+"
|
PKG_LICENSE="LGPLv2.1+"
|
||||||
PKG_SITE="https://ffmpeg.org"
|
PKG_SITE="https://ffmpeg.org"
|
||||||
PKG_URL="https://github.com/xbmc/FFmpeg/archive/${PKG_VERSION}.tar.gz"
|
PKG_URL="https://github.com/xbmc/FFmpeg/archive/${PKG_VERSION}.tar.gz"
|
||||||
PKG_DEPENDS_TARGET="toolchain zlib bzip2 openssl speex"
|
PKG_DEPENDS_TARGET="toolchain zlib bzip2 gnutls speex"
|
||||||
PKG_LONGDESC="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video."
|
PKG_LONGDESC="FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video."
|
||||||
PKG_BUILD_FLAGS="-gold"
|
PKG_BUILD_FLAGS="-gold"
|
||||||
|
|
||||||
@ -112,7 +112,6 @@ configure_target() {
|
|||||||
--enable-shared \
|
--enable-shared \
|
||||||
--enable-gpl \
|
--enable-gpl \
|
||||||
--disable-version3 \
|
--disable-version3 \
|
||||||
--enable-nonfree \
|
|
||||||
--enable-logging \
|
--enable-logging \
|
||||||
--disable-doc \
|
--disable-doc \
|
||||||
$PKG_FFMPEG_DEBUG \
|
$PKG_FFMPEG_DEBUG \
|
||||||
@ -130,7 +129,7 @@ configure_target() {
|
|||||||
--disable-devices \
|
--disable-devices \
|
||||||
--enable-pthreads \
|
--enable-pthreads \
|
||||||
--enable-network \
|
--enable-network \
|
||||||
--disable-gnutls --enable-openssl \
|
--enable-gnutls --disable-openssl \
|
||||||
--disable-gray \
|
--disable-gray \
|
||||||
--enable-swscale-alpha \
|
--enable-swscale-alpha \
|
||||||
--disable-small \
|
--disable-small \
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
PKG_NAME="gnutls"
|
PKG_NAME="gnutls"
|
||||||
PKG_VERSION="3.6.5"
|
PKG_VERSION="3.6.7.1"
|
||||||
PKG_SHA256="073eced3acef49a3883e69ffd5f0f0b5f46e2760ad86eddc6c0866df4e7abb35"
|
PKG_SHA256="881b26409ecd8ea4c514fd3fbdb6fae5fab422ca7b71116260e263940a4bbbad"
|
||||||
PKG_LICENSE="LGPL2.1"
|
PKG_LICENSE="LGPL2.1"
|
||||||
PKG_SITE="https://gnutls.org"
|
PKG_SITE="https://gnutls.org"
|
||||||
PKG_URL="https://www.gnupg.org/ftp/gcrypt/gnutls/v${PKG_VERSION%.*}/gnutls-$PKG_VERSION.tar.xz"
|
PKG_URL="https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_DEPENDS_TARGET="toolchain libidn2 nettle zlib"
|
PKG_DEPENDS_TARGET="toolchain libidn2 nettle zlib"
|
||||||
PKG_LONGDESC="A library which provides a secure layer over a reliable transport layer."
|
PKG_LONGDESC="A library which provides a secure layer over a reliable transport layer."
|
||||||
|
|
||||||
@ -25,6 +25,3 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-doc \
|
|||||||
--with-included-unistring \
|
--with-included-unistring \
|
||||||
--without-p11-kit \
|
--without-p11-kit \
|
||||||
--without-tpm"
|
--without-tpm"
|
||||||
makeinstall_target() {
|
|
||||||
make install DESTDIR="$INSTALL/../.INSTALL_PKG"
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user