package/xbmc: add option to enable RSXS screensaver
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 1 Sep 2014 16:31:41 +0000 (18:31 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 6 Sep 2014 21:26:51 +0000 (23:26 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Acked-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/xbmc/Config.in
package/xbmc/xbmc.mk

index ebe0882f47fc1ad92ce23a2b7332b9592c8e9e6d..ed0d4ed023b6a0772c5f6ae392f8483fa0f436b8 100644 (file)
@@ -138,6 +138,15 @@ config BR2_PACKAGE_XBMC_GOOM
 comment "goom needs an OpenGL backend"
        depends on !BR2_PACKAGE_XBMC_GL
 
+config BR2_PACKAGE_XBMC_RSXS
+       bool "rsxs screensaver"
+       depends on BR2_PACKAGE_XBMC_GL
+       help
+         Enable goom screensaver
+
+comment "rsxs needs an OpenGL backend"
+       depends on !BR2_PACKAGE_XBMC_GL
+
 config BR2_PACKAGE_XBMC_LIBCEC
        bool "hdmi cec"
        depends on !BR2_PREFER_STATIC_LIB # libcec
index bdd634e1b20dbe49a9f12c7aa270cb01848b3e42..b3c5023bc0da544f9f6512e4ffae23e1e7e9fbaf 100644 (file)
@@ -88,6 +88,7 @@ ifeq ($(BR2_PACKAGE_XBMC_GL),y)
 XBMC_DEPENDENCIES += libglew libglu libgl sdl_image xlib_libX11 xlib_libXext \
        xlib_libXmu xlib_libXrandr xlib_libXt
 XBMC_CONF_OPT += --enable-gl --enable-sdl --enable-x11 --enable-xrandr --disable-gles
+ifeq ($(BR2_PACKAGE_XBMC_RSXS),y)
 # fix rsxs compile
 # make sure target libpng-config is used, options taken from rsxs-0.9/acinclude.m4
 XBMC_CONF_ENV += \
@@ -99,6 +100,9 @@ XBMC_CONF_ENV += \
        mac_cv_pkg_libs="`$(STAGING_DIR)/usr/bin/libpng-config --libs`"
 XBMC_CONF_OPT += --enable-rsxs
 else
+XBMC_CONF_OPT += --disable-rsxs
+endif
+else
 XBMC_CONF_OPT += --disable-gl --disable-rsxs --disable-sdl --disable-x11 --disable-xrandr
 ifeq ($(BR2_PACKAGE_XBMC_EGL_GLES),y)
 XBMC_DEPENDENCIES += libegl libgles