mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
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:
parent
911f12b32a
commit
95eb3f70f4
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue