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 <willysr@slackbuilds.org>
This commit is contained in:
Jeremy Hansen 2024-06-05 22:24:34 -07:00 committed by Willy Sudiarto Raharjo
parent 911f12b32a
commit 95eb3f70f4

View file

@ -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"