termux-packages/x11-packages/mesa/build.sh
Leonid Pliushch 6380dacf03
disable glx as it causes problems on some devices
Fixes https://github.com/termux/x11-packages/issues/16.

 This undo changes introduced in the following commits:

  * bf945ba417bfd2ba661287fa1d4d25cf1da052d0.
  * a954c554e02b2b8faae3a336101bf5539832c476.
  * effb70f99fb7d0e3f3010dc926cec4e0ca612922.
  * cd0f20c8bd6f01e7b55491a6009f2826db355a97.
2022-04-18 14:08:35 +05:30

42 lines
1.2 KiB
Bash

TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_HOMEPAGE=https://www.mesa3d.org
TERMUX_PKG_DESCRIPTION="An open-source implementation of the OpenGL specification"
## Use 17.3.x branch because 18.x.x requires 'pthread_barrier_t'.
TERMUX_PKG_VERSION=17.3.9
TERMUX_PKG_REVISION=6
TERMUX_PKG_SRCURL=https://mesa.freedesktop.org/archive/mesa-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=c5beb5fc05f0e0c294fefe1a393ee118cb67e27a4dca417d77c297f7d4b6e479
TERMUX_PKG_DEPENDS="libandroid-shmem, libexpat, libdrm, libx11, libxdamage, libxext, libxml2, libxshmfence"
TERMUX_PKG_BUILD_DEPENDS="xorgproto"
TERMUX_PKG_DEVPACKAGE_DEPENDS="xorgproto"
TERMUX_PKG_CONFLICTS="libmesa"
TERMUX_PKG_REPLACES="libmesa"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-asm
--disable-gbm
--disable-egl
--disable-gles1
--disable-gles2
--disable-dri
--disable-dri3
--disable-glx
--with-platforms=x11
--without-dri-drivers
--without-gallium-drivers
ac_cv_header_xlocale_h=no
"
termux_step_pre_configure() {
export LIBS="-landroid-shmem -latomic"
}
termux_step_post_massage() {
cd ${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib || exit 1
if [ ! -e "./libGL.so.1" ]; then
ln -sf libGL.so libGL.so.1
fi
}