diff options
author | Jeremy Hansen <jebrhansen+github@gmail.com> | 2024-06-05 22:24:34 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-06-07 08:13:33 +0700 |
commit | 95eb3f70f446aa24c9c33b36dadbb6908a6471c4 (patch) | |
tree | c79c303cc28a9033fc0ef3b4367b19b73d18c031 /multimedia | |
parent | 911f12b32ada4959ca1bc82cf124dfefa21b32cd (diff) |
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>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/HandBrake/HandBrake.SlackBuild | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/multimedia/HandBrake/HandBrake.SlackBuild b/multimedia/HandBrake/HandBrake.SlackBuild index 195a6ef68fe45..58e5f207f15ce 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" |