summaryrefslogtreecommitdiffstats
path: root/redhat/main/tdeaddons/tdeaddons-14.0.1-fix_sdl_detection.patch
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2015-08-05 20:25:18 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2015-08-05 20:25:18 +0200
commit562049cd694f6dd0927b9880227fc4f6da008839 (patch)
treee939e442f1fb29ff29811ebc02f672ecf62a47c1 /redhat/main/tdeaddons/tdeaddons-14.0.1-fix_sdl_detection.patch
parent6253ed4f8177cb33fef709fb7e215ff94e6300c1 (diff)
downloadtde-packaging-562049cd694f6dd0927b9880227fc4f6da008839.tar.gz
tde-packaging-562049cd694f6dd0927b9880227fc4f6da008839.zip
RPM Packaging: massive update
Diffstat (limited to 'redhat/main/tdeaddons/tdeaddons-14.0.1-fix_sdl_detection.patch')
-rw-r--r--redhat/main/tdeaddons/tdeaddons-14.0.1-fix_sdl_detection.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/redhat/main/tdeaddons/tdeaddons-14.0.1-fix_sdl_detection.patch b/redhat/main/tdeaddons/tdeaddons-14.0.1-fix_sdl_detection.patch
new file mode 100644
index 000000000..ca2fe2fcc
--- /dev/null
+++ b/redhat/main/tdeaddons/tdeaddons-14.0.1-fix_sdl_detection.patch
@@ -0,0 +1,18 @@
+diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
+index 1fedc9a..f3872b9 100644
+--- a/ConfigureChecks.cmake
++++ b/ConfigureChecks.cmake
+@@ -74,7 +74,12 @@ if( BUILD_NOATUN_PLUGINS )
+ if( WITH_SDL )
+ pkg_search_module( SDL sdl )
+ if( NOT SDL_FOUND )
+- tde_message_fatal( "SDL is requested, but was not found on your system" )
++ check_include_file( SDL/SDL.h HAVE_SDL_H )
++ if( NOT HAVE_SDL_H )
++ tde_message_fatal( "SDL is requested, but was not found on your system" )
++ endif ( )
++ set ( SDL_INCLUDE_DIRS /usr/include/SDL )
++ set ( SDL_LIBRARIES SDL pthread )
+ endif( )
+ endif( WITH_SDL )
+