From 043555c78f40207c98b69c2ec287de71078c8778 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 11 Apr 2022 14:51:37 +0200 Subject: install_deps: Tweak rBbc9c9631a46f, libwebp is not only a dependency from ffmpeg. --- build_files/build_environment/install_deps.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'build_files') diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh index 8018ac8ff1a..ecf5d215333 100755 --- a/build_files/build_environment/install_deps.sh +++ b/build_files/build_environment/install_deps.sh @@ -4004,6 +4004,7 @@ install_DEB() { WEBP_DEV="libwebp-dev" check_package_DEB $WEBP_DEV if [ $? -eq 0 ]; then + install_packages_DEB $WEBP_DEV WEBP_USE=true fi @@ -4435,9 +4436,6 @@ install_DEB() { if [ "$VPX_USE" = true ]; then _packages="$_packages $VPX_DEV" fi - if [ "$WEBP_USE" = true ]; then - _packages="$_packages $WEBP_DEV" - fi if [ "$OPUS_USE" = true ]; then _packages="$_packages $OPUS_DEV" fi @@ -4722,6 +4720,7 @@ install_RPM() { WEBP_DEV="libwebp-devel" check_package_RPM $WEBP_DEV if [ $? -eq 0 ]; then + install_packages_RPM $WEBP_DEV WEBP_USE=true fi @@ -5124,9 +5123,6 @@ install_RPM() { if [ "$VPX_USE" = true ]; then _packages="$_packages $VPX_DEV" fi - if [ "$WEBP_USE" = true ]; then - _packages="$_packages $WEBP_DEV" - fi if [ "$OPUS_USE" = true ]; then _packages="$_packages $OPUS_DEV" fi @@ -5300,6 +5296,7 @@ install_ARCH() { WEBP_DEV="libwebp" check_package_ARCH $WEBP_DEV if [ $? -eq 0 ]; then + install_packages_ARCH $WEBP_DEV WEBP_USE=true fi @@ -5704,16 +5701,12 @@ install_ARCH() { if [ "$VPX_USE" = true ]; then _packages="$_packages $VPX_DEV" fi - if [ "$WEBP_USE" = true ]; then - _packages="$_packages $WEBP_DEV" - fi if [ "$OPUS_USE" = true ]; then _packages="$_packages $OPUS_DEV" fi if [ "$MP3LAME_USE" = true ]; then _packages="$_packages $MP3LAME_DEV" fi - install_packages_ARCH $_packages compile_FFmpeg fi @@ -5961,6 +5954,12 @@ print_info() { fi fi + if [ "$WEBP_USE" = true ]; then + _1="-D WITH_IMAGE_WEBP=ON" + PRINT " $_1" + _buildargs="$_buildargs $_1" + fi + if [ -d $INST/openexr ]; then _1="-D OPENEXR_ROOT_DIR=$INST/openexr" PRINT " $_1" -- cgit v1.2.3