2019-03-26 15:59:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2018-07-16 20:45:36 +02:00
|
|
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
2018-02-25 12:05:07 +01:00
|
|
|
|
|
|
|
|
PKG_NAME="ffmpeg-tools"
|
|
|
|
|
PKG_VERSION="1.0"
|
2025-06-20 12:02:51 +00:00
|
|
|
PKG_REV="0"
|
2018-02-25 12:05:07 +01:00
|
|
|
PKG_ARCH="any"
|
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
|
PKG_SITE="https://libreelec.tv"
|
|
|
|
|
PKG_URL=""
|
|
|
|
|
PKG_DEPENDS_TARGET="toolchain ffmpegx"
|
|
|
|
|
PKG_SECTION="tools"
|
2023-11-04 11:45:00 +00:00
|
|
|
PKG_SHORTDESC="FFmpeg binary for audio/video manipulating."
|
|
|
|
|
PKG_LONGDESC="FFmpeg binary for transcoding and audio/video manipulating."
|
2018-02-25 12:05:07 +01:00
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
|
|
|
|
|
PKG_IS_ADDON="yes"
|
|
|
|
|
PKG_ADDON_NAME="FFmpeg Tools"
|
|
|
|
|
PKG_ADDON_TYPE="xbmc.python.script"
|
|
|
|
|
|
|
|
|
|
addon() {
|
2023-11-18 11:08:07 +00:00
|
|
|
mkdir -p ${ADDON_BUILD}/${PKG_ADDON_ID}/{bin,lib.private}
|
2022-04-18 12:48:10 +00:00
|
|
|
|
2021-01-19 19:33:41 +00:00
|
|
|
cp -L $(get_install_dir ffmpegx)/usr/local/bin/* ${ADDON_BUILD}/${PKG_ADDON_ID}/bin
|
2024-04-14 21:14:25 -04:00
|
|
|
patchelf --add-rpath '${ORIGIN}/../lib.private' ${ADDON_BUILD}/${PKG_ADDON_ID}/bin/*
|
2022-04-18 12:48:10 +00:00
|
|
|
|
|
|
|
|
# libs
|
|
|
|
|
if [ "${TARGET_ARCH}" = "x86_64" ]; then
|
2024-12-15 07:10:07 +00:00
|
|
|
cp -PL $(get_install_dir x265)/usr/lib/libx265.so.215 \
|
2023-11-18 11:08:07 +00:00
|
|
|
${ADDON_BUILD}/${PKG_ADDON_ID}/lib.private
|
2022-04-18 12:48:10 +00:00
|
|
|
fi
|
2018-02-25 12:05:07 +01:00
|
|
|
}
|