FFmpeg-Builds/scripts.d/45-x11/40-libx11.sh
2021-10-28 21:28:11 +02:00

44 lines
913 B
Bash
Executable file

#!/bin/bash
LIBX11_REPO="https://gitlab.freedesktop.org/xorg/lib/libx11.git"
LIBX11_COMMIT="2356e59ff24f8d1b25cdc4dffc5171c65dc2b86e"
ffbuild_enabled() {
[[ $TARGET != linux* ]] && return -1
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$LIBX11_REPO" "$LIBX11_COMMIT" libx11
cd libx11
autoreconf -i
local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-shared
--enable-static
--with-pic
--without-xmlto
--without-fop
--without-xsltproc
--without-lint
--disable-specs
--enable-ipv6
)
if [[ $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
echo "Libs.private: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/x11.pc
}