2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
|
|
|
|
# Copyright (C) 2021-present 351ELEC (https://github.com/351ELEC)
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="gl4es"
|
|
|
|
PKG_LICENSE="GPL"
|
2023-03-03 17:12:24 +00:00
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain ${OPENGLES}"
|
2023-03-03 17:12:24 +00:00
|
|
|
PKG_LONGDESC="OpenGL 2.x functionality for GLES2.0 accelerated Hardware"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_TOOLCHAIN="cmake-make"
|
|
|
|
|
2023-04-04 13:38:06 +00:00
|
|
|
case ${DEVICE} in
|
|
|
|
S922X)
|
|
|
|
PKG_SITE="https://github.com/JohnnyonFlame/gl4es"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
|
|
|
PKG_VERSION="17a7876ae76eb7b50ff375d80abd35018e58a50d"
|
|
|
|
PKG_GIT_CLONE_BRANCH="ge2d"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
PKG_SITE="https://github.com/ptitSeb/gl4es"
|
|
|
|
PKG_URL="${PKG_SITE}.git"
|
2023-08-24 09:53:35 +00:00
|
|
|
PKG_VERSION="bfcdd3a"
|
2023-04-04 13:38:06 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
pre_configure_target() {
|
2023-03-03 17:12:24 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET=" -DGBM=ON -DCMAKE_BUILD_TYPE=Release "
|
|
|
|
if [ ! "${DISPLAYSERVER}" = "x11" ]
|
|
|
|
then
|
2023-04-04 13:38:06 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DNOX11=ON"
|
2023-03-03 17:12:24 +00:00
|
|
|
else
|
|
|
|
PKG_DEPENDS_TARGET+=" libX11"
|
|
|
|
fi
|
2023-04-04 13:38:06 +00:00
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DGLX_STUBS=ON -DEGL_WRAPPER=ON -DGBM=ON"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|