FFmpeg-Builds/scripts.d/45-x11/40-libx11.sh

45 lines
913 B
Bash
Raw Normal View History

2021-07-14 21:44:25 +00:00
#!/bin/bash
LIBX11_REPO="https://gitlab.freedesktop.org/xorg/lib/libx11.git"
2021-12-05 20:10:10 +00:00
LIBX11_COMMIT="934417b1e89fe715b9cf6c0d62a3867fa1f5bccb"
2021-07-14 21:44:25 +00:00
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
2021-07-16 13:12:56 +00:00
echo "Libs.private: -ldl" >> "$FFBUILD_PREFIX"/lib/pkgconfig/x11.pc
2021-07-14 21:44:25 +00:00
}