42 lines
847 B
Bash
Executable file
42 lines
847 B
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
|
|
SCRIPT_COMMIT="dba80d0158b587de91640fae5c0b420c23599d1e"
|
|
|
|
ffbuild_enabled() {
|
|
[[ $TARGET != linux* ]] && return -1
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" glvnd
|
|
cd glvnd
|
|
|
|
mkdir build && cd build
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--buildtype=release
|
|
--default-library=static
|
|
-Dasm=enabled
|
|
-Dx11=enabled
|
|
-Degl=true
|
|
-Dglx=enabled
|
|
-Dgles1=true
|
|
-Dgles2=true
|
|
-Dheaders=true
|
|
)
|
|
|
|
if [[ $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--cross-file=/cross.meson
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
meson "${myconf[@]}" ..
|
|
ninja -j"$(nproc)"
|
|
ninja install
|
|
}
|