mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
ffmpeg-tools: enable lib.private via RPATH
This commit is contained in:
parent
5ed467fa06
commit
01329fa756
@ -19,17 +19,18 @@ PKG_ADDON_NAME="FFmpeg Tools"
|
|||||||
PKG_ADDON_TYPE="xbmc.python.script"
|
PKG_ADDON_TYPE="xbmc.python.script"
|
||||||
|
|
||||||
addon() {
|
addon() {
|
||||||
mkdir -p ${ADDON_BUILD}/${PKG_ADDON_ID}/{bin,lib}
|
mkdir -p ${ADDON_BUILD}/${PKG_ADDON_ID}/{bin,lib.private}
|
||||||
|
|
||||||
cp -L $(get_install_dir ffmpegx)/usr/local/bin/* ${ADDON_BUILD}/${PKG_ADDON_ID}/bin
|
cp -L $(get_install_dir ffmpegx)/usr/local/bin/* ${ADDON_BUILD}/${PKG_ADDON_ID}/bin
|
||||||
|
patchelf --add-rpath '$ORIGIN/../lib.private' ${ADDON_BUILD}/${PKG_ADDON_ID}/bin/*
|
||||||
|
|
||||||
# libs
|
# libs
|
||||||
if [ "${TARGET_ARCH}" = "x86_64" ]; then
|
if [ "${TARGET_ARCH}" = "x86_64" ]; then
|
||||||
cp -PL $(get_install_dir x265)/usr/lib/libx265.so.199 \
|
cp -PL $(get_install_dir x265)/usr/lib/libx265.so.199 \
|
||||||
${ADDON_BUILD}/${PKG_ADDON_ID}/lib
|
${ADDON_BUILD}/${PKG_ADDON_ID}/lib.private
|
||||||
fi
|
fi
|
||||||
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
if [ "${DISPLAYSERVER}" = "x11" ]; then
|
||||||
cp -PL $(get_install_dir libxcb)/usr/lib/{libxcb.so.1,libxcb-shm.so.0,libxcb-shape.so.0,libxcb-xfixes.so.0} \
|
cp -PL $(get_install_dir libxcb)/usr/lib/{libxcb.so.1,libxcb-shm.so.0,libxcb-shape.so.0,libxcb-xfixes.so.0} \
|
||||||
${ADDON_BUILD}/${PKG_ADDON_ID}/lib
|
${ADDON_BUILD}/${PKG_ADDON_ID}/lib.private
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user