From 95eb3f70f446aa24c9c33b36dadbb6908a6471c4 Mon Sep 17 00:00:00 2001 From: Jeremy Hansen Date: Wed, 5 Jun 2024 22:24:34 -0700 Subject: [PATCH] multimedia/HandBrake: Fix compilation on 32bit systems x265 does not support 32bit compiling when enabling the 10 and 12 bit-depth. There does not seem to be a way to manually disable it with flags without removing x265 support altogether, so this commit changes the required entries to prevent it from compiling those bit-depths (8-bit is fine). Signed-off-by: Willy Sudiarto Raharjo --- multimedia/HandBrake/HandBrake.SlackBuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/multimedia/HandBrake/HandBrake.SlackBuild b/multimedia/HandBrake/HandBrake.SlackBuild index 195a6ef68f..58e5f207f1 100644 --- a/multimedia/HandBrake/HandBrake.SlackBuild +++ b/multimedia/HandBrake/HandBrake.SlackBuild @@ -90,6 +90,13 @@ find -L . \ # Correct dependency tarball naming inconsistency mv download/AMF-1.4.33-slim.tar.gz download/AMF-1.4.33.tar.gz +# Disable 10/12bit x265 on 32bit since it fails compilation +if echo "$ARCH" | grep -q "i.86"; then + sed -i '/1[02]bit/d' make/include/main.defs + sed -i '/1[02]bit/d;s|main.a \\|main.a|' contrib/x265/module.defs + sed -i 's|-DEXTRA_LIB="x265_main10.a;x265_main12.a" -DEXTRA_LINK_FLAGS=-L. -DLINKED_10BIT=ON -DLINKED_12BIT=ON ||' contrib/x265_8bit/module.defs +fi + # Make the GUI optional if [ "$GUI" == "no" ]; then GTK_GUI="--disable-gtk"