mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-28 23:58:42 +08:00
55 lines
1.2 KiB
Bash
55 lines
1.2 KiB
Bash
GIT=https://gitlab.redox-os.org/redox-os/mesa.git
|
|
GIT_UPSTREAM=git://anongit.freedesktop.org/mesa/mesa
|
|
GIT_BRANCH=redox
|
|
BUILD_DEPENDS=(expat zlib)
|
|
|
|
function recipe_version {
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_update {
|
|
echo "skipping update"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_build {
|
|
sysroot="$(realpath ../sysroot)"
|
|
export CFLAGS="-I$sysroot/include -DHAVE_PTHREAD=1"
|
|
export CPPFLAGS="-I$sysroot/include -DHAVE_PTHREAD=1"
|
|
export LDFLAGS="-L$sysroot/lib"
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
./configure \
|
|
--host="${HOST}" \
|
|
--prefix=/ \
|
|
--disable-dri \
|
|
--disable-dri3 \
|
|
--disable-driglx-direct \
|
|
--disable-egl \
|
|
--disable-glx \
|
|
--disable-gbm \
|
|
--disable-llvm \
|
|
--enable-gallium-osmesa \
|
|
--with-gallium-drivers=swrast \
|
|
--with-platforms=surfaceless
|
|
make -j"$(nproc)"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_test {
|
|
echo "skipping test"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
make clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
make DESTDIR="$dest" install
|
|
rm -f "$dest/lib/"*.la
|
|
skip=1
|
|
}
|