Commit 75ce17d0 authored by Bernd Kuhls's avatar Bernd Kuhls Committed by Thomas Petazzoni
Browse files

package/kodi-screensaver-rsxs: new package

parent 56b80ece
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -145,6 +145,13 @@ endif
###############################################################################
comment "Legacy options removed in 2016.05"

config BR2_PACKAGE_KODI_RSXS
	bool "rsxs support in Kodi was moved to an addon"
	select BR2_LEGACY
	select BR2_PACKAGE_KODI_SCREENSAVER_RSXS
	help
	  rsxs support in Kodi was moved to an addon

config BR2_PACKAGE_KODI_GOOM
	bool "Goom support in Kodi was moved to an addon"
	select BR2_LEGACY
+37 −0
Original line number Diff line number Diff line
Fix cross-compilation

Use the cross-compiler and not the host version.

Patch sent upstream:
https://github.com/notspiff/screensavers.rsxs/pull/5

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

diff -uNr screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.org/CMakeLists.txt screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259/CMakeLists.txt
--- screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.org/CMakeLists.txt	2015-03-19 12:20:23.000000000 +0100
+++ screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259/CMakeLists.txt	2015-07-19 20:26:16.660481032 +0200
@@ -33,6 +33,11 @@
                     ${PROJECT_SOURCE_DIR}/${rsxs_dir}/src/skyrocket
                     ${PROJECT_SOURCE_DIR}/${rsxs_dir}/src/solarwinds)
                         
+
+get_filename_component( COMPILER_FILENAME "${CMAKE_C_COMPILER}" NAME )
+string( REGEX REPLACE "-[^-]+$" ""
+        TOOLCHAIN_NAME "${COMPILER_FILENAME}" )
+
 include(ExternalProject)
 set(update_command "")
 if(BOOTSTRAP_IN_TREE OR NOT DEFINED BOOTSTRAP_IN_TREE)
@@ -46,8 +51,11 @@
   endif()
 endif()
 externalproject_add(rsxs SOURCE_DIR ${PROJECT_SOURCE_DIR}/${rsxs_dir}
-                    CONFIGURE_COMMAND ${configure_start}
+                    CONFIGURE_COMMAND gl_cv_func_gettimeofday_clobber=no
+                                      ac_cv_func_malloc_0_nonnull=yes
+                                      ${configure_start}
                                       --prefix=<INSTALL_DIR>
+                                      --host=${TOOLCHAIN_NAME}
                                       --without-xscreensaver
                                       --disable-cyclone
                                       --disable-euphoria
+10 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_KODI_SCREENSAVER_RSXS
	bool "kodi-screensaver-rsxs"
	depends on BR2_PACKAGE_KODI_GL # libglu
	help
	  RSXS screensaver add-ons for Kodi

	  https://github.com/notspiff/screensavers.rsxs

comment "kodi-screensaver-rsxs needs an OpenGL backend"
	depends on !BR2_PACKAGE_KODI_GL
+2 −0
Original line number Diff line number Diff line
# Locally computed
sha256 0797ffb720056ea2e04ac8b7ee4fc2dca1e42611ef138b347e928d8d7f3c696f kodi-screensaver-rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.tar.gz
+14 −0
Original line number Diff line number Diff line
################################################################################
#
# kodi-screensaver-rsxs
#
################################################################################

KODI_SCREENSAVER_RSXS_VERSION = 195e0ec3fbbcb2ee2012cd560e42d05167f0f259
KODI_SCREENSAVER_RSXS_SITE = $(call github,notspiff,screensavers.rsxs,$(KODI_SCREENSAVER_RSXS_VERSION))
KODI_SCREENSAVER_RSXS_LICENSE = GPLv3
KODI_SCREENSAVER_RSXS_LICENSE_FILES = lib/rsxs-1.0/COPYING

KODI_SCREENSAVER_RSXS_DEPENDENCIES = kodi

$(eval $(cmake-package))
Loading