kodi: use -DFFMPEG_PATH

There's no need to pass the path to the build folder, use the path to
the installation instead.

From kodi's FindFFMPEG.cmake:
WARNING: this option is for developers as it will _disable ffmpeg version
checks_! Consider using FFMPEG_PATH instead, which _does_ check library
versions

Before:
-- Found FFMPEG: <snip>/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr (found version "undef")

After:
-- Found FFMPEG: <snip>/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include (found version "4.0")
This commit is contained in:
Andre Heider 2019-12-04 10:18:01 +01:00
parent 14cf8f3842
commit 50e872d770

View File

@ -213,9 +213,8 @@ configure_package() {
-DPYTHON_EXECUTABLE=$TOOLCHAIN/bin/$PKG_PYTHON_VERSION \
-DPYTHON_INCLUDE_DIRS=$SYSROOT_PREFIX/usr/include/$PKG_PYTHON_VERSION \
-DGIT_VERSION=$PKG_VERSION \
-DWITH_FFMPEG=$(get_build_dir ffmpeg) \
-DFFMPEG_PATH=$SYSROOT_PREFIX/usr \
-DENABLE_INTERNAL_FFMPEG=OFF \
-DFFMPEG_INCLUDE_DIRS=$SYSROOT_PREFIX/usr \
-DENABLE_INTERNAL_CROSSGUID=OFF \
-DENABLE_UDEV=ON \
-DENABLE_DBUS=ON \