mgba: GLES cmake options, drop invalid options, update to tag

This commit is contained in:
Tomáš Kelemen (vudiq) 2024-04-26 07:33:48 +02:00
parent b21bac5e07
commit b6bb996886
No known key found for this signature in database
GPG Key ID: 5CE55E600E0B3B22

View File

@ -1,11 +1,12 @@
PKG_NAME="mgba"
PKG_VERSION="a999a8760733cd226741d5e9cc05557aeda3eee3"
PKG_VERSION="1c61b54208ca6266129d0f2394c04bd8c44f98c5"
PKG_LICENSE="MPLv2.0"
PKG_SITE="https://github.com/mgba-emu/mgba"
PKG_URL="${PKG_SITE}.git"
PKG_DEPENDS_TARGET="toolchain libzip libpng zlib"
PKG_LONGDESC="mGBA Game Boy Advance Emulator"
PKG_TOOLCHAIN="cmake"
PKG_LR_UPDATE_TAG="yes"
PKG_CMAKE_OPTS_TARGET="-DCMAKE_BUILD_TYPE=Release \
-DBUILD_LIBRETRO=ON \
@ -13,8 +14,6 @@ PKG_CMAKE_OPTS_TARGET="-DCMAKE_BUILD_TYPE=Release \
-DBUILD_QT=OFF \
-DBUILD_SDL=OFF \
-DUSE_DISCORD_RPC=OFF \
-DUSE_GDB_STUB=OFF \
-DUSE_DEBUGGERS=OFF \
-DUSE_EDITLINE=OFF \
-DUSE_EPOXY=OFF"
@ -27,12 +26,14 @@ fi
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
fi
if [ "${GRAPHIC_DRIVER}" = panfrost|vc4 ] && !listcontains "${MALI_FAMILY}" "(t720)"; then
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_GLES3=ON -DBUILD_GLES2=OFF"
elif [ "${GRAPHIC_DRIVER}" = lima ] || listcontains "${MALI_FAMILY}" "4[0-9]+|t720"; then
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_GLES3=OFF -DBUILD_GLES2=ON"
get_graphicdrivers
if listcontains "${GRAPHIC_DRIVERS}" "(panfrost|vc4)" && ! listcontains "${MALI_FAMILY}" "(t720)"; then
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_GLES3=ON -DBUILD_GLES2=OFF"
else
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_GLES3=OFF -DBUILD_GLES2=ON"
fi
fi
makeinstall_target() {