mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
visualization.shadertoy: fix build for OpenGLES
This commit is contained in:
parent
4ec4df2ddd
commit
6f90864978
@ -23,7 +23,7 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="https://github.com/notspiff/visualization.shadertoy"
|
PKG_SITE="https://github.com/notspiff/visualization.shadertoy"
|
||||||
PKG_URL="https://github.com/notspiff/visualization.shadertoy/archive/$PKG_VERSION.tar.gz"
|
PKG_URL="https://github.com/notspiff/visualization.shadertoy/archive/$PKG_VERSION.tar.gz"
|
||||||
PKG_DEPENDS_TARGET="toolchain kodi-platform $OPENGL glew"
|
PKG_DEPENDS_TARGET="toolchain kodi-platform"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION=""
|
PKG_SECTION=""
|
||||||
PKG_SHORTDESC="visualization.shadertoy"
|
PKG_SHORTDESC="visualization.shadertoy"
|
||||||
@ -33,7 +33,24 @@ PKG_AUTORECONF="no"
|
|||||||
PKG_IS_ADDON="yes"
|
PKG_IS_ADDON="yes"
|
||||||
PKG_ADDON_TYPE="xbmc.player.musicviz"
|
PKG_ADDON_TYPE="xbmc.player.musicviz"
|
||||||
|
|
||||||
|
if [ ! "$OPENGL" = "no" ]; then
|
||||||
|
# for OpenGL (GLX) support
|
||||||
|
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET $OPENGL glew"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$OPENGLES_SUPPORT" = yes ]; then
|
||||||
|
# for OpenGL-ES support
|
||||||
|
PKG_DEPENDS_TARGET="$PKG_DEPENDS_TARGET $OPENGLES"
|
||||||
|
fi
|
||||||
|
|
||||||
configure_target() {
|
configure_target() {
|
||||||
|
if [ "$KODIPLAYER_DRIVER" = bcm2835-driver ]; then
|
||||||
|
BCM2835_INCLUDES="-I$SYSROOT_PREFIX/usr/include/interface/vcos/pthreads/ \
|
||||||
|
-I$SYSROOT_PREFIX/usr/include/interface/vmcs_host/linux"
|
||||||
|
export CFLAGS="$CFLAGS $BCM2835_INCLUDES"
|
||||||
|
export CXXFLAGS="$CXXFLAGS $BCM2835_INCLUDES"
|
||||||
|
fi
|
||||||
|
|
||||||
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKE_CONF \
|
||||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_MODULE_PATH=$SYSROOT_PREFIX/usr/lib/kodi \
|
-DCMAKE_MODULE_PATH=$SYSROOT_PREFIX/usr/lib/kodi \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user