55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
$OpenBSD: patch-CMakeLists_txt,v 1.1 2012/11/22 11:54:06 pascal Exp $
|
|
--- CMakeLists.txt.orig Tue Nov 15 00:52:19 2011
|
|
+++ CMakeLists.txt Fri Nov 9 19:47:21 2012
|
|
@@ -48,8 +48,11 @@ endif()
|
|
# Set lib paths
|
|
if(APPLE)
|
|
# nothing to add
|
|
-elseif(UNIX)
|
|
+elseif(LINUX)
|
|
link_directories("${IRRLICHT_DIR}/lib/Linux")
|
|
+elseif(UNIX)
|
|
+ link_directories("${X11BASE}/lib")
|
|
+ link_directories("${IRRLICHT_DIR}/lib")
|
|
elseif(MSVC)
|
|
link_directories("${IRRLICHT_DIR}/lib/Win32-visualstudio")
|
|
else()
|
|
@@ -682,7 +685,7 @@ if (APPLE)
|
|
|
|
else()
|
|
|
|
- add_definitions(-DSUPERTUXKART_DATADIR=\"${CMAKE_INSTALL_PREFIX}/share/games/supertuxkart\")
|
|
+ add_definitions(-DSUPERTUXKART_DATADIR=\"${CMAKE_INSTALL_PREFIX}/share/supertuxkart\")
|
|
|
|
# Build the final executable
|
|
add_executable(supertuxkart ${SRCS})
|
|
@@ -696,7 +699,9 @@ else()
|
|
${CURL_LIBRARIES}
|
|
${OPENGL_LIBRARIES}
|
|
${OPENAL_LIBRARY}
|
|
- vorbisfile)
|
|
+ vorbisfile
|
|
+ vorbis
|
|
+ ogg)
|
|
endif()
|
|
|
|
if(USE_FRIBIDI)
|
|
@@ -751,7 +756,7 @@ MACRO(installfilemacro filepath)
|
|
if(source_path)
|
|
string(REGEX REPLACE "${source_regex}" "\\2" after_source "${source_path}")
|
|
get_filename_component(install_location ${after_source} PATH)
|
|
- install(FILES ${filepath} DESTINATION "share/games/supertuxkart/data/${install_location}")
|
|
+ install(FILES ${filepath} DESTINATION "share/supertuxkart/data/${install_location}")
|
|
endif(source_path)
|
|
endif()
|
|
ENDMACRO(installfilemacro)
|
|
@@ -762,7 +767,7 @@ foreach(curr ${datafiles})
|
|
endforeach()
|
|
|
|
|
|
-install(TARGETS supertuxkart RUNTIME DESTINATION games BUNDLE DESTINATION .)
|
|
+install(TARGETS supertuxkart RUNTIME DESTINATION bin BUNDLE DESTINATION .)
|
|
install(FILES data/supertuxkart.desktop DESTINATION share/applications)
|
|
install(FILES data/supertuxkart_32.xpm data/supertuxkart_64.xpm DESTINATION share/pixmaps)
|
|
|