python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / kodi-screensaver-rsxs / 0001-cross-compile.patch
blob56c2f4e4ba3e152f334568f0a0390ffb9145b07d
1 Fix cross-compilation
3 Use the cross-compiler and not the host version.
5 Patch sent upstream:
6 https://github.com/notspiff/screensavers.rsxs/pull/5
8 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 diff -uNr screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.org/CMakeLists.txt screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259/CMakeLists.txt
11 --- screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259.org/CMakeLists.txt 2015-03-19 12:20:23.000000000 +0100
12 +++ screensavers.rsxs-195e0ec3fbbcb2ee2012cd560e42d05167f0f259/CMakeLists.txt 2015-07-19 20:26:16.660481032 +0200
13 @@ -33,6 +33,11 @@
14 ${PROJECT_SOURCE_DIR}/${rsxs_dir}/src/skyrocket
15 ${PROJECT_SOURCE_DIR}/${rsxs_dir}/src/solarwinds)
18 +get_filename_component( COMPILER_FILENAME "${CMAKE_C_COMPILER}" NAME )
19 +string( REGEX REPLACE "-[^-]+$" ""
20 + TOOLCHAIN_NAME "${COMPILER_FILENAME}" )
22 include(ExternalProject)
23 set(update_command "")
24 if(BOOTSTRAP_IN_TREE OR NOT DEFINED BOOTSTRAP_IN_TREE)
25 @@ -46,8 +51,11 @@
26 endif()
27 endif()
28 externalproject_add(rsxs SOURCE_DIR ${PROJECT_SOURCE_DIR}/${rsxs_dir}
29 - CONFIGURE_COMMAND ${configure_start}
30 + CONFIGURE_COMMAND gl_cv_func_gettimeofday_clobber=no
31 + ac_cv_func_malloc_0_nonnull=yes
32 + ${configure_start}
33 --prefix=<INSTALL_DIR>
34 + --host=${TOOLCHAIN_NAME}
35 --without-xscreensaver
36 --disable-cyclone
37 --disable-euphoria