ffmpegx: only depend on intel-vaapi-driver if intel drivers are build

Fixes compilation with GRAPHIC_DRIVERS="virtio"
This commit is contained in:
Andre Heider 2020-02-10 08:20:25 +01:00
parent 748d7e78de
commit 5ff572a827

View File

@ -19,7 +19,11 @@ if [ "$KODIPLAYER_DRIVER" = "bcm2835-driver" ]; then
fi
if [ "$TARGET_ARCH" = "x86_64" ]; then
PKG_DEPENDS_TARGET+=" nasm:host intel-vaapi-driver x265"
PKG_DEPENDS_TARGET+=" nasm:host x265"
if listcontains "$GRAPHIC_DRIVERS" "(iris|i915|i965)"; then
PKG_DEPENDS_TARGET+=" intel-vaapi-driver"
fi
fi
if [[ ! $TARGET_ARCH = arm ]] || target_has_feature neon; then