Add X11 and all of its friends

This commit is contained in:
BtbN 2021-07-14 23:44:25 +02:00
parent 4b9fdabe83
commit f48d93e470
11 changed files with 357 additions and 2 deletions

42
scripts.d/45-x11/40-libx11.sh Executable file
View file

@ -0,0 +1,42 @@
#!/bin/bash
LIBX11_REPO="https://gitlab.freedesktop.org/xorg/lib/libx11.git"
LIBX11_COMMIT="d01d23374107f6fc55511f02559cf75be7bdf448"
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
}