package/xfont_font-cronyx-cyrillic: add hash file
[buildroot-gz.git] / package / kodi-visualisation-goom / 0001-cross-compile.patch
blob8dd0fe91092aaf4c6e938160666ff26779fb81ef
1 Fix cross-compilation
3 Use the cross-compiler and not the host version.
5 Patch sent upstream:
6 https://github.com/notspiff/visualization.goom/pull/4
8 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 diff -uNr visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305.org/CMakeLists.txt visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305/CMakeLists.txt
11 --- visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305.org/CMakeLists.txt 2014-10-31 11:34:21.000000000 +0100
12 +++ visualization.goom-fb5933ba5b2143d055cc7749dc60a82f6002b305/CMakeLists.txt 2015-07-19 19:49:43.340054342 +0200
13 @@ -13,6 +13,10 @@
14 ${KODI_INCLUDE_DIR}
15 ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/src)
17 +get_filename_component( COMPILER_FILENAME "${CMAKE_C_COMPILER}" NAME )
18 +string( REGEX REPLACE "-[^-]+$" ""
19 + TOOLCHAIN_NAME "${COMPILER_FILENAME}" )
21 include(ExternalProject)
22 set(update_command "")
23 if(BOOTSTRAP_IN_TREE OR NOT DEFINED BOOTSTRAP_IN_TREE)
24 @@ -20,7 +24,7 @@
25 endif()
26 externalproject_add(libgoom SOURCE_DIR ${PROJECT_SOURCE_DIR}/lib/goom2k4-0
27 "${update_command}"
28 - CONFIGURE_COMMAND ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/configure --disable-shared --enable-static --with-pic --prefix=<INSTALL_DIR>
29 + CONFIGURE_COMMAND ${PROJECT_SOURCE_DIR}/lib/goom2k4-0/configure --disable-shared --enable-static --with-pic --prefix=<INSTALL_DIR> --host=${TOOLCHAIN_NAME}
30 BUILD_COMMAND ${MAKE}
31 INSTALL_COMMAND "")