Add x265 and all its madness

This commit is contained in:
BtbN
2020-09-03 22:49:43 +02:00
parent 9ee8d5d019
commit 1b853bc960
11 changed files with 128 additions and 25 deletions

View File

@ -19,14 +19,16 @@ source "variants/${VARIANT}.sh"
source "variants/${TARGET}-${VARIANT}.sh"
for script in scripts.d/*.sh; do
CONFIGURE+=" $(get_output $script configure)"
CFLAGS+=" $(get_output $script cflags)"
LDFLAGS+=" $(get_output $script ldflags)"
FF_CONFIGURE+=" $(get_output $script configure)"
FF_CFLAGS+=" $(get_output $script cflags)"
FF_CXXFLAGS+=" $(get_output $script cxxflags)"
FF_LDFLAGS+=" $(get_output $script ldflags)"
done
CONFIGURE="$(xargs <<< "$CONFIGURE")"
CFLAGS="$(xargs <<< "$CFLAGS")"
LDFLAGS="$(xargs <<< "$LDFLAGS")"
FF_CONFIGURE="$(xargs <<< "$FF_CONFIGURE")"
FF_CFLAGS="$(xargs <<< "$FF_CFLAGS")"
FF_CXXFLAGS="$(xargs <<< "$FF_CXXFLAGS")"
FF_LDFLAGS="$(xargs <<< "$FF_LDFLAGS")"
rm -rf ffbuild
mkdir ffbuild
@ -40,7 +42,7 @@ docker run --rm -i -u "$(id -u):$(id -g)" -v $PWD/ffbuild:/ffbuild "$IMAGE" bash
cd ffmpeg
git checkout $GIT_BRANCH
./configure --prefix=/ffbuild/prefix --pkg-config-flags="--static" \$FFBUILD_TARGET_FLAGS $CONFIGURE --extra-cflags="$CFLAGS" --extra-ldflags="$LDFLAGS"
./configure --prefix=/ffbuild/prefix --pkg-config-flags="--static" \$FFBUILD_TARGET_FLAGS $FF_CONFIGURE --extra-cflags="$FF_CFLAGS" --extra-cxxflags="$FF_CXXFLAGS" --extra-ldflags="$FF_LDFLAGS"
make -j\$(nproc)
make install
EOF