2021-10-21 14:14:34 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://ptitseb.github.io/gl4es/
|
2021-07-06 15:05:48 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="OpenGL driver for GLES devices"
|
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="@suhan-paradkar"
|
|
|
|
TERMUX_PKG_VERSION=1.1.4
|
2021-10-25 10:19:07 +02:00
|
|
|
TERMUX_PKG_REVISION=2
|
2021-10-21 14:14:34 +02:00
|
|
|
_COMMIT=dab338dc5d16807a071454e6116faf09c37f8a31
|
2021-07-06 15:05:48 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ptitSeb/gl4es.git
|
2021-10-21 14:14:34 +02:00
|
|
|
TERMUX_PKG_GIT_BRANCH=master
|
|
|
|
TERMUX_PKG_DEPENDS="libx11"
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
-DTERMUX=ON
|
|
|
|
-DCMAKE_SYSTEM_NAME=Linux
|
|
|
|
"
|
2021-07-06 15:05:48 +02:00
|
|
|
|
2021-10-21 14:14:34 +02:00
|
|
|
termux_step_post_get_source() {
|
|
|
|
git pull
|
|
|
|
git reset --hard ${_COMMIT}
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
# lets go crazy with optimization as we only build one shared library
|
|
|
|
# current highest fps output (on my A30s):
|
|
|
|
# -O2 -flto > -O3 -flto > -O2 > -Os > -Os -flto > -O3 > -Oz > -Oz -flto
|
|
|
|
export CFLAGS="${CFLAGS/-Oz/-O2} -flto"
|
|
|
|
export AR="llvm-ar" # remove this after NDK 23 landed
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_make_install() {
|
|
|
|
ln -fsT "libGL.so.1" "$TERMUX_PREFIX/lib/gl4es/libGL.so"
|
|
|
|
}
|