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-03-03 17:12:24 +00:00
|
|
|
# Copyright (C) 2023-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="gl4es"
|
2023-03-07 23:00:42 +00:00
|
|
|
PKG_VERSION="57240b0f06551a49c94f90abccc54767c738791e"
|
2023-03-03 17:12:24 +00:00
|
|
|
PKG_SITE="https://github.com/ptitSeb/gl4es"
|
2022-02-05 14:23:32 +00:00
|
|
|
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"
|
|
|
|
|
|
|
|
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
|
|
|
|
PKG_CMAKE_OPTS_TARGET+=" -DNOX11=1"
|
|
|
|
else
|
|
|
|
PKG_DEPENDS_TARGET+=" libX11"
|
|
|
|
fi
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|