0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-01-31 20:02:31 +00:00
2024-05-01 00:49:23 +02:00

44 lines
1.3 KiB
Makefile

PKG_NAME="mgba"
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_LR_UPDATE_TAG_MASK="*.*.*"
PKG_CMAKE_OPTS_TARGET="-DCMAKE_BUILD_TYPE=Release \
-DBUILD_LIBRETRO=ON \
-DSKIP_LIBRARY=ON \
-DBUILD_QT=OFF \
-DBUILD_SDL=OFF \
-DUSE_DISCORD_RPC=OFF \
-DUSE_EDITLINE=OFF \
-DUSE_EPOXY=OFF"
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL}"
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_GL=ON"
elif [ "${OPENGL_SUPPORT}" = "no" ]; then
PKG_CMAKE_OPTS_TARGET+=" -DBUILD_GL=OFF"
fi
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
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() {
mkdir -p ${INSTALL}/usr/lib/libretro
cp -v mgba_libretro.so ${INSTALL}/usr/lib/libretro/
}