summaryrefslogtreecommitdiffstats
path: root/package/kodi-screensaver-rsxs
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-20 23:09:07 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-29 23:38:44 +0100
commit75ce17d0e15062b6997c7a55e24b70ad96b2685d (patch)
treebb80b8eccb44889a0ad2dc78243ed4b449d55189 /package/kodi-screensaver-rsxs
parent56b80ece6318c35ca6115d751e24738612501988 (diff)
downloadbuildroot-75ce17d0e15062b6997c7a55e24b70ad96b2685d.tar.gz
buildroot-75ce17d0e15062b6997c7a55e24b70ad96b2685d.zip
package/kodi-screensaver-rsxs: new package
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/kodi-screensaver-rsxs')
-rw-r--r--package/kodi-screensaver-rsxs/0001-cross-compile.patch37
-rw-r--r--package/kodi-screensaver-rsxs/Config.in10
-rw-r--r--package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.hash2
-rw-r--r--package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.mk14
4 files changed, 63 insertions, 0 deletions
diff --git a/package/kodi-screensaver-rsxs/0001-cross-compile.patch b/package/kodi-screensaver-rsxs/0001-cross-compile.patch
new file mode 100644
index 0000000000..56c2f4e4ba
--- /dev/null
+++ b/package/kodi-screensaver-rsxs/0001-cross-compile.patch
@@ -0,0 +1,37 @@
+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
diff --git a/package/kodi-screensaver-rsxs/Config.in b/package/kodi-screensaver-rsxs/Config.in
new file mode 100644
index 0000000000..da12651a83
--- /dev/null
+++ b/package/kodi-screensaver-rsxs/Config.in
@@ -0,0 +1,10 @@
+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
diff --git a/package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.hash b/package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.hash
new file mode 100644
index 0000000000..568b44b37c
--- /dev/null
+++ b/package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.hash
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 0797ffb720056ea2e04ac8b7ee4fc2dca1e42611ef138b347e928d8d7f3c696f kodi-screensaver-rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.tar.gz
diff --git a/package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.mk b/package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.mk
new file mode 100644
index 0000000000..c76e9da954
--- /dev/null
+++ b/package/kodi-screensaver-rsxs/kodi-screensaver-rsxs.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# 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))
OpenPOWER on IntegriCloud