Use cmake for SDL, add more X11 dependencies
This commit is contained in:
parent
3efcb24f50
commit
5aa01f37e3
8 changed files with 268 additions and 31 deletions
36
scripts.d/45-x11/50-libxi.sh
Executable file
36
scripts.d/45-x11/50-libxi.sh
Executable file
|
@ -0,0 +1,36 @@
|
|||
#!/bin/bash
|
||||
|
||||
LIBXI_REPO="https://gitlab.freedesktop.org/xorg/lib/libxi.git"
|
||||
LIBXI_COMMIT="f24d7f43ab4d97203e60677a3d42e11dbc80c8b4"
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET != linux* ]] && return -1
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerbuild() {
|
||||
git-mini-clone "$LIBXI_REPO" "$LIBXI_COMMIT" libxi
|
||||
cd libxi
|
||||
|
||||
autoreconf -i
|
||||
|
||||
local myconf=(
|
||||
--prefix="$FFBUILD_PREFIX"
|
||||
--disable-shared
|
||||
--enable-static
|
||||
--with-pic
|
||||
)
|
||||
|
||||
if [[ $TARGET == linux* ]]; then
|
||||
myconf+=(
|
||||
--host="$FFBUILD_TOOLCHAIN"
|
||||
)
|
||||
else
|
||||
echo "Unknown target"
|
||||
return -1
|
||||
fi
|
||||
|
||||
./configure "${myconf[@]}"
|
||||
make -j$(nproc)
|
||||
make install
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue