mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-04-02 01:18:55 +00:00
libprojectM: update build options for opengles/opengl
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
This commit is contained in:
packages/graphics/libprojectM
@ -8,7 +8,7 @@ PKG_SHA256="62b5b1b543b25cb8ad392d879378cfdc5c129165cf4d4f33fb159e364d42f135"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/projectM-visualizer/projectm"
|
||||
PKG_URL="https://github.com/projectM-visualizer/projectm/archive/v${PKG_VERSION}.tar.gz"
|
||||
PKG_DEPENDS_TARGET="toolchain freetype glm ${OPENGL}"
|
||||
PKG_DEPENDS_TARGET="toolchain freetype glm"
|
||||
PKG_LONGDESC="A MilkDrop compatible opensource music visualizer."
|
||||
PKG_TOOLCHAIN="configure"
|
||||
PKG_BUILD_FLAGS="+pic"
|
||||
@ -24,7 +24,23 @@ PKG_CONFIGURE_OPTS_TARGET="--disable-shared \
|
||||
--enable-threading \
|
||||
--enable-preset-subdirs"
|
||||
|
||||
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGL}"
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --disable-gles \
|
||||
--enable-gl"
|
||||
fi
|
||||
|
||||
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
||||
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
||||
PKG_CONFIGURE_OPTS_TARGET+=" --enable-gles \
|
||||
--disable-gl"
|
||||
fi
|
||||
|
||||
# workaround due broken release files, remove at next bump
|
||||
pre_configure_target() {
|
||||
./autogen.sh
|
||||
|
||||
if [ "${OPENGLES_SUPPORT}" = "yes" ]; then
|
||||
export CFLAGS+=" -DSOIL_GLES2"
|
||||
fi
|
||||
}
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --color -Naur a/configure.ac b/configure.ac
|
||||
--- a/configure.ac 2021-02-20 11:40:39.000000000 -0800
|
||||
+++ b/configure.ac 2023-07-06 16:06:18.679702443 -0700
|
||||
@@ -37,7 +37,8 @@
|
||||
enable_sdl=yes
|
||||
], [
|
||||
dnl Running in a normal OS (not emscripten)
|
||||
- AX_CHECK_GL
|
||||
+ AC_ARG_ENABLE([gl], AS_HELP_STRING([--enable-gl], [OpenGL support]), [], [enable_gl=no])
|
||||
+ AS_IF([test "x$enable_gl" = "xyes"], [AX_CHECK_GL])
|
||||
|
||||
# check OS if mac or linux
|
||||
AC_CANONICAL_HOST
|
Reference in New Issue
Block a user