mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-05-02 15:44:32 +02:00
46 lines
830 B
Bash
Executable File
46 lines
830 B
Bash
Executable File
#!/bin/bash
|
|
|
|
LIBXCB_REPO="https://gitlab.freedesktop.org/xorg/lib/libxcb.git"
|
|
LIBXCB_COMMIT="233d7b7f1f03ef18bf3955eb1f20421e745d22f0"
|
|
|
|
ffbuild_enabled() {
|
|
[[ $TARGET != linux* ]] && return -1
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$LIBXCB_REPO" "$LIBXCB_COMMIT" libxcb
|
|
cd libxcb
|
|
|
|
autoreconf -i
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--disable-shared
|
|
--enable-static
|
|
--with-pic
|
|
--disable-devel-docs
|
|
)
|
|
|
|
if [[ $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
./configure "${myconf[@]}"
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-libxcb
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-libxcb
|
|
}
|