2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.mesa3d.org
|
|
|
|
TERMUX_PKG_DESCRIPTION="An open-source implementation of the OpenGL specification"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-05-14 00:01:15 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
2018-09-10 00:42:26 +02:00
|
|
|
## Use 17.3.x branch because 18.x.x requires 'pthread_barrier_t'.
|
|
|
|
TERMUX_PKG_VERSION=17.3.9
|
2021-03-01 11:26:06 +01:00
|
|
|
TERMUX_PKG_REVISION=33
|
2019-05-07 21:00:02 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://mesa.freedesktop.org/archive/older-versions/${TERMUX_PKG_VERSION:0:2}.x/mesa-$TERMUX_PKG_VERSION.tar.xz
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SHA256=c5beb5fc05f0e0c294fefe1a393ee118cb67e27a4dca417d77c297f7d4b6e479
|
|
|
|
|
2019-04-20 19:10:50 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-shmem, libexpat, libdrm, libx11, libxdamage, libxext, libxml2, libxshmfence, zlib"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_BUILD_DEPENDS="xorgproto"
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_CONFLICTS="libmesa"
|
|
|
|
TERMUX_PKG_REPLACES="libmesa"
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2019-07-29 23:00:42 +02:00
|
|
|
--disable-static
|
2018-09-10 00:42:26 +02:00
|
|
|
--disable-asm
|
|
|
|
--disable-gbm
|
|
|
|
--disable-egl
|
|
|
|
--disable-gles1
|
|
|
|
--disable-gles2
|
2018-10-27 20:05:00 +02:00
|
|
|
--disable-dri
|
|
|
|
--disable-dri3
|
2019-03-10 16:34:54 +01:00
|
|
|
--disable-llvm
|
2018-11-12 22:07:37 +01:00
|
|
|
--enable-glx=xlib
|
2018-09-10 00:42:26 +02:00
|
|
|
--with-platforms=x11
|
|
|
|
--without-dri-drivers
|
|
|
|
--without-gallium-drivers
|
|
|
|
ac_cv_header_xlocale_h=no
|
|
|
|
"
|
|
|
|
|
2018-10-31 19:54:40 +01:00
|
|
|
termux_step_pre_configure() {
|
2019-01-21 17:50:21 +01:00
|
|
|
export LIBS="-landroid-shmem -latomic"
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_massage() {
|
2019-01-21 17:50:21 +01:00
|
|
|
cd ${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/lib || exit 1
|
|
|
|
if [ ! -e "./libGL.so.1" ]; then
|
|
|
|
ln -sf libGL.so libGL.so.1
|
|
|
|
fi
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|
2020-07-26 02:00:57 +02:00
|
|
|
|
|
|
|
termux_step_install_license() {
|
|
|
|
install -Dm600 -t $TERMUX_PREFIX/share/doc/mesa $TERMUX_PKG_BUILDER_DIR/LICENSE
|
|
|
|
}
|